How in Orbeon Forms in a repeted grid in the No. column get the numbers 1,2,3, etc.?

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

How in Orbeon Forms in a repeted grid in the No. column get the numbers 1,2,3, etc.?

czajw
I am new in Orbeon. How in Orbeon Forms in a repeted grid in the No. column get the numbers 1,2,3, etc.? As in the picture below

Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.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/1591774836450-0.post%40n4.nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: How in Orbeon Forms in a repeted grid in the No. column get the numbers 1,2,3, etc.?

mbojja
Hi, you can use the below xpath in calculated value of the text field in repeated grid. Hope this helps!

count(../preceding-sibling::*) + 1




On Friday, June 12, 2020 at 8:04:44 AM UTC+8, czajw wrote:
I am new in Orbeon. How in Orbeon Forms in a repeted grid in the No. column get the numbers 1,2,3, etc.? As in the picture below

Sent from the <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;">Orbeon Forms community mailing list mailing list archive at Nabble.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/7683b4d0-e657-4d27-ab3f-fdde6a43f0d1o%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: How in Orbeon Forms in a repeted grid in the No. column get the numbers 1,2,3, etc.?

czajw
I found this works in repeated grid but not in repeated section.

in repeated section: 1, 2, 2, 2 ...

piątek, 12 czerwca 2020 o 04:11:15 UTC+2 Mani napisał(a):
Hi, you can use the below xpath in calculated value of the text field in repeated grid. Hope this helps!

count(../preceding-sibling::*) + 1




On Friday, June 12, 2020 at 8:04:44 AM UTC+8, czajw wrote:
I am new in Orbeon. How in Orbeon Forms in a repeted grid in the No. column get the numbers 1,2,3, etc.? As in the picture below

Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.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/0a16284c-802c-43d6-9a65-e36afae59cd9n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: How in Orbeon Forms in a repeted grid in the No. column get the numbers 1,2,3, etc.?

Alessandro  Vernet
Administrator
Vlad, try:

    count(../../preceding-sibling::*) + 1

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