pp108 : setInitializeValueSets()

setInitializeValueSets()


It sets the value that indicates whether the Select control attached to the model can be initialized automatically using the values from Process Platform WS AppServer.

Syntax

Script

controlID.setInitializeValueSets(bValue, bAlways)


Parameters

Parameter

Description

bValue

Takes boolean value.

  • True: Control will be initialized with the data from the WS-AppServer.
  • False: Control will not be initialized with the data from the WS-AppServer.

bAlways

Takes boolean value. This is an optional parameter.

  • True: By default it is set to true. If set to true, the validate request is sent to the backend to retrieve the value sets always on focus of the element.
  • False: Validate request is not sent to the backend once the select control is initialized with values.


Remarks


If set to true, on focus of the control, the WS-AppServer Validate request will be triggered to initialize that control. The qValues attribute will be set to one for the data node of the control while sending the request.

In response a list of choices will be supplied and the Select control will be initialized with the values in the response.

Since the data node is not available for the Select control while sending the Get request; and while sending the Validate request on the insertion of a new record, the qValues will be set with the values as XQL of the Select control at the object level.

Applies to


Select