How to use event and action properties in the tag "field"

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

How to use event and action properties in the tag "field"

sqlien
Hi,

Iwant to display à specific field when I change my drop down field to some option; I know that it exists event and action properties , but I dont know how to use them ?
here my code:

<field name="status"  title="Statut de la commande" >
                 <drop-down allow-empty="true">
                 <option key="Demandée" description="Demandée"/>
                 <option key="En cours ..." description="En cours ..."/>
                 <option key="Passée" description="Passée"/>
                 <option key="Planifiée" description="Planifiée"/>
                 <option key="Reçue" description="Reçue"/>
            </drop-down>
        </field>

when I change status to "Reçue" i want to display this field:

<field name="num"  title="vouchour" use-when="status==Reçue"><display/> </field>

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: How to use event and action properties in the tag "field"

Jacques Le Roux
Administrator
This is not specific to OFBiz, you have to use javascript. You may look for existing examples, unfortunately none for dropdown, but
don't expect us to do your work ;o).

Jacques

De : "sqlien" <[hidden email]>

>
> Hi,
>
> Iwant to display à specific field when I change my drop down field to some
> option; I know that it exists event and action properties , but I dont know
> how to use them ?
> here my code:
>
> <field name="status"  title="Statut de la commande" >
>                  <drop-down allow-empty="true">
>                  <option key="Demandée" description="Demandée"/>
>                  <option key="En cours ..." description="En cours ..."/>
>                  <option key="Passée" description="Passée"/>
>                  <option key="Planifiée" description="Planifiée"/>
>                  <option key="Reçue" description="Reçue"/>
>             </drop-down>
>         </field>
>
> when I change status to "Reçue" i want to display this field:
>
> <field name="num"  title="vouchour" use-when="status==Reçue"><display/>
> </field>
>
> Thanks
> --
> View this message in context:
http://www.nabble.com/How-to-use-event-and-action-properties-in-the-tag-%22field%22-tf4192581.html#a11922773
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>