copy repeating grid from one completed from to another

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

copy repeating grid from one completed from to another

Seth
We have been using HTTP service calls to be able to set controls from one form to another based on some known parameters(Copying information from a previously completed form into a new form where it is editable as needed).  It has worked great till now but we are starting to use repeating grids.  How would this work in a a repeating grid?

Is this possible? We use the standard interface for the action and the service call returns an .xml file to be read.

set control value; controlToBeSet;  /form/section/control

The controlToBeSet does not permit the [iterationNumber] in the action interface.  If the grid repeats more than once how would the action 

--
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/72571796-e886-434e-96f4-f607ed016c7an%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: copy repeating grid from one completed from to another

Alessandro  Vernet
Administrator
Hi Seth,

I think that your situation is very similar to the one discussed with Adam
in the thread linked below. You'll let me know if this helps.

http://discuss.orbeon.com/Repeated-Grid-number-of-rows-td4665280.html

‑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/1597726891534-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: copy repeating grid from one completed from to another

Alessandro  Vernet
Administrator
Hi Seth, did you get to try passing the parameters to your forms, with
something along the line of what was described in the thread I was pointing
to? If so, did that 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/1598294355667-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: copy repeating grid from one completed from to another

Seth
In reply to this post by Alessandro Vernet
Hello sir,

I have tried to implement it but have had some struggles I will continue to
try and see if I can have some success.  

--
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/1598294599915-0.post%40n4.nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: copy repeating grid from one completed from to another

Alessandro  Vernet
Administrator
Got it Seth, you'll let us know if there is something specific we can help
with. Struggling can be good, but we don't want to make you struggle too
much!

‑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/1598310147752-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: copy repeating grid from one completed from to another

Seth
In reply to this post by Seth
In reviewing:

<fr:data-iterate ref="/*/row">
<fr:repeat-add-iteration repeat="my-repeated-grid" at="end"/>

<fr:control-setvalue value="@field" control="result-field" at="end"/>
<fr:control-setvalue value="@dropdown" control="result-dropdown" at="end"/>
</fr:data-iterate>
<fr:control-setitems
items="/*/response/item"
label="@label"
value="@value"
control="result-dropdown"/>
</fr:action>

I think that this is the sample code you were referring to.  My struggle has been since i am wanting to populate the form with the xml file that is part of the service call i am not sure of the basics for what to put in the value = "" and control = "" is that what is coming from the xml file or are those the names of the controls for the grid? and for the file row headers "//fieldName" or is it "/*/fieldName? or does this require something else?

On Monday, August 24, 2020 at 1:43:24 PM UTC-5 Seth Parkhurst wrote:
Hello sir,

I have tried to implement it but have had some struggles I will continue to
try and see if I can have some success.

--
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/199862a5-f59a-41ec-9119-14422a74bedcn%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: copy repeating grid from one completed from to another

Alessandro  Vernet
Administrator
Hi Seth,

In the `<fr:control-setvalue>`:

- The `control` attribute holds the control name you want to populate.
- And the `value` attribute holds an XPath expression relative to the
current repeat iteration pointing to the node whose value you want to use to
populate the aforementioned control.

If you have an example of the XML returned by your service, I can give you a
hint of what those expressions would look like.

‑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/1599004484936-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: copy repeating grid from one completed from to another

Seth
I posted in our Basecamp i am assuming we are still using it.

On Tuesday, September 1, 2020 at 6:54:47 PM UTC-5 Alessandro Vernet wrote:
Hi Seth,

In the `<fr:control-setvalue>`:

- The `control` attribute holds the control name you want to populate.
- And the `value` attribute holds an XPath expression relative to the
current repeat iteration pointing to the node whose value you want to use to
populate the aforementioned control.

If you have an example of the XML returned by your service, I can give you a
hint of what those expressions would look like.

‑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/6de7a260-eb1d-4715-b088-c11bbdcd9e6bn%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: copy repeating grid from one completed from to another

Alessandro  Vernet
Administrator
Understood Seth, and I've just follow-up on Basecamp, and suggest we continue
the discussion there.

‑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/1599865444394-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet