$webrequesttype
Returns a value indicating the type of request from the browser.
$webrequesttype
Example: selectcase $webrequesttype
Return Values
Returns a value indicating the type of request
from the browser for the current DSP
instance. The value determines the meaning of $webinfo("input")
values.
Value | Meaning |
---|---|
"STATIC"
|
The current DSP instance does not exist on the client, so it is not possible to use webload to load data into the component. In the default preActivate trigger, no further action is taken. |
"DYNAMIC"
|
The current DSP instance exists on the client, so webload can be used to load data into the component. In the default preActivate trigger, the webload, reconnect, and websetocc statements are executed. |
Use
Use in Dynamic Server Page components.
Description
$webrequesttype is typically used in a preActivate trigger to determine whether or not to invoke the webload statement.
Example: Using $webrequesttype
The default code of the DSP
preActivate trigger uses webload to
load the data from the browser, only when $webrequesttype returns
DYNAMIC
.
trigger preActivate selectcase $webrequesttype case "DYNAMIC" webload ; Get Data if ($procerror < 0) webmessage/error "webload failed (preActivate)%%^$procerror = %%$procerror%%%" return (0) endif ... <snip> ... endselectcase end; preActivate
Version | Change |
---|---|
9.4.01 | Introduced |