ONSELECT event not populating selectbox
Posted: Thu Dec 17, 2015 5:26 pm
I have The following coded on the ONSELECT event for a database-driven auto-complete text box:
applyProperty("EquipSelect", "choices parameter value", get("VnnoSelect"));
applyProperty("EquipSelect", "field type", "select box");
applyProperty("MfgnoSelect", "choices parameter value", get("VnnoSelect"));
applyProperty("MfgnoSelect", "field type", "select box");
This is supposed to populate 2 select boxes. I know the event is executed because I added a pop-up after the last line to test. I also know that the sql that populates my select boxes based on the parameter from the text box DOES work. The problem is that the select boxes do not get populated unless I return control to my rpg pgm and redisplay the screen.
I have used this technique before and the select box was always populated immediately. The only difference is that my initiator was another select box with the javascript coded on the ONCHANGE event. So, I am guess the text box with the ONSELECT is somehow causing this not to work. I do not want to use a select box; I want the user to be able to zoom in on what they need. What do I need to do to make this code populate my select boxes immediately? Thank you, Patti
Here is the code from one of my select boxes:
applyProperty("EquipSelect", "choices parameter value", get("VnnoSelect"));
applyProperty("EquipSelect", "field type", "select box");
applyProperty("MfgnoSelect", "choices parameter value", get("VnnoSelect"));
applyProperty("MfgnoSelect", "field type", "select box");
This is supposed to populate 2 select boxes. I know the event is executed because I added a pop-up after the last line to test. I also know that the sql that populates my select boxes based on the parameter from the text box DOES work. The problem is that the select boxes do not get populated unless I return control to my rpg pgm and redisplay the screen.
I have used this technique before and the select box was always populated immediately. The only difference is that my initiator was another select box with the javascript coded on the ONCHANGE event. So, I am guess the text box with the ONSELECT is somehow causing this not to work. I do not want to use a select box; I want the user to be able to zoom in on what they need. What do I need to do to make this code populate my select boxes immediately? Thank you, Patti
Here is the code from one of my select boxes: