Create Response Document (Simple actions)

Creates a response document and opens it as a new document.

Defined in

Simple actions

Type of simple action

Document (Server)

Syntax

Note: This is the XSP source code. The UI presents the simple action as a dialog with a box for each argument.
createResponse name="string" parentID="string"
Arguments Description UI presentation
name Name of a page in the component to display the response document. A list of existing component pages plus the diamond icon. You can select from the list or click the diamond to dynamically compute the value.
parentID The ID of an existing document that will be the response document's parent document. An edit box plus the diamond icon. You can type the ID in the field or click the diamond to dynamically compute the value.

Examples

Note: These examples present XSP source code which can be inserted under the Source tab taking care to keep the XML well formed. To use the UI, select or enter the arguments in the simple action dialog.
This button creates a response document.
<xp:button value="Create response document" id="button2"
style="width:141.0px"><xp:eventHandler event="onclick" submit="true" refreshMode="complete">
<xp:this.action>
	<xp:createResponse name="/x1.xsp"
		parentId="#{javascript:requestScope.unid}">
	</xp:createResponse>
</xp:this.action></xp:eventHandler></xp:button>