Ask Reuben 153 - Skipping Fields

Started by Reuben B., November 25, 2022, 04:22:03 AM

Previous topic - Next topic

Reuben B.

Historically Text User Interface (TUI) applications had no method to show that you could not edit a field.  In Informix-4gl if you wanted to prevent a user editing a field, you might skip over a field using NEXT FIELD NEXT and NEXT FIELD PREVIOUS.

When transforming your sources to Genero and a Graphical User Interface (GUI), this code pattern is one you should consider removing, and replace with use of the ui.Dialog.setFieldActive(fieldname, boolean) method.

This prevents the user being able to edit the field and provides an appropriate User Experience in a GUI environment.

Read more at https://4js.com/ask-reuben/ig-153/
Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero