Dynamically label a section in repeated section from a repeated grid control value.

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

Dynamically label a section in repeated section from a repeated grid control value.

mbojja
New to Orbeon - need help !

When synchronising content I would also like to add another section in the repeated section whose label should come from the other repeated grid value.

Check the attached file for sample.

According to https://doc.orbeon.com/form-builder/advanced/services-and-actions/synchronize-repeated-content we can synchronise content. Additionally I also want the employee name[1] in repeated grid to be shown as the label of the section[1] under repeated section and employee name [2] as section[2] and so on .

Can anyone help me in achieving this?

Thanks


--
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/812af024-f4f3-41cd-a072-6e284ff7f614%40googlegroups.com.

Sample (9K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Dynamically label a section in repeated section from a repeated grid control value.

Alessandro  Vernet
Administrator
Hi Bojja,

Indeed, the `<fr:synchronize-repeated-content>` you're pointing to seems to
do what you're looking for. But I am not seeing you trying to use it in your
example. So I'd recommend you start by reading the page you point to, and
try to use the `<fr:synchronize-repeated-content>`. And of course, just let
us know if anything in the documentation isn't clear, or if you have any
difficulty in the process.

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

Re: Dynamically label a section in repeated section from a repeated grid control value.

mbojja
Hi Alex - I need to change the labels here. For the same example can i use the below lines?

<fr:synchronize-repeated-content left="grid-2" right="section-2">
            <fr:map left="control-2" right="control-4"/>
                 <fr:map left="control-2" right="section-3/label"/>             
            </fr:synchronize-repeated-content>

I don't see the labels of the repeated section changing dynamically

Thanks

On Saturday, September 14, 2019 at 2:46:38 AM UTC+8, Alessandro Vernet wrote:
Hi Bojja,

Indeed, the `<fr:synchronize-repeated-content>` you're pointing to seems to
do what you're looking for. But I am not seeing you trying to use it in your
example. So I'd recommend you start by reading the page you point to, and
try to use the `<fr:synchronize-repeated-content>`. And of course, just let
us know if anything in the documentation isn't clear, or if you have any
difficulty in the process.

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: <a href="http://discuss.orbeon.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;">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/9974a5af-6dec-4b30-b286-39f74f004dfa%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Dynamically label a section in repeated section from a repeated grid control value.

Alessandro  Vernet
Administrator
Hi Bojja,

You can't set the label of a section with
`<fr:synchronize-repeated-content>`, but instead you can make the label of
the section depend on a value inside the section. In your example, you're
"setting" the value of `control-4` inside `section-2`. You can open the
"Section/Grid Settings" dialog for that section, to the "Label" tab, add a
Template Parameters you name `control-4`, set it to the value of
`control-4`, and in the title use `{$control-4}`.

You'll let me know if this works 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/1568848785670-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Dynamically label a section in repeated section from a repeated grid control value.

mbojja
Thanks Alex- Works perfect for me!

On Thursday, September 19, 2019 at 7:19:47 AM UTC+8, Alessandro Vernet wrote:
Hi Bojja,

You can't set the label of a section with
`<fr:synchronize-repeated-content>`, but instead you can make the label of
the section depend on a value inside the section. In your example, you're
"setting" the value of `control-4` inside `section-2`. You can open the
"Section/Grid Settings" dialog for that section, to the "Label" tab, add a
Template Parameters you name `control-4`, set it to the value of
`control-4`, and in the title use `{$control-4}`.

You'll let me know if this works for you.

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: <a href="http://discuss.orbeon.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;">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/fdaa63f5-da83-459c-be52-54d90e5e2dfd%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Dynamically label a section in repeated section from a repeated grid control value.

Alessandro  Vernet
Administrator
Great, Bojja! I'm glad using a template for the section title worked, and
thank you for the follow-up.

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