Can you retrieve any or all Element properties?
Posted: Wed Aug 14, 2019 11:36 am
I have a 'select box' widget type that displays a long text field on the screen for selection, and (as is typical) sends a different field back to the RPG program for processing. Following is what the element's properties look like:
id = WHDROPDOWN
widget type = select box
value = WHDSC
choices database file = INJSUMWRK
choices options field = INJWHDESC
choices values field = INJWH
I want to take this 'select box' element's 'choices options field' property and send it to a hidden 'textbox' element on the screen, also for use in the RPG program.
I've tried the following methods and neither have worked. I've entered this code in the Onchange Event:
var lctndesc = getObj("WHDROPDOWN").pui.properties["choices options field"];
applyProperty('LOCDESC', 'value', lctndesc);
applyProperty('LOCDESC', 'field type', 'textbox');
------------------
var lctndesc = this.pui.properties["choice options field"];
applyProperty('LOCDESC', 'value', lctndesc);
applyProperty('LOCDESC', 'field type', 'textbox');
Thank you!
Wendy
id = WHDROPDOWN
widget type = select box
value = WHDSC
choices database file = INJSUMWRK
choices options field = INJWHDESC
choices values field = INJWH
I want to take this 'select box' element's 'choices options field' property and send it to a hidden 'textbox' element on the screen, also for use in the RPG program.
I've tried the following methods and neither have worked. I've entered this code in the Onchange Event:
var lctndesc = getObj("WHDROPDOWN").pui.properties["choices options field"];
applyProperty('LOCDESC', 'value', lctndesc);
applyProperty('LOCDESC', 'field type', 'textbox');
------------------
var lctndesc = this.pui.properties["choice options field"];
applyProperty('LOCDESC', 'value', lctndesc);
applyProperty('LOCDESC', 'field type', 'textbox');
Thank you!
Wendy