Re: Re: dynamic bind question
Posted by
Jeremiah Jahn-4 on
URL: https://discuss.orbeon.com/dynamic-bind-question-tp997379p1472517.html
I tried this, and although it works for the initial view of the page, I'm obviously missing something to get it to recalculate or something after I change the type. Do I need to dispatch something? because the xpath is defiantly working. Like I said, it just seems to only work on the initial load, but not after any changes.
<xforms:bind nodeset="for $currentItem in instance('data')/descendant-or-self::*/@* return $currentItem[$currentItem/name() = instance('types')/types/type[@typeID = $currentItem/../name()]/type[binding/@type = 'xs:boolean']/@typeID]" type="xs:boolean" />
On Jan 27, 2010, at 10:40 AM, Erik Bruchez wrote:
Jeremiah,
It's not possible to add a new xforms:bind, but if you already had
binds with all the types in your form, you could play with the
@nodeset attribute, e.g.:
<xforms:bind type="xs:integer" nodeset="...dynamically point to nodes
that must be integers..."/>
-Erik
On Sat, Jan 2, 2010 at 11:21 AM, Jeremiah Jahn <
[hidden email]> wrote:
Is it possible to dynamically add a bind element to the model?
I have a form where users can add another field to it, and I want them to be able to specify the xs:type of the field. I know I can submit the form, and then reload it with the additonal bind element added to the model, but I was really hoping that I wouldn't have to make that round trip call. and That I could use some sort of xforms:insert or something. This seems like something that has to have been tackled in formbuilder, so I figure there must be a way.
thanks for the help.
--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe:
[hidden email]For general help: mailto:
[hidden email]?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws
--
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