websetocc

Set the current occurrence according to the information received from the DSP client.

websetocc

Return Values

Values returned in $status
Value Meaning
0 Current occurrence has been successfully set.
<0 An error occurred. $procerror contains the exact error.
Values Commonly Returned by $procerror after websetocc
Value Error constant Meaning
-1 <UGENERR_ERROR> An error occurred. Entity is the outer entity of a Record component.
-1102 <UPROCERR_ENTITY> The entity name requested by the DSP client is not painted on the component.
-1133 <UPROCERR_OCC_NOT_FOUND> Occurrence could not be found

Use

Use in Dynamic Server Page components.

Description

websetocc sets the current entity and occurrence so that triggers and operations execute in the correct context.

The websetocc statement is similar to setocc, but it sets the occurrence based on the entity name and ID received from the Dynamic or Static Server Page client, instead of on hit list position.

You can choose when to invoke websetocc, but this should take place after webload and reconnect.

Use the following ProcScript to set the current occurrence after reconnect:

reconnect/readcheck
websetocc
History

Version

Change

9.4.01

Introduced

Related Topics