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

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

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

Zeder127
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
|

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

Alessandro  Vernet
Administrator
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
|

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

Zeder127
Thank you, I have found another solution
Reply | Threaded
Open this post in threaded view
|

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

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

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