Login  Register

"min" and "max" attributes in fr:grid

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

"min" and "max" attributes in fr:grid

Zeder127
23 posts
Hi,

Is it possible to set a dynamic value for "min" or "max" attributes?

Maybe like this:

<fr:grid repeat="true" max="instance()/max/number()">

I tried it, but it didn't work.


regards,
zeder127
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: "min" and "max" attributes in fr:grid

Alessandro  Vernet
Administrator
5128 posts
Hi zeder127,

XPath expressions in the min/max aren't supported at this point; the value is expected to be static. To properly support XPath expressions, they would have to be evaluated by grid.xbl in the outer scope (right now they are evaluated in the inner scope), and the Form Builder Grid Settings dialog should be aware that the value can be an XPath expression.

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

Re: "min" and "max" attributes in fr:grid

Zeder127
23 posts
Thank you, I have found another solution
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: "min" and "max" attributes in fr:grid

Alessandro  Vernet
Administrator
5128 posts
OK, I'm glad you did, and thanks for the update.

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