Submission replace instance

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Submission replace instance

Marc.Benimeli
Hi all,

I want to use an auto-complete control in a repeat section. To populate
each list on user action, I must have a nodeset reference for each
select1 auto-complete. If I can embed this nodeset into the main
instance, it would be easy to do that.

Would'nt it be usefull to target a particular node to be replaced in a
submission or am I thinking the wrong way to do that ?

Thanks,

--
Marc



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Submission replace instance

Erik Bruchez
Administrator
Marc,

Do you mean that you would like to insert the result of the submission
at a particular place in the target instance, instead of replacing the
entire target instance?

I think it would be good to have such a feature, and this has been
proposed within the XForms Working Group in the past, but I don't think
this is scheduled for XForms 1.1.

However you can achieve the same result with xforms:insert and
xforms:delete and a temporary result instance. Just store the resulting
instance into that instance. Then use xforms:insert/@origin to insert
that temporary instance into a certain spot into another instance.

Note that the XForsm 1.1 @origin attribute is post OPS 3.0.1, so you
will need a reasonably recent build. Here is some information about the
@context and @origin attributes on xforms:insert:

http://www.orbeon.com/ops/doc/reference-xforms-ng#origin-attribute
http://www.orbeon.com/ops/doc/reference-xforms-ng#context-attribute

I hope this makes some sense ;-)

-Erik

[hidden email] wrote:
> Hi all,
>
> I want to use an auto-complete control in a repeat section. To populate
> each list on user action, I must have a nodeset reference for each
> select1 auto-complete. If I can embed this nodeset into the main
> instance, it would be easy to do that.
>
> Would'nt it be usefull to target a particular node to be replaced in a
> submission or am I thinking the wrong way to do that ?

--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Submission replace instance

Marc.Benimeli
In reply to this post by Marc.Benimeli

>Do you mean that you would like to insert the result of the submission
at a particular place in the target instance, >instead of replacing the
entire target instance?

Yes that's it.

>I think it would be good to have such a feature, and this has been
proposed within the XForms Working Group in the past, >but I don't think
this is scheduled for XForms 1.1.

>However you can achieve the same result with xforms:insert and
xforms:delete and a temporary result instance. Just store >the resulting
instance into that instance. Then use xforms:insert/@origin to insert
that temporary instance into a >certain spot into another instance.

>Note that the XForsm 1.1 @origin attribute is post OPS 3.0.1, so you
will need a reasonably recent build. Here is some >information about the
@context and @origin attributes on xforms:insert:

>http://www.orbeon.com/ops/doc/reference-xforms-ng#origin-attribute
>http://www.orbeon.com/ops/doc/reference-xforms-ng#context-attribute

>I hope this makes some sense ;-)

Yes it makes sense and it works ;-)

BTW, I found a problem in the repeat section with a select1
auto-complete control.
It seems that the index of the repeat section is not update when there's
a select1 auto-complete control.

See the attached file.

--
Marc


--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

repeat.xhtml (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Submission replace instance

Alessandro  Vernet
Administrator
On 7/5/06, [hidden email] <[hidden email]> wrote:
> BTW, I found a problem in the repeat section with a select1
> auto-complete control.
> It seems that the index of the repeat section is not update when there's
> a select1 auto-complete control.
>
> See the attached file.

Marc,

I assume this is the same problem as #1 you mention in your email
"Problems with select1 auto-complete in repeat", problem which is now
fixed. If this is another issue, please let us know.

Alex
--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet