ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacques Le Roux <jacques.le.r...@les7arts.com>
Subject Re: Form Widget Issue
Date Fri, 19 Jul 2013 17:03:13 GMT
For me this works perfectly against trunk
I did not try to handle a request, just the UI

Index: specialpurpose/example/widget/example/FormWidgetExampleForms.xml
===================================================================
--- specialpurpose/example/widget/example/FormWidgetExampleForms.xml (revision 1504451)
+++ specialpurpose/example/widget/example/FormWidgetExampleForms.xml (working copy)
@@ -384,6 +384,26 @@
               <entity-options key-field-name="exampleTypeId" description="${description}"
entity-name="ExampleType"/>
            </check>
         </field>
+        
+        <field name="radioButton1" title="A" id-name="a" >
+            <radio>
+                <option key="VGD1" description="Very Good" />
+                <option key="GOD1" description="Good" />
+                <option key="AVG1" description="Average" />
+                <option key="BAG1" description="Below Average" />
+            </radio>
+        </field>
+        <field name="radioButton2" title="B" id-name="b">
+            <radio>
+                <option key="VGD" description="Very Good" />
+                <option key="GOD" description="Good" />
+                <option key="AVG" description="Average" />
+                <option key="BAG" description="Below Average" />
+            </radio>
+        </field>
+        
     </form>
+    
+    
 
 </forms>

Jacques

vivek mishra wrote:
> Two radio button fields are not there in a single form Jacques..  :(
> 
> Regards,
> 
>> Try to experiment where it already exists: MiscForms.xml
>> 
>> path: webtools/control/WebtoolsLayoutDemo
>> 
>> Note that the field name must be unique...
>> 
>> Jacques
>> 
>> vivek mishra wrote:
>>> Hi Nicolas,
>>> 
>>> Here's the sample code:
>>> 
>>>  <form name="formName" target="targetrequest" title=" Form" type="single"
>>>             header-row-style="header-row">
>>>         <field name="radioButton" position="1"  title="A" id-name="a" >
>>>             <radio>
>>>                 <option key="VGD" description="Very Good" />
>>>                 <option key="GOD" description="Good" />
>>>                 <option key="AVG" description="Average" />
>>>                 <option key="BAG" description="Below Average" />
>>>             </radio>
>>>         </field>
>>>         <field name="radioButton" position="2" title="B" id-name="b">
>>>             <radio>
>>>                 <option key="VGD" description="Very Good" />
>>>                 <option key="GOD" description="Good" />
>>>                 <option key="AVG" description="Average" />
>>>                 <option key="BAG" description="Below Average" />
>>>             </radio>
>>>         </field>
>>>     </form>
>>> 
>>> Here it is showing only the last title "B" with four radio button for very
>>> good, good, average and below average. It doesn't show "A" with these
>>> option.
>>> 
>>> Thanks & Regards,
>>> 
>>>> Hi vivek,
>>>> 
>>>> Can you give us the code ?
>>>> 
>>>> Nicolas
>>>> 
>>>> Le 18/07/2013 06:29, vivek mishra a écrit :
>>>> 
>>>>  Hello All,
>>>>> 
>>>>> Can't we use multiple radio button field in a single form widget? I am
>>>>> trying to add four radio button field's section but it's displaying only
>>>>> the last one.
>>>>> 
>>>>> For ex: In a feedback form we have certain options like Quality, Services
>>>>> etc. In each option we have good, average, below average parameters.
>>>>> When I am adding Quality and Services as a radio button and putting
>>>>> options
>>>>> inside these radio button fields it's displaying the last one only. In
>>>>> this
>>>>> case it only shows Services and it's option.
>>>>> 
>>>>> Any help will be much appreciated.
>>>>> 
>>>>> Thanks & Regards,
>>>>> --
>>>>> Vivek Mishra
>>>>> 
>>>>> 
>>>> 
>>>> --
>>>> Nicolas MALIN
>>>> Consultant
>>>> Tél : 06.17.66.40.06
>>>> Site projet : http://www.neogia.org/
>>>> -------
>>>> Société LibrenBerry
>>>> Tél : 02.48.02.56.12
>>>> Site : http://www.librenberry.net/

Mime
View raw message