Posted by
Alessandro Vernet on
Dec 28, 2009; 10:13pm
URL: https://discuss.orbeon.com/Read-Write-to-calculated-bind-tp955564p990007.html
Andy,
On Mon, Dec 28, 2009 at 12:12 PM, Andrew Bailey <
[hidden email]> wrote:
> If I were to set readonly="false()" I think I would need to have, two
> functions: the exslt function str:tokenize to split the string "1 2 3" (is
> this supported in orbeon?) and the inverse concat to join them back again.
You can use tokenize(), which is an XPath 2.0 function:
http://www.w3.org/TR/xpath-functions/#func-tokenizeAnd the opposite would be string-join(), also standard in XPath 2.0:
http://www.w3.org/TR/xpath-functions/#func-string-join> Is there any way to specify the calculate function and the inverse of the
> calculate in a bind, or using events?
> Ill also look into writing a custom xbl component.
You'll have to use events for that, and you can find some inspiration
in the fr:dropdown-dates which does something very similar as it
creates 3 drop-downs to edit a date stored as xs:date:
http://github.com/orbeon/orbeon-forms/blob/master/src/resources-packaged/xbl/orbeon/dropdown-date/dropdown-date.xblAlex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog:
http://www.orbeon.com/blog/My Twitter:
http://twitter.com/avernet--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet