RE:SET VALUE INSIDE xforms-value-changed

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

RE:SET VALUE INSIDE xforms-value-changed

Reddy, Gopikrishna
Hi ,Iam new to orbeon can anyone help me out in this
 
Iam giving my code,
 
<xforms:action ev:event="xforms-value-changed">
      <xforms:setvalue ref="instance('main-instance')//fkgiaddlownctryid"
      value="if(instance('main-instance')//fkgiaddlownstid!='Blank')  then
       'US' else ''"/>
            </xforms:action>
 
As here the setvalue works only when value is changed in one node but i want to change the value even the value is not changed is there any way to do this.
 
Thanks and Regards,
K Gopikrishna Reddy
This e-mail (and any attachments), is confidential and may be privileged. It may be read, copied and used only
by intended recipients. Unauthorized access to this e-mail (or attachments) and disclosure or copying of its 
contents or any action taken in reliance on it is unlawful. Unintended recipients must notify the sender immediately 
by e-mail/phone & delete it from their system without making any copies or disclosing it to a third person.



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: RE:SET VALUE INSIDE xforms-value-changed

fl.schmitt(ops-users)
Hi Gopikrishna

> Iam giving my code,
>  
> <xforms:action ev:event="xforms-value-changed">
>       <xforms:setvalue ref="instance('main-instance')//fkgiaddlownctryid"
>       value="if(instance('main-instance')//fkgiaddlownstid!='Blank')  then
>        'US' else ''"/>
>             </xforms:action>
>  
> As here the setvalue works only when value is changed in one node but i
> want to change the value even the value is not changed is there any way
> to do this.
the question is _when_ that action should "fire". If the action should
take place after the user gave focus to the specific control and left it
again, regardless of a value change, then DOMFocusOut may be suitable.
If the value should be changed in any case, even if the control never
got/lost focus, then you will have to react on a more general event,
like xforms-submit, when the users submits and leaves the actual form.

HTH
florian



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws