sabell2012
Mega Sage
Mega Sage

To speed up my usage of Fix Scripts; which I detailed how to use in an earlier article, I decided to add a button. Frankly I just plain got tired going to the bottom of the form and clicking the "Run Fix Script" link!   This was especially an issue, because after you click Save or Update it takes you immediately to the top of the form! Arrrrgh!   Okay, okay, so I am a lazy programmer!   Go figure.


find_real_file.png



Lab 1.1 — Creating a Run Fix Script Button

So to add this really great functionality do the following:

1. Navigate to System Definition > Fix Scripts.   This will bring up the Fix Scripts list view.

2. Right click on the list view header to bring up the context menu, and click on Configure > UI Actions.   This will bring up the Fix Scripts UI Actions list view.


2.UI Actions.jpg

3. Search for: Name contains "run".   This will display the "Run Fix Script" UI Action. Click on the action name to open the form.

4. Fill out the form with the following:

    1. Name: My Run Fix Script
    2. Form button: check
    3. Form context menu: check
    4. Form link: uncheck

NOTE: We won't need the form link.   The other UI Action is taking care of that.

find_real_file.png

5. Right-click on the form header and choose Insert and Stay. Make sure you do this step as you don't want to write down over the out-of-the-box original!

find_real_file.png

6. Now navigate back to System Definition > Fix Scripts and open up one of the scripts listed in the list view.

7. You should now see your new Run Fix Scripts button at the top of the form!

8. Right-Click on the form header and you should also see the Run Fix Scripts link in the context menu.

And that is all there is to it!   Now you don't have to scroll to the bottom of your form just to run your script.   Simply click the button!   Cool, huh?!

Steven Bell


If you find this article helps you, don't forget to log in and "like" it!