|
What I have done is to make a dropdown box for certain fields and have
it field & file specific. I also made the program a maintenance program
for that field if the program is called without parms.
http://www.martinvt.com/Subfiles/Dropdown_Box/dropdown_box.html
This is a skinnied down example that I put together for demo purposes.
This isn't exactly what you asked for, but it might have a few useful
ideas for you. It is mouse enabled or F4, and has a mouse enabled
scrollbar. (I love scrollbars on subfiles!)
On 4/16/2012 2:17 PM, Kurt Anderson wrote:
Are you talking about a prompt being something like a user is on ascreen in an 'action' field and they want to press F4 to see the values
(and select one)?
Pass in the program name, screen name, and field name.
A quick brainstorm on the topic:
Program calls service program procedure to bring up a prompt window.
Service program will reference a table where you have all of thepossible prompt values stored along with their descriptions (A , Add; D,
Delete; etc).
Service program pops up a window (or screen, whatever) for user toselect from the options.
Service program procedure returns the selected value. To prepare tohandle most situations, you could return an 80a field and if you're on IBM
i 7.1 you can code RTNPARM on the Procedure Interface so it returns the
selection by reference.
since they'd all be stored in a table. That table might look like this:
If this method would work, there's really no growth for added prompts
Header table:horizontal space)
Program
Screen
Field
Header1a
Header1b (in case you want to stack header descriptions to save on
Header2ahorizontal space)
Header2b (in case you want to stack header descriptions to save on
Max Value Lengthdid something like this a long time ago and at that time I made the value
Detail Table
Program
Screen
FieldValue
Description
The service program could then dynamically build the screen. I think I
max size 20 and then the description a certain size so the only dynamic
part was the wording that appeared on the screen (not the actual positions
of values).
rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Michael Schutte
-Kurt
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:
Sent: Monday, April 16, 2012 1:40 PMsame service program? Just curious. I started a new service program with
To: RPG programming on the IBM i / System i
Subject: Prompt Service Program.
Would any advise for or against putting any new prompt procedures in the
the intent to put any new prompt programs in this service program. But
then I got to thinking maybe that would be a bad idea because as the size
of the service program grew, so would the amount of memory each time the
program was activated. I am using a named activation group.
prompt-able field?
Anyway, am I off on trying to create just one service program for any
--list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-lhttp://archive.midrange.com/rpg400-l.
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
--
Booth Martin
802-461-5349
http://www.martinvt.com
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.