Page 2 of 2
Re: onselect
Posted: Tue Oct 22, 2013 5:13 am
by oumouna
Ok I tried to do this but I have problem with the function pui.click(). When I define it on the onselect property, in the Atrium when I select a value in the combo box it get out the program.
Re: onselect
Posted: Tue Oct 22, 2013 2:30 pm
by Scott Klement
The only reason it'd end the program is if the code on the RPG side exits for some reason.
Can you check your RPG code and see if maybe it's ending the program somehow when the button is clicked?
Re: onselect
Posted: Wed Oct 23, 2013 4:35 am
by oumouna
I see the problem, now it doesn't end the program. But it does not work yet. Now I want to retrieve the value selected on the combo box. I think that if I have this value I will be able to load the others fields corresponding to the value by using sql.
Can I use the function getElementValue to retrieve the value selected on the Combo Box?
So Can you give me an example of use please?
Re: onselect
Posted: Wed Oct 23, 2013 11:26 pm
by Scott Klement
You should have an RPG variable bound to your combo box. When pui.click() submits the screen, the RPG program can get the value by checking that variable...