Radio button

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

Radio button

Vedam B
Hi all,

I wanted to use Radio button in SCREEN and based on a selection would prefer
to populate details to Drop down list box.

Any example code which is already available in OFBiz or any suggestions.

Regards
Vedam
Reply | Threaded
Open this post in threaded view
|

Re: Radio button

BJ Freeman
someone may give you a better idea
but you can created a form widget and included it so it looks like part
of the screen.

Vedam B sent the following on 11/19/2007 12:12 PM:

> Hi all,
>
> I wanted to use Radio button in SCREEN and based on a selection would prefer
> to populate details to Drop down list box.
>
> Any example code which is already available in OFBiz or any suggestions.
>
> Regards
> Vedam
>
Reply | Threaded
Open this post in threaded view
|

Re: Radio button

Vedam B
So, you mean based on the Radio button selection dynamically i can change
the widget itself?

Please correct me if i am wrong.

Regards
Vedam

On Nov 20, 2007 1:53 AM, BJ Freeman <[hidden email]> wrote:

> someone may give you a better idea
> but you can created a form widget and included it so it looks like part
> of the screen.
>
> Vedam B sent the following on 11/19/2007 12:12 PM:
> > Hi all,
> >
> > I wanted to use Radio button in SCREEN and based on a selection would
> prefer
> > to populate details to Drop down list box.
> >
> > Any example code which is already available in OFBiz or any suggestions.
> >
> > Regards
> > Vedam
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Radio button

BJ Freeman
take a look at
https://localhost:8443/example/control/FormWidgetExamples
or
https://demo.hotwaxmedia.com/example/control/FormWidgetExamples
Field8: Javascript event
I am sure you can adapt this to buttons
Vedam B sent the following on 11/19/2007 12:27 PM:

> So, you mean based on the Radio button selection dynamically i can change
> the widget itself?
>
> Please correct me if i am wrong.
>
> Regards
> Vedam
>
> On Nov 20, 2007 1:53 AM, BJ Freeman <[hidden email]> wrote:
>
>> someone may give you a better idea
>> but you can created a form widget and included it so it looks like part
>> of the screen.
>>
>> Vedam B sent the following on 11/19/2007 12:12 PM:
>>> Hi all,
>>>
>>> I wanted to use Radio button in SCREEN and based on a selection would
>> prefer
>>> to populate details to Drop down list box.
>>>
>>> Any example code which is already available in OFBiz or any suggestions.
>>>
>>> Regards
>>> Vedam
>>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Radio button

bombomstory
In reply to this post by Vedam B
You can use this code for get data from entity to radio button:

<field name="ExampleTypeId">
   <radio>
       <entity-options key-field-name="exampleTypeId" description="${description}" entity-name="ExampleType"/>
   </radio>
</field>

You can change entity-name to your entity.

^__^'

Mr.BomBom