onselect

Use this board to ask questions or have discussions with other Rich Displays users.
oumouna
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

Post 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.
Scott Klement
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

Post 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?
oumouna
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

Post 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?
Scott Klement
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

Post 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...
Post Reply

Who is online

Users browsing this forum: gmikos and 0 guests