Four Js Development Tools Forum

General => Ask Reuben => Topic started by: Reuben B. on November 25, 2022, 04:22:03 am



Title: Ask Reuben 153 - Skipping Fields
Post by: Reuben B. on November 25, 2022, 04:22:03 am
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/