Skip to main content link. Accesskey S
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • IBM Forms wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search
IBM Translated Product Documentation...
 Forms Experience Builder 8 documentation

 Webform Server 8 documentation

 Forms Designer 8 documentation
 Extensible Forms Description Language XFDL 8.0

 Forms API 8 - Dev Guide

 Form Services Platform 8 documentation

 Forms Viewer 8 documentation

 Forms 8 and FileNet integration documentation

 Forms API 4 - Dev Guide
 Forms with Workflow 4
 Forms 4 and Mashup Center integration documentation

Tag Cloud

  • 3.0
  • 3.5
  • 3.5.1
  • 4.0
  • 4.0.0.1
  • 4.0.0.2
  • 8.0
  • accessibility
  • actions
  • API
  • app dev
  • button item
  • buttons
  • C
  • certificates
  • COM
  • compute
  • computes
  • configuring
  • creating
  • defining
  • demonstration
  • demos
  • deployment
  • deployment scenario
  • design
  • design tips
  • Designer
  • designing
  • dev guide
  • develop
  • developing
  • differences between Webform Server and Viewer
  • education
  • Enablement
  • enterprise
  • error messages
  • events
  • field
  • field item
  • FileNet
  • filtering
  • form
  • formatting
  • forms
  • forms experience builder
  • Forms Services Platform
  • FSP
  • functions
  • getting_started
  • Help
  • IBM Forms
  • images
  • installing
  • integrating
  • integrating, 4.0.0.1
  • items
  • JAVA
  • JavaScript API
  • language
  • languages
  • layout
  • lf_intro
  • math functions
  • methods
  • new_user
  • options
  • P8
  • performance
  • pipelines
  • pipes
  • printing
  • programming
  • Properties
  • samples
  • services
  • signature item
  • signatures
  • spec
  • string functions
  • strings
  • StrJava
  • submissions
  • table
  • tables
  • text
  • training
  • translation
  • Turbo
  • turbo_media
  • tutorials
  • utility functions
  • video
  • Viewer
  • viewer package
  • Webform Server
  • WebformServer
  • XFDL
  • XForms
  • XPath
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > Extensible Forms Description Language XFDL 8.0 > Syntax
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars
(Current editable edition)
Original noneditable edition
Current editable edition
(Original noneditable edition)

Syntax 

expanded Abstract
collapsed Abstract
Actions are written in two ways, depending on whether you want to use a group of action or a single action.



Actions are written in two ways, depending on whether you want to use a group of action or a single action.
When using a group of actions, you place them in an <xforms:action> tag. This groups the actions together, so that the actions all respond to the same trigger event. Once triggered, each action is processed in turn. The following syntax applies:
   <xforms:action ev:event="event" 
								context="context" 
								if="condition" 
								while="while-condition" 
								iterate="for-each" >
      <action1 action_settings>
      ...
      <actionn action_settings>
   </xforms:action>


Table 1. xforms actions parameters
ParameterTypeDescription
actionstringThe specific type of action you want to use.
action_settingstringOne or more attributes that sets any values required for the specific action, as well as attributes for any of the parameters below.
contextXPathOptional. Resets the in-scope evaluation context node for other attributes on the xforms:action and other actions within the xforms:action.
eventstringThis sets the event that will trigger the actions. For more information about events, refer to XForms event handlers.
conditionXPathOptional. An XPath expression that evaluates to either true or false. If false, the actions within the xforms:action tag are not processed. This expression is evaluated relative to the context set by its nearest ancestor with a single node or nodeset binding.
This allows for conditional logic within actions.
for-eachXPathOptional. The actions in the xforms:action are performed once for each node in the nodeset obtained by this expression. The actions are performed in the context of each of the nodes.
while-conditionstringOptional. An XPath expression that provides a looping condition for the action This works like a standard while loop expression. While the condition is true, the loop will run. Useful to delete all table rows or copy any number of elements from one parent to another.


Optionally, you can use only a single action. In this case, no <xforms:action> tag is required, as the triggering event is included on the action's tag. This is written as shown:
   <action ev:event="event" 
											 context="context" 
											 if="condition" 
											 while="while-condition" 
											 iterate="for-each" specific_action_settings>


Table 2. xform action parameter
ParameterTypeDescription
actionstringThe specific type of action you want to use.
contextXPathOptional. Resets the in-scope evaluation context node for certain other attributes on the action.
eventstringThis sets the event that will trigger the action. For more information about events, refer to XForms event handlers.
conditionXPathOptional. An XPath expression that evaluates to either true or false. If false, the action is not processed. This expression is evaluated relative to the context set by its nearest ancestor with a single node or nodeset binding, or by the context set by the context attribute.
This allows for conditional logic within actions.
for-eachXPathOptional. The action is performed once for each node in the nodeset obtained by this expression. The actions are performed in the context of each of the nodes.
while-conditionstringOptional. An XPath expression that provides a looping condition for the action. This works like a standard while loop expression. While the condition is true, the loop will run. Useful to delete all table rows or copy any number of elements from one parent to another.
specific_action_settingstringOne or more attributes that sets any values required for the specific action.


Note that all actions are in the XForms namespace, and are preceded by the xforms: prefix. Futhermore, all action settings are written as attributes.
Parent topic:
XForms actions

expanded Article information
collapsed Article information
Category:
Extensible Forms Description Language XFDL 8.0, Product Documentation,
Tags:
XForms Actions, if attribute, if attribute, XFDL, 8.0, spec

This Version: Version 1 May 2, 2012 2:28:17 PM by IBM  IBMer

expanded Attachments (0)
collapsed Attachments (0)

 


expanded Versions (1)
collapsed Versions (1)
Version Comparison     
Version Date Changed by               Summary of changes
This version (1) May 2, 2012 2:28:17 PM IBM  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
  • All Lotus and WebSphere Portal wikis
  • IBM developerWorks
  • IBM Software support
  • IBM Social Business User Experience Blog
  • IBMSocialBizUX on Twitter
  • IBMSocialBizUX on Facebook
  • Lotus product forums
  • IBM Social Business UX blog
  • IBM Collaboration Solutions
  • Recently added feedRecently added
  • Recently edited feedRecently edited
  • Recently added comments feedRecently Added Comments
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Contact IBM
  • IBM Terms of use
  • Wiki terms of use