Script Functions
This section describes the shipped RAMP JavaScript functions you can use in your scripts.
Note that these functions are case sensitive, so be careful to use exactly the same case as shown when writing scripts.
Get and Set Values of fields on RAMP Screens | |
Set a field on a RAMP screen to a value | |
Get the value from a field on a RAMP screen | |
Screen Functions | |
Emulate pressing a key. | |
Check that RAMP is showing a screen | |
Signal to the Framework to close the current screen | |
Hide the current screen with an optional message | |
Get the Form Name of the current RAMP screen | |
Position the cursor in a given row and column of the screen | |
Searches the label fields on the form for a menu option by name | |
Function keys to send when an unknown form appears during RAMP navigation | |
Overcome problem of a pop-up which is invoked from a button click or function key press in a destination screen being hidden behind the main screen | |
Set the current command handler caption to a new value | |
Dynamically enable or disable a Destination’s button or 5250 function key | |
Message Functions | |
Issue a message as an alert | |
Clear all messages currently in the stack | |
Issue a fatal message | |
Issue a message | |
Stop the Framework from shutting down when a fatal navigation error occurs | |
Other Functions | |
Signal an event to filters and RAMP screens | |
Add run time information to the trace panel | |
Run a newlook Macro | |
Navigate to a Junction screen | |
Show a user defined prompter form for a field | |
Navigate to a Destination screen | |
Navigate to a previously shown Destination screen | |
Returns the leading numbers from a string | |
Defines a string by a unique number for use by other scripts | |
Sets the message to show when the Framework locks up | |
Returns the string for a given string identification number | |
Call this function to override the Lock Framework when unknown 5250 form is displayed session property | |
Set the focus to a field on the current screen | |
Get the name of the field with focus on the current screen | |
Return a DataGrid as a string | |
newlook Function Key Bar Functions | |
Causes all screens not defined to RAMP to show the newlook toolbar buttons | |
Multilingual Caption Functions | |
Assigns a new caption for a function key on a particular screen | |
Assigns a new caption for a function key on any screen | |
Virtual Clipboard Access Functions | |
Save an alphanumeric or numeric value in the Framework virtual clipboard. | |
Restores an alphanumeric or numeric value from the Framework virtual clipboard | |
Real Clipboard Access Functions | |
Copy a string to the user's clipboard |