× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Me again

You could take a look at Booth's work here -

http://www.martinvt.com/Subfiles/Dropdown_Box_II/dropdown_box_ii.html

This example is a scrollable list of states - could be just what you want.

Vern

On 1/2/2014 2:13 PM, Vernon Hamberg wrote:
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.

HTH
Vern

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





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2024 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].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.