To meet your needs, we constantly work to improve Querix products.
This means that Lycia documentation is developing as well.
In case you have found a certain dissonance between the provided information and the actual behavior of Lycia 3 and/or your applications, please, let us know about this via documentation@querix.com so that we can introduce the necessary changes to our documentation.
Thank you for your attention and cooperation.
The NextField() method is used to specify the name of the field to which the cursor must go when the program control returns to the dialog. The method performance is similar to that of the NEXT FIELD statement, but it does not break the program workflow.
The NextField() method needs an argument which specifies the target field name. Therefore, the target field can be changed at runtime depending on the situation (key press, values, privileges etc.)
DEFINE str STRING,
field1, field2 STRING
...
ON ACTION ("switch")
IF str = check_val THEN
CALL DIALOG.nextField(field1)
CONTINUE DIALOG
ELSE
CALL DIALOG.nextField(field2)
CONTINUE DIALOG
END IF
CALL save_changes()