Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Multiple dynamic list boxes in module pool program

0 Likes
1,445

I have a module pool program with three list boxes. The first list box has a fixed drop down list. The second list box will have a drop down list which will be dynamically generated and which is dependent upon the value selected in the first list box. The third list box will have a drop down list which will be dynamically generated and which is dependent upon the value selected in the second list box. I can write the code to populate a list box bur for the life of me I cannot manage to get the second and third list box to populate dynamically because the values selected in those fields appear to go blank if I include the list box code in selection screen output. How do I get this to work? Thanks.

3 REPLIES 3
Read only

SimoneMilesi
Active Contributor
1,276

Under which event you fill the lists for 2nd and 3rd dropdown?
How do you fill them?
You aren't sharing any kind of meaningful information (i.e. a snippet of your code) and I can only guess you put your code in the wrong place.

I suggest you to start from studying how module pool events work

Read only

0 Likes
1,276

This is where I am at now. I have implemented ON VALUE REQUEST FOR P_LB2 and ON VALUE REQUEST FOR P_LB3 associated with the second and third drop down lists. If I run the program the ON VALUE REQUEST FOR event fires for both the second and third drop down lists. If I select a value in P_LB1 (the first drop down list) the ON VALUE REQUEST FOR event fires for both the second and third drop down lists. At this time the drop down associated with P_LB2 is dynamically populated. If I click the drop down tied to the third list box no events fire. I'm very confuse by this behavior. I don't understand why the events stop firing at this point.

Read only

0 Likes
1,276

If i select a value in P_LB2 and hit enter the ON VALUE REQUEST FOR event fires for both the second and third drop down lists. At this time the selected value in P_LB2 goes blank and the drop down list associated with P_LB3 is not populated. I'm totally confused. In each event I use dynp_values_read to retrieve the value of the prior listbox and then use VRM_SET_VALUES. Is there another event I need to call to refresh the buffer or set values to the screen?