Willie J. Moore | 2 Oct 17:37 2012

Help with ‘PNLGRP’ help

Not sure if this should be listed here or the ‘midrange-l’ list, but here goes.
We have a reason code file I would like to include in a Help Panel Group.  It has apx. 300 records in it and can be
added to anytime a new reason code is needed.  I do not want to have to update the Panel Group each time a change
is made.
What I would like is once the user selected the help for the reason codes another panel another panel could be
displayed showing all the reason codes and there definitions.
Thanks in advance for any and all help and any examples.

William Moore
California Fine Wire, Co.
805-489-5144

--

-- 
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@...
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@...
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.

Rory Hewitt | 2 Oct 17:49 2012
Picon

Re: Help with ‘PNLGRP’ help

Willie,

In the old days, I would have looked at this example:

http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/QB3AUK00/3.2.14

and changed it to my needs - it includes examples of all the API's and exit
programs you need to call to display a list of items, and how to define the
data tags in UIM.

However, I think it might be simpler if you simply write a regular old
subfile program that looks like a UIM panel - the example above uses all
the UIM List API's, which require you to create a user space and all that
stuff - much simpler just to write a load-all subfile program and be done
with it.

Rory

On Tue, Oct 2, 2012 at 8:37 AM, Willie J. Moore <WJMoore@...>wrote:

> Not sure if this should be listed here or the ‘midrange-l’ list, but here
> goes.
> We have a reason code file I would like to include in a Help Panel Group.
>  It has apx. 300 records in it and can be added to anytime a new reason
> code is needed.  I do not want to have to update the Panel Group each time
> a change is made.
> What I would like is once the user selected the help for the reason codes
> another panel another panel could be displayed showing all the reason codes
> and there definitions.
> Thanks in advance for any and all help and any examples.
(Continue reading)

Stuart Rowe | 5 Oct 02:11 2012
Picon

Re: Help with ‘PNLGRP’ help

Try this, it has worked for me before:  Each time the reason codes are
updated, programmatically generate a UIM panel group source member with the
reason codes in a DL, then compile it (it's quick).  Then, link to this
panel group from within your main help panel group for the appropriate
screen, or just generate the whole panel group for the screen with the
reason codes embedded in it.  This keeps the list of codes available to
users when they press F1 on a screen.  You do not need to update the main
help when the codes change, only the program-generated one which out to be
called by the Reason Code updater program.  Automagic!

The Application Display Programming manual contains the UIM tag language in
appendix A.

Your main help for the screen:

:pnlgrp.
:help name = 'MAIN'.
:p.
blah blah blah something about Reason Code.
:p
:link perform='DSPHELP reasoncodelist REASONS'.Here is a list of valid
reason codes.:elink.
:ehelp.
:epnlgrp.

The reason codes (generate this with a program) referred to by the above
link (panel grup name REASONS):

:pnlgrp.
:help name = 'reasoncodelist'.
(Continue reading)


Gmane