opensubscriber
   Find in this group all groups
 
Unknown more information…

o : ops-users@ow2.org 23 February 2012 • 10:19PM -0500

[ops-users] Re: Does an OnReadOnly event exist or something like that?
by krowe

REPLY TO AUTHOR
 
REPLY TO GROUP




I am using Orbeon forms 3.8. Is it possible to have an action that is used by
all controls when the xforms-readonly event is triggered. I have 100+
controls that change the xforms-readonly event.

So my perfect solution would be a single action that gets called by each
control when an option changes the readonly status of a control, then that
control has its value set to null to clear that field.

<xforms:action ev:event="xforms-readonly">
<xxforms:variable name="ChangedControl-name" select="'ChangedControl'"  
as="xstring"/>
        <xforms:setvalue ref="instance('fr-form-instance')/*/*[name() =
$ChangedControl-name]"  value="null"/>
</xforms:action>

Is this the right way or what would be the better way to do what I want?
How would I know what control triggered the readonly event?


--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Does-an-OnReadOnly-event-exist-or-something-like-that-tp4411498p4413977.html
Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.