User defined functions

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

User defined functions

bwallis42
I know this has been asked for before,
http://www.w3.org/TR/xforms20/#The_function_Element, and I just want to add
my vote for this.

I've recently been struggling with helping a customer with a form that has a
repeating table that contains a number of fields that include start date,
start time, end date, end time (for patient ventilation) and the type of
ventilation (manual or machine).

They need to include a calculated column that contains the length of time on
ventilation and the value of this has different rounding rules depending on
the type of ventilation. In addition to this they need to sum the times for
a total at the bottom and again it can be more complex than just a simple
addition.

This is very hard to do in a single calculated value expression
(particularly since this is also an Orbeon 3.9 site!)

Having the ability to define your own functions in a forms model and then
use them would be great. Even better if you could create a function library
in a library template to include in multiple forms. Support for javascript
for the function body would be a bonus, particularly if this support works
server side as well.

thanks
brian...

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

Re: User defined functions

Alessandro  Vernet
Administrator
Hi Brian,

Yes, indeed, we've run against this a number of times in the past. It would
be really good to have, and I've added a +1 from you on the issue linked
below.

https://github.com/orbeon/orbeon-forms/issues/764

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 post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet