You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by sqlien <sm...@yahoo.fr> on 2007/07/31 13:58:53 UTC

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

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.


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

Posted by Jacques Le Roux <ja...@les7arts.com>.
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" <sm...@yahoo.fr>
>
> 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.
>