Update List Entry (QUIUPDLE) API


  Required Parameter Group:

1 Application handle Input Char(8)
2 Variable buffer Input Char(*)
3 Variable buffer length Input Binary(4)
4 Variable record name Input Char(10)
5 List name Input Char(10)
6 Option Input Char(4)
7 List entry handle Output Char(4)
8 Error code I/O Char(*)

  Default Public Authority: *USE

  Threadsafe: No

The Update List Entry (QUIUPDLE) API updates the list entry identified by the current entry pointer for the list or the extended action entry. The current contents of all dialog variables corresponding to dialog variables in the list are saved in the entry. The current entry pointer of the list is not changed by this operation.


Authorities and Locks

None.


Required Parameter Group

Application handle
INPUT; CHAR(8)

The application handle assigned by the UIM and returned to the application program by the Open Display Application (QUIOPNDA) API or the Open Print Application (QUIOPNPA) API when the application is opened.

Variable buffer
INPUT; CHAR(*)

The program buffer from which dialog variable values are copied. The dialog variables are copied in the order specified in the variable record definition.

If the variable record name parameter specifies the name of a variable record, which is defined in the panel group for this open application, dialog variables are copied from the variable buffer to the application variable pool before the list entry is updated. The operation of this parameter is the same as using the Put Dialog Variable (QUIPUTV) API immediately before the QUIUPDLE API.

The variable buffer must be large enough to contain all the variables specified in the variable record definition.

Variable buffer length
INPUT; BINARY(4)

The length of the variable buffer provided. The buffer must be large enough to contain all the dialog variables in the definition of the variable record, specified in the variable record name parameter.

Variable record name
INPUT; CHAR(10)

The name of the variable record that determines which dialog variables are copied between the variable buffer and the application variable pool. The variable record must be defined in the panel group for the open application.

The following special value can be used:

*NONE The QUIPUTV API is not done during the QUIUPDLE API. The variable buffer parameter is ignored when this value is used.

List name
INPUT; CHAR(10)

The name of the list in which an entry is updated. If the list is not currently active in the open application, an error is reported. A list is made active the first time an entry is inserted with the Add List Entry (QUIADDLE) API or the Add List Multiple Entries (QUIADDLM) API, or its attributes are set with the Set List Attributes (QUISETLA) API.

Option
INPUT; CHAR(4)

The updated list entry. One of the following values must be specified:

EXTE The extended action entry is updated.
SAME The list entry identified by the current entry pointer is updated.

List entry handle
OUTPUT; CHAR(4)

The list entry handle for the updated list entry. A list entry handle uniquely distinguishes an entry until it is removed from the list, even if other entries are inserted and removed from the list.

When the option parameter has the value EXTE, this parameter returns the value EXTE, indicating that the extended action entry is updated.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Error Messages

Message ID Error Message Text
CPF3C90 E Literal value cannot be changed.
CPF6AA1 E The value of the action field is not correct at this time. Reason code &5.
CPF6A0B E Application handle &3 not valid.
CPF6A0C E Application domain error for application &1.
CPF6A0F E Previous error occurred while running application &3.
CPF6A24 E Parameter &1 not passed correctly.
CPF6A25 E Return code length of &1 not valid.
CPF6A28 E Value for Option parameter not valid.
CPF6A36 E Data not correct for dialog variable &4 in panel group &1 in &2.
CPF6A37 E Data not correct for dialog variable &4 in panel group &1 in &2.
CPF6A38 E Variable record &4 not defined in panel group.
CPF6A39 E Variable buffer length too small.
CPF6A90 E Value not correct. Reason code &3.
CPF6A91 E List &4 does not exist.
CPF6A92 E List &4 not active.
CPF6A93 E Operation not valid when current entry is &5.
CPF9872 E Program or service program &1 in library &2 ended. Reason code &3.


API introduced: V2R2

[ Back to top | User Interface Manager APIs | APIs by category ]