onselect
-
- Profound User
- Posts: 37
- Joined: Tue Aug 27, 2013 7:34 am
- First Name: Seynabou
- Last Name: Gueye
- Company Name: Oo2
- Country: Senegal
- Contact:
Re: onselect
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.
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: onselect
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?
Can you check your RPG code and see if maybe it's ending the program somehow when the button is clicked?
-
- Profound User
- Posts: 37
- Joined: Tue Aug 27, 2013 7:34 am
- First Name: Seynabou
- Last Name: Gueye
- Company Name: Oo2
- Country: Senegal
- Contact:
Re: onselect
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?
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?
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: onselect
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...
Who is online
Users browsing this forum: No registered users and 1 guest