× 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.



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'.
:dl compact.
:dthd.Reason Code
:ddhd.Explanation
:dt.CODE1
:dd.This code is the first code.
:dt.CODEBLUE
dd.This is an emergency code.
:edl.
:ehelp.
:epnlgrp.

Good luck

Stu





On Tue, Oct 2, 2012 at 10:49 AM, Rory Hewitt <rory.hewitt@xxxxxxxxx> wrote:

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@xxxxxxxxxxxx
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.

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@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 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.