InputScript | An InputScript is a textfile with a name of your choice,
e.g.. C:\GuiXT\Scripts\CreateMaterialSimple.txt. It
contains the names of the screens that you want to
process (Screen-command), Set-commands to
fill in the values, and Enter-commands that define
the navigation from one screen to the next one. If no
path is specified in the process= parameter, the
InputScript is searched in the current GuiXT Script
directory. Example: Screen
SAPMF05A.0300 Screen SAPMF05A.0300Set F[Amount] "&V[Amount2]" Enter "BU" While the InputAssistant processes the transactions internally, it looks for the next matching Screen command and then executes the corresponding commands. If no matching Screen command is found, the internal processing is terminated, the screen is displayed and the user can complete the transaction. Error messages are displayed on the first screen, where the user can correct the input data. Warnings are ignored. It is a good idea to work with parameters in InputScripts. The InputScripts can then be used in a more flexible way, and in addition you are able to use the parameter values in if-commands in order to set values or to navigate in different ways. Syntax: Parameter PNAME Example: The value of a parameter (specified with the using command or as default value) can be used in if-expression: if U[PNAME=value] Example: if U[LANGUAGE=E] and U[STDNAME=X] The expression: U[PNAME] is fulfilled if the parameter has a non-space value. You can also define your own integrity checks. Use the Return command in order to return to the basic screen with an error message. Example: if not U[CC] if U[CC=0001] and not U[CURRENCY=USD] |
Tips & Tricks |