6.7.5 Enable Functions for RDMLX
To change an existing RDML Function to an RDMLX Function, open the function in the Visual LANSA Editor, choose the File menu and select the Enable for RDMLX option.
This option is only available in an RDMLX Enabled Partition.
A Function must be Enabled for RDMLX in order to use other RDMLX objects or to use RDMLX commands. You cannot use RDMLX Fields or RDMLX Files unless the function is enabled for RDMLX. RDMLX Functions can interact with Components.
The default value for this option is controlled in the RDMLX Partition Settings.
Tips & Techniques
- Once you select this option, the code in the component will be evaluated using the RDMLX Language Features. If it contains any errors, you must correct them before you can save it as an RDMLX function.
RDMLX Language features include:
- use of intrinsic field methods
- use of function libraries
- use of expressions in many parameters and properties
- enhanced RDMLX command support such as assignment statements
- simplified RDML statements due to the removal of quotes.
Implications:
- RDMLX Functions do not support 5250 interfaces. If you enable an RDML Function to use RDMLX field types, this new RDMLX Function can no longer directly support a 5250 interface. You must call an RDML Function to perform any screen interactions.
- Performance characteristics may change and should be properly evaluated once the conversion to RDMLX has been made.
- If no changes have been made to the code in an enabled RDMLX Function, the resulting program should be functionally equivalent to the program created by the RDML Function. However, it is your responsibility to retest the functionality of the new program.
Warning
- All editing must be performed using Visual LANSA. RDMLX Functions cannot be edited from LANSA for i. (LANSA for i does not support development in RDMLX Partitions.)
- Once a function is enabled for RDMLX, it cannot be changed back. You can create a new RDML Function and code can be copied and pasted back into the RDML Function. Code will be syntax checked for compatibility with the RDML Function.