Is there any way to use more than one data instance?

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

Is there any way to use more than one data instance?

leosmk
Hello!
I need to use more than one data instance ("fr-form-instance" and custom
instance). Is it possible with Orbeon Forms?

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1605786490710-0.post%40n4.nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: Is there any way to use more than one data instance?

Alessandro  Vernet
Administrator
If this is in the context of a form create with Form Builder, you can edit
the source of the form and add your own instances there. However fields you
create with Form Builder won't know about your other instance(s) and fields
you create with Form Builder will always be bound to elements in
`fr-form-instance`.

Does this help? If not, could you tell us more about what you're trying to
achieve that calls for additional instances?

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1605819965957-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Is there any way to use more than one data instance?

leosmk
Alessandro  Vernet wrote
> If this is in the context of a form create with Form Builder, you can edit
> the source of the form and add your own instances there.

I tried to do this, but it seems that Form Runner doesn't save changes in
custom instances... I see that all fields that bound to my own instance left
unchanged when I click "Save" button.

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1605862091562-0.post%40n4.nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: Is there any way to use more than one data instance?

Alessandro  Vernet
Administrator
Yes, only the content of `fr-form-instance` is saved. Could you tell us more
about the problem you are trying to solve by creating more than one
instance?

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1605915654758-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Is there any way to use more than one data instance?

Alessandro  Vernet
Administrator
Have a found a workaround or way to handle your use case? If not, could you
tell us more about the use case you are trying to solve, as there are maybe
other way to handle it.

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1606526965202-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Is there any way to use more than one data instance?

leosmk
This post was updated on .
In reply to this post by Alessandro Vernet
Alessandro  Vernet wrote
> Yes, only the content of `fr-form-instance` is saved. Could you tell us
> more
> about the problem you are trying to solve by creating more than one
> instance?

I need to send XML data from Orbeon Forms to external system. External
system requires XML data to conform specific XSD schema.
It's very difficult to do so without having at least one custom instance.


--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orbeon+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1607001617962-0.post%40n4.nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: Is there any way to use more than one data instance?

Alessandro  Vernet
Administrator
I imagine that you are using a `send()` action in a process to get the data
to your service. In which case, I would recommend that you send the standard
data formats that Orbeon Forms creates, but instead of sending it to your
final service, you send it to what we could call a "trampoline service",
which does the necessary transformation, maybe using XSLT, before sending
the transformed data to your service. Would something along those lines work
for you?

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1607032504444-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet