Page 1 of 1

Change Select Box based on indicator

Posted: Tue Oct 15, 2019 3:19 pm
by gdempsey@gartman.com
In converting a dds, I changed a subfile option field to a select box, but I need the selections to be controlled by an indicator set by the program on loading of the grid. Would this be handled when loading the grid, or onclick of the select box?

Re: Change Select Box based on indicator

Posted: Thu Oct 17, 2019 9:49 am
by Wendy
If I understand you correctly, the way I control the available choices in a select box when they are conditional is to populate a work file in the program based on the conditions, and have the select box reference the work file. Maybe there is a better way, but this was an easy solution for me.

Re: Change Select Box based on indicator

Posted: Thu Oct 17, 2019 3:49 pm
by emhill
You can also use bound fields for the "choices" and "choice values" properties. They would be alphanumeric and comma delimited. Just build them in your RPG as you are creating your subfile/grid. We've used this many places in our system.

Hope this helps!