weblayout
Copies the layout of the dynamic server page instance and prepares to send it to the browser.
weblayout {FileName}
Example: weblayout
Parameters
Parameter | Data Type | Description |
---|---|---|
FileName | String | Name of a file containing the web layout. If not specified, the layout is copied from the Repository definitions. |
Return Values
Value | Meaning |
---|---|
0 | Success |
<0 | An error occurred. $procerror contains the exact error. |
Use
Use in Dynamic Server Page components.
Description
The weblayout copies the layout
of a DSP component instance, either from an external file or from an internal layout, into the
$webinfo("LAYOUT")
channel, in preparation for sending the page
to the browser.
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 |