switchViewAction Element
Defines a view switch action.
Type
Parent Elements
rule |
Defines an action invoked after an event has occurred in the form. |
Child Elements
None.
Attributes
view |
|
Yes |
Contains the name of the view. |
minLength = 1
maxLength = 255
pattern = ([^\p{Z}\p{C}/\\#&"><])(([^\p{Zl}\p{Zp}\p{C}/\\#&"><])*([^\p{Z}\p{C}/\\#&"><]))? |
xsf:xdViewName
|
|
|
|
|
Definition
<xsd:element name="switchViewAction">
<xsd:complexType>
<xsd:attribute name="view" type="xsf:xdViewName" use="required"/>
</xsd:complexType>
<xsd:keyref name="switchViewAction_view_keyref" refer="xsf:view_name_key">
<xsd:selector xpath="." />
<xsd:field xpath="@view"/>
</xsd:keyref>
</xsd:element>
|
Example
The following is an example of the switchViewAction element:
<xsf:rule caption="Receipts" condition="my:expense> 75">
<xsf:dialogBoxMessageAction>Don't forget your receipts!</xsf:dialogBoxMessageAction>
<xsf:switchViewAction view="Approval View"/>
<xsf:assignmentAction targetField="my:group8/my:group9/my:target"
expression ="sum(my:expenses/my:expense) * my:taxRate"/>
<xsf:queryAction adapter="Exchange Rates"/>
<xsf:submitAction adapter="Exchange Rates"/>
<xsf:openNewDocumentAction solutionURI="uri:microsoft-ExpenseReport"/>
<xsf:closeDocumentAction promptToSaveChanges="yes"/>
<xsf:dialogBoxExpressionAction>my:group/my:field1</xsf:dialogBoxExpressionAction>
<xsf:exitRuleSet/>
</xsf:rule>
|