Skip to main content
Skip table of contents

p$TDV:Param:PGEdit


p$TDV:Param:PGEdit

Input/change or display of the data of a parameter group.

Via a system dialog, the content of all parameters are displayed with the naming text and the unit from the definition of the parameter group. If no naming text is available, the parameter name is used. Formatting of the parameter from the PT is taken into account. This function therefore is suitable for the end user.

For example, this function can be used ti edit the search criteria for database I nterface. A more technical dialog for the decision table developer is found under p$TDV:Param:Auswahl.

Changes of the values will only be adopted when leaving the dialog with "OK", when leaving with "Cancel" the data will be left unchanged.

Single-index parameter groups can also be edited. If a (static) index with the PG name is transferred, only the parameter group with this index will be edited. But if an indexed PG is transferred without declaration of the index it can be browsed over the index (until the first unused PG, or until the declared maximum index). However, changes for each PG element have to be adopted or discarded individually.

Please note: The number of parameters in the parameter group for this function is limited to 500 parameters, including indexed parameters in the parameter group. The index of the parameter group is not limited.

Please note: The parameter group which is transferred in PGName is indirectly assigned as a string, and is therefore surrounded in quotation marks. Furthermore the PG has to be global!

Syntax:

p$TDV:Param:PGEdit( Mode, Headline, PGName )

 

Argument

Type

Meaning

 

Mode

Integer

Editing mode
1: Editing/change
2: pure display

 

Headline

String

Headline of the dialog

 

PGName

String

Name of the non or single-index PG, declaration of the index is optional

Result:

-

 

Examples:

Editing of a client (not indexed PG 'client'):

p$TDV:Param:PGEdit( 1, 'ClientData', 'Client' )

 

Display of the client no. 'i' from a list (single-index PG 'clients'):

p$TDV:Param:PGEdit( 2, 'ClientData', 'Clients[' + f$FormatNumber(I, '#') + ']' )

 

Display of the complete client list (single-index PG 'clients'):

p$TDV:Param:PGEdit( 2, 'ClientList', 'Clients' )

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.