I have a particular application in which users enter a help request. After the add function, the IT staff comes in behind them and updates the request to take ownership of it, and eventually to enter resolution notes. I have the fields seperated into groups corresponding to the different user fields (end user and IT), and when entering update mode I would like to disable all the end-user fields. This works for the most part, but there are two comboboxes that allow for issue categorization. When setting those inactive, the fields are blanked out rather than retaining their values in display.
Here is the code that I'm using to disable the end user fields:
before input
if menu_item = "update" then
call dialog.setfieldactive("htk_description",0)
call dialog.setfieldactive("htk_description2",0)
call dialog.setfieldactive("htk_select2",0)
call dialog.setfieldactive("htk_notes",0)
call dialog.setfieldactive("htk_priority",0)
call llh_display()
end if
Attached is the result of this code, showing the before and after of entering update mode.
Also here:
So my question is this: Am I taking the correct approach in how to mark the fields above noentry? If I am, is there a way to then assign values back to the comboboxes in order to not lose the display of the data they should contain?
Additionally, is there an easy way to set an entire group inactive? From the documentation the setfieldactive seems to be the only way to do it; there's not a setelementactive function for some reason.