count number of rows repeated grid

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

count number of rows repeated grid

Alessio Varalta
Hi, there is an orbeon function to count the number of a repeated grid?

--
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 post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: count number of rows repeated grid

alessiovaralta
Sorry, I don't want to count the number of rows but i want to put in a field-grid the index of the row in the grid. For example


nr name
1  fsdfa
2  dafdasf
Reply | Threaded
Open this post in threaded view
|

Re: count number of rows repeated grid

Alessandro  Vernet
Administrator
Hi Alessio,

You could add a Calculated Value field, and as its calculated value, use:

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

Would this work for you?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: count number of rows repeated grid

alessiovaralta
Yes, thanks work. Very frendly :)
Reply | Threaded
Open this post in threaded view
|

Re: count number of rows repeated grid

Alessandro  Vernet
Administrator
Alessio, I am glad that worked. And yes, unless you're particularly familiar with XPath, I understand this isn't easy to find. So please ask questions here when blocked with something; we're always happy to help!

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet