Access to arguments

I have a need to access the arguments given to a the URL that causes an  
XForm to load.

 http://www.example.com/form.xml?type=1&name=foo

One option would be a pseudo-instance:

 <setvalue ref="bar" value="instance('arguments')/name)" />

but I imagine it would be easier to implement a function:

 <setvalue ref="bar" value="argument('name')" />

Any opinions?

Steven Pemberton

Received on Wednesday, 19 March 2014 15:12:45 UTC