Publish Component Property (Simple actions)

Publishes a component event.

Defined in

Simple actions

Type of simple action

Component (Client)

Syntax

Note: This is the XSP source code. The UI presents the simple action as a dialog with a box for each argument.
publishValue name="eventname"	value="value" type="type"
Arguments Description UI presentation
eventname Event name of the property to publish. An edit box plus the diamond icon. You can type a string into the field or click the diamond to dynamically compute the value.
value Value of the property. An edit box plus the diamond icon. You can type a string into the field or click the diamond to dynamically compute the value.
type Data type of the property: String (default), Boolean, Number, or JSON. A dropdown list plus the diamond icon. You can select a value or click the diamond to dynamically compute the value.

Usage

See "Working with components in XPages" in the HCL Domino® Designer User Guide for guidelines on components.

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 publishes a component event.
<xp:button value="Send Frank Adams" id="button2">
	<xp:eventHandler event="onclick" submit="true"
		refreshMode="complete">
		<xp:this.script>
			<xp:publishValue name="UserSelected"
				value="CN=Frank Adams/O=renovations" type="string">
			</xp:publishValue>
		</xp:this.script>
	</xp:eventHandler>
</xp:button>