$webresponsetype

Returns a value indicating the response expected by the browser for the current DSP component instance.

$webresponsetype

Example: if ($webresponsetype="FULLPAGE") ...

Return Values

Returns a value indicating the response expected by the browser for the current DSP instance. The value determines the meaning of $webinfo("input") values.

Valid Values Returned by $webrequesttype
Value Meaning
"FULLPAGE" The current DSP instance does not exist on the client, so a full set of data, definitions, and layout is expected.

In the default postActivate trigger, the weblayout, webdefinitions, and websave statements are executed to generate a complete page.

"UPDATE" The current DSP instance exists on the client, so only the the data needs to be updated.

In the default postActivate trigger, the websave statement is executed to update the data.

Use

Use in Dynamic Server Page components.

Description

This function is typically used in a postActivate trigger to determine whether to invoke the weblayout and webdefinitions statements.

Example: postActivate Trigger for DSP

The default code of the DSP postActivate trigger generates the initial page or a page updated, depending on the value of $webresponsetype. The following example shows a simplified version of this code (excluding the error handling.)

trigger postActivate
selectcase $webresponsetype
case "UPDATE"         ; Update page
  websave               ; Generate data

case "FULLPAGE"       ; Initial page
  weblayout             ; Generate layout
  webdefinitions        ; Generate component definitions
  websave               ; Generate data
endselectcase
end; postActivate
Version Change
9.4.01 Introduced

Related Topics