Can you toggle from ev:event="xforms-ready" ?

Dear All,

I have a form which has a value in an instance which can be 1 or 0. 

If it is 0 various fields have to be readonly. I have been using :

readonly="../OID_key = 0"


with some input controls but the users want output controls if the
value/field is readonly.

I looked at using the "relevant=" setting on a bound nodeset but the
node is the whole instance.

So I am left wondering if I can use a switch statement where the case
(read | write) is set upon "xforms-ready" i.e. upon load such that my
controls can be input controls if OID_key=0 is true & output controls if
OID_key=0 is false.

All the examples of toggle & thus case appear to be tied into triggers &
I want the switch to be done upon load.


TIA


Adam

This e-mail is confidential and privileged. If you are not the intended recipient please accept our apologies; please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents: to do so is strictly prohibited and may be unlawful. Please inform us that this message has gone astray before deleting it. Thank you for your co-operation.

Received on Tuesday, 8 August 2006 12:39:16 UTC