Trucs et Astuces - AS400 - Tips and Tricks
F1 Aide en ligne Table des matières
L'aide en ligne (Panel Group) est rarement
prévue dans les développements DSPF. Pourtant, si
l'on n'est pas trop difficile, on peut s'en tirer avec une charge
de
maintenance raisonnable : Premier point : la conception de l'aide est globale : il est généralement souhaitable que l'aide associée à un champ soit la même, quel que soit l'écran où elle apparaît, sans que cela n'empêche d'ajouter des informations dépendant du contexte. Les informations d'ordre général seront dans un *PNLGRP général. Les informations dépendant du contexte de l'écran seront dans le *PNLGRP de l'écran, et le nombre de niveaux n'est pas limité. Mon *PNLGRP général s'appelle MAINHELP, et contient une démonstration des possibilités du langage. Les textes devant être traduits sont isolés dans messages Liste du *MSGF MAINHELP |
The in line help (Panel Group) is foreseen rarely in the
DSPF developments. Yet, if you have reasonable users, you can do
it
with a reasonable maintenance load : First point: the conception of help is global: it is generally desirable that help associated to a field is the same, whatever is the screen where it appears, with permitting to add information depending on the contexte. The general context information will be in a general *PNLGRP. The information depending of the screen context will be in the screen *PNLGRP, and the number of levels is not limited. My general *PNLGRP is called MAINHELP, and contains a demonstration of the possibilities of the language. The texts having to be translated are isolated in messages List of the *MSGF MAINHELP |
|
|
Le PNLGRP de chaque DSPF importe tout ou partie des
PNLGRP de niveau supérieur : :IMPORT
PNLGRP=mainhelp
name='*'. exemple : JPL020HP |
The PNLGRP of every DSPF imports
all or parts of the PNLGRPS of superior level: :IMPORT
PNLGRP=MAINHELP NAME = ' * '. what places them at disposal to be implanted when it is necessary: :IMHELP NAME=DEMO. example: JPL020HP |
|
Et voici un extrait du DSPF correspondant JPL020FM
And here an excerpt of the corresponding DSPF JPL020FM
|
Et voila le résultat
And here are the screen shots
exemples des différentes balises de *PNLGRP | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description de la fonction | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:P. :PC. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:P.paragraphe avec interligne avant | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:PC.paragraphe sans interligne avant | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:XH1. :XH2. :XH3. :XH4. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:XH1.titre centré gras souligné | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:XH2.titre gauche gras souligné marge 2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:XH3.titre gauche gras m arge 2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:XH4.titre gauche souligné marge 2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:SL. :LI. :ESL | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:SL.:LI. start list + item list marge 10 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:LI. item list 2 marge 10 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:LI. item list 3 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:ESL | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
imbrication :SL compact. :LI. :ESL | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:SL compact. :LI. start list sans interligne marge 10 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:LI. item list 2 marge 10 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:SL compact. :LI. start list sans interligne marge 14 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:LI. item list 2 marge 14 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:LI. item list 3 marge 14 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:ESL. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:LI. item list 3 marge 10 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:ESL. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:DL. :DTHD. :DDHD. :DT. :DD. :EDL | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:DL. :DTHD. Terme | :DDHD. Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:DT. FIRST TERM | :DD. This is a sample definition list term and | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
description. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SECOND TERM | Here is another.:EDL. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:DL compact. :DT. :DD. :EDL | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
COMPACT | This causes the list to be compacted, so the blank lines | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
are removed. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
quatrieme | Here is another. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:FIG. :FIGCAP. :EFIG. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
some | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sample | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
text | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Figure : | A Sample Figure | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:HP1. :EHP1. à .:HP9. :EHP9. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Highlighting tags may be nested. For example, | HP1 text | HP2 text | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
continuing HP1 text | is valid. | HP1.souligné | HP2.blanc | HP3.blanc | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
souligné | HP4.normal | HP5.inverse | HP6.inverse souligné | HP7.inverse | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
blanc | HP8.inverse blanc | HP9.inverse | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:H1. à :H4. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
H1 A One Heading | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Here's a paragraph. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
H2 A Two Heading | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Another paragraph. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
H3 A Three Heading | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Still another paragraph. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
H4 A Four Heading | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Still another paragraph. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:PARML. :PT. :PD. :EPARML. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
dans PARML, :PK. :EPK. :PV. :EPV. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:PARML. :PT. F1=Help | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:PD. This key... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameter Term to be explained | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameter description need to explain a so complicated usage | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TERM | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is a description of the term. | :PK.Term | :EPK. is a | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
programming keyword. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DEFAULT | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is a sample default parameter. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:PV.variable | :EPV. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is a parameter variable. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:EPARML. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:LINES. :ELINES. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
First line | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Second line | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:OL. :LI. :LP. :EOL. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1. | :OL. :LI. First item | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:LP. This is a list part. This is a list part. This is a list | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
part. This is ... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2. | :LI. Second item | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
a. | :OL COMPACT. :LI. First item in compact ordered list | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is a list part. This is a list part. This is a list | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
part. This is ... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
b. | Second item | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1) | First item in compact ordered list | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is a list part. This is a list part. This is | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
a list part. This is ... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2) | Second item | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
a) | First item in compact ordered list | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is a list part. This is a list part. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is a list part. This is ... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
b) | Second item | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
c) | third item | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
d) | fourth item | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:EOL. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3) | third item | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
4) | fourth item | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:EOL. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
c. | third item | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
d. | fourth item | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:EOL. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3. | third item | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
4. | fourth item | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:EOL. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:SL. :ESL. :UL. :EUL. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
First item in compact ordered list | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is a list part. This is a list part. This is a list part. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is ... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Second item | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
third item Some normal text... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
o | First item (bullet) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | First item (hyphen) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | Second item (hyphen) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
o | Second item (bullet) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fourth item | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:NT. :ENT. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Here's a paragraph. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Remarque : | Here's the first paragraph of the note. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Here's the second paragraph of the note. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
:XMP. :EXMP. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Here's a paragraph. Some normal text... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is an example | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
right here | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
continuation text ... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Hypertext lets users explore the online help information in a way | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
that is most natural for them. Hypertext links can be used within | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
item | specific | help, | extended | help, | and | index | search | help. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
documentation de reference : https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_61/rzakc/sc415715.pdf?view=kc
appendix a