Hi Cyndi

What interface are you working in? Green? Browser? ???

You can't do a dropdown as such in a DSPF - well, maybe with a menu bar at the top, but that's not done all that much.

I'm not inclined to do DSPFs in CL - it can be done, but RPG is so much better at it, IMO.

You CAN create a window in a DSPF that has the list in it. The variables you use in the window are available to the underlying program, which just uses it - of course, that's if you EXFMT the window in RPG.

Assuming you use a window and SNDF in CL, then you can get the variable back with the state - this probably involves a READC of a subfile where there's a select option and the state - then you pass the state as a parameter to RPG.

Or are you thinking of a command and a prompt for the values in a parameter? That can be done with a choice program - CHCPGM, I think, is the parameter in the command source.


On 1/2/2014 1:59 PM, Cyndi Bradberry wrote:
Can I create a dynamically filled drop down in CLP ?

I have a file with several states in it. I want to be able to select the state in the CLP, override to the proper library list, then pass that information into the RPGLE program for further use.

Can this be done ? I seem to remember, but brain is not working very well today. (I hate two Monday's in a week !)

Cyndi B.
Boise, ID

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].