how to implement external tooltip in xml file

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

how to implement external tooltip in xml file

Deepika1234
I want to add external tooltip to my drop down field in an xml file
For that the following is the code in my xml file

<form name="DateTimeFieldsExampleForm" type="single" title=""> 
 <field name="field8"
-               title="Field8: Javascript event"
-               event="onmouseover"
-               action="javascript:checkevent(this.event);"
-               tooltip="TODO"> 
-            <drop-down allow-empty="true"> 
-                <entity-options entity-name="ExampleType"
-                                key-field-name="exampleTypeId"
-                                description="${description}"> 
                     <entity-order-by field-name="description"/> 
                 </entity-options> 
             </drop-down>
 </field name> 
</form>


I would like to know where to write the code for this javascript function checkevent?
Is it possible to call an external js from xml file where to write the code for the javascript function checkevent.Ay suggestion?

Reply | Threaded
Open this post in threaded view
|

Re: how to implement external tooltip in xml file

Atul Vani
Hi Deepika,

you can see how to include javascripts in ecommerce component's
main-decorator,
ofbiz_trunk/specialpurpose/ecommerce/widget/CommonScreens.xml#main-decorator

--
Thanks & Regards
Atul Vani
Enterprise Software Developer
HotWax Media Pvt. Ltd.
http://www.hotwaxmedia.com/
We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.


Deepika1234 wrote:

> I want to add external tooltip to my drop down field in an xml file
> For that the following is the code in my xml file
>
> <form name="DateTimeFieldsExampleForm" type="single" title="">
>  <field name="field8"
> -               title="Field8: Javascript event"
> -               event="onmouseover"
> -               action="javascript:checkevent(this.event);"
> -               tooltip="TODO">
> -            <drop-down allow-empty="true">
> -                <entity-options entity-name="ExampleType"
> -                                key-field-name="exampleTypeId"
> -                                description="${description}">
>                      <entity-order-by field-name="description"/>
>                  </entity-options>
>              </drop-down>
>  </field name>
> </form>
>
>
> I would like to know where to write the code for this javascript function
> checkevent?
> Is it possible to call an external js from xml file where to write the code
> for the javascript function checkevent.Ay suggestion?
>
>
>