You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Hari Plaikoil <ha...@gmail.com> on 2009/01/06 05:00:53 UTC
Checkbox on Form Widget
Dear all, Happy New Year for all of you...
Would you like to tell me, is it possible to add/use checkbox on form
widget? (I mean, not in .ftl form)
rgds
Hari Plaikoil
--
View this message in context: http://www.nabble.com/Checkbox-on-Form-Widget-tp21304357p21304357.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
RE: Checkbox on Form Widget
Posted by Hari Plaikoil <ha...@gmail.com>.
Dear Nikita,
I'm so sorry, I couldn't reply your message immediately. I was in the middle
of another task in ofbiz. Thank you for your advice. It helped me much.
Regards,
Hari Plaikoil.
Nikita Shinde wrote:
>
> Hi Hari,
>
> It's best not to use "auto-fields-entity" tag in this case, you can
> just put the fields you need to display in the form:
>
> <field name="createdStamp" title="Date"><display/></field>
> <field name="isRushOrder"><check/></field>
>
> Else other way round is -
>
> <auto-fields-entity entity-name="OrderHeader"
> default-field-type="display"/>
> <field name="orderTypeId" title="Date"><hidden/></field>
> .
> .
> .(make other unrequired fields as hidden)
> .
> .
> .
> <field name="isRushOrder"><check/></field>
>
> If you want to have isRushOrder field to be checked by default then you
> can
> use this -
>
> <field name="isRushOrder"><check all-checked="true"/></field>
>
> Let me know if you still have any issues.
>
> Regards,
> Nikita
> Amicon Technologies Pvt. Ltd., Mumbai, India.
> India's No.1 OFBiz service provider
>
> -----Original Message-----
> From: Hari Plaikoil [mailto:hari.plaikoil@gmail.com]
> Sent: Thursday, January 08, 2009 1:45 PM
> To: user@ofbiz.apache.org
> Subject: RE: Checkbox on Form Widget
>
>
> Thanks Nikita for your suggestion....
>
> Sorry, I'm too late to reply.
>
> Btw, I tried your advice, It worked. But, since I declare all the fields
> hidden at the beginning (and manually display some of the fields). I've
> got
> problem to use "<display/>" and "<check/>" on the same time.
>
> This is my code :
>
> <auto-fields-entity entity-name="OrderHeader"
> default-field-type="hidden"/>
> <field name="createdStamp" title="Date"><display/></field>
> <field name="orderId"><check/></field>
>
> When I use <check/> instead of <display/>, The "orderId" (the title) is
> gone. I want the "title" and the "check" to be showed.
>
> Could you help me how to solve this problem?
>
> Thank you.
>
>
> rgds'
>
> Hari Plaikoil
>
>
>
> Btw,
>
>
> Nikita Shinde wrote:
>>
>> Yes absolutely possible. Here's how you do it -
>>
>> <field name="belowMinimumStock"><check/></field>
>>
>> Hope that helps.
>>
>> Regards,
>> Nikita
>> Amicon Technologies Pvt. Ltd., Mumbai, India.
>> India's No.1 OFBiz service provider
>>
>> -----Original Message-----
>> From: Hari Plaikoil [mailto:hari.plaikoil@gmail.com]
>> Sent: Tuesday, January 06, 2009 9:31 AM
>> To: user@ofbiz.apache.org
>> Subject: Checkbox on Form Widget
>>
>>
>> Dear all, Happy New Year for all of you...
>>
>> Would you like to tell me, is it possible to add/use checkbox on form
>> widget? (I mean, not in .ftl form)
>>
>>
>> rgds
>>
>> Hari Plaikoil
>> --
>> View this message in context:
>> http://www.nabble.com/Checkbox-on-Form-Widget-tp21304357p21304357.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/Checkbox-on-Form-Widget-tp21304357p21347465.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>
>
--
View this message in context: http://www.nabble.com/Checkbox-on-Form-Widget-tp21304357p21782739.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
RE: Checkbox on Form Widget
Posted by Nikita Shinde <ni...@amicontech.com>.
Hi Hari,
It's best not to use "auto-fields-entity" tag in this case, you can
just put the fields you need to display in the form:
<field name="createdStamp" title="Date"><display/></field>
<field name="isRushOrder"><check/></field>
Else other way round is -
<auto-fields-entity entity-name="OrderHeader" default-field-type="display"/>
<field name="orderTypeId" title="Date"><hidden/></field>
.
.
.(make other unrequired fields as hidden)
.
.
.
<field name="isRushOrder"><check/></field>
If you want to have isRushOrder field to be checked by default then you can
use this -
<field name="isRushOrder"><check all-checked="true"/></field>
Let me know if you still have any issues.
Regards,
Nikita
Amicon Technologies Pvt. Ltd., Mumbai, India.
India's No.1 OFBiz service provider
-----Original Message-----
From: Hari Plaikoil [mailto:hari.plaikoil@gmail.com]
Sent: Thursday, January 08, 2009 1:45 PM
To: user@ofbiz.apache.org
Subject: RE: Checkbox on Form Widget
Thanks Nikita for your suggestion....
Sorry, I'm too late to reply.
Btw, I tried your advice, It worked. But, since I declare all the fields
hidden at the beginning (and manually display some of the fields). I've got
problem to use "<display/>" and "<check/>" on the same time.
This is my code :
<auto-fields-entity entity-name="OrderHeader" default-field-type="hidden"/>
<field name="createdStamp" title="Date"><display/></field>
<field name="orderId"><check/></field>
When I use <check/> instead of <display/>, The "orderId" (the title) is
gone. I want the "title" and the "check" to be showed.
Could you help me how to solve this problem?
Thank you.
rgds'
Hari Plaikoil
Btw,
Nikita Shinde wrote:
>
> Yes absolutely possible. Here's how you do it -
>
> <field name="belowMinimumStock"><check/></field>
>
> Hope that helps.
>
> Regards,
> Nikita
> Amicon Technologies Pvt. Ltd., Mumbai, India.
> India's No.1 OFBiz service provider
>
> -----Original Message-----
> From: Hari Plaikoil [mailto:hari.plaikoil@gmail.com]
> Sent: Tuesday, January 06, 2009 9:31 AM
> To: user@ofbiz.apache.org
> Subject: Checkbox on Form Widget
>
>
> Dear all, Happy New Year for all of you...
>
> Would you like to tell me, is it possible to add/use checkbox on form
> widget? (I mean, not in .ftl form)
>
>
> rgds
>
> Hari Plaikoil
> --
> View this message in context:
> http://www.nabble.com/Checkbox-on-Form-Widget-tp21304357p21304357.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>
>
--
View this message in context:
http://www.nabble.com/Checkbox-on-Form-Widget-tp21304357p21347465.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
RE: Checkbox on Form Widget
Posted by Hari Plaikoil <ha...@gmail.com>.
Thanks Nikita for your suggestion....
Sorry, I'm too late to reply.
Btw, I tried your advice, It worked. But, since I declare all the fields
hidden at the beginning (and manually display some of the fields). I've got
problem to use "<display/>" and "<check/>" on the same time.
This is my code :
<auto-fields-entity entity-name="OrderHeader" default-field-type="hidden"/>
<field name="createdStamp" title="Date"><display/></field>
<field name="orderId"><check/></field>
When I use <check/> instead of <display/>, The "orderId" (the title) is
gone. I want the "title" and the "check" to be showed.
Could you help me how to solve this problem?
Thank you.
rgds'
Hari Plaikoil
Btw,
Nikita Shinde wrote:
>
> Yes absolutely possible. Here's how you do it -
>
> <field name="belowMinimumStock"><check/></field>
>
> Hope that helps.
>
> Regards,
> Nikita
> Amicon Technologies Pvt. Ltd., Mumbai, India.
> India's No.1 OFBiz service provider
>
> -----Original Message-----
> From: Hari Plaikoil [mailto:hari.plaikoil@gmail.com]
> Sent: Tuesday, January 06, 2009 9:31 AM
> To: user@ofbiz.apache.org
> Subject: Checkbox on Form Widget
>
>
> Dear all, Happy New Year for all of you...
>
> Would you like to tell me, is it possible to add/use checkbox on form
> widget? (I mean, not in .ftl form)
>
>
> rgds
>
> Hari Plaikoil
> --
> View this message in context:
> http://www.nabble.com/Checkbox-on-Form-Widget-tp21304357p21304357.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>
>
--
View this message in context: http://www.nabble.com/Checkbox-on-Form-Widget-tp21304357p21347465.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
RE: Checkbox on Form Widget
Posted by Nikita Shinde <ni...@amicontech.com>.
Yes absolutely possible. Here's how you do it -
<field name="belowMinimumStock"><check/></field>
Hope that helps.
Regards,
Nikita
Amicon Technologies Pvt. Ltd., Mumbai, India.
India's No.1 OFBiz service provider
-----Original Message-----
From: Hari Plaikoil [mailto:hari.plaikoil@gmail.com]
Sent: Tuesday, January 06, 2009 9:31 AM
To: user@ofbiz.apache.org
Subject: Checkbox on Form Widget
Dear all, Happy New Year for all of you...
Would you like to tell me, is it possible to add/use checkbox on form
widget? (I mean, not in .ftl form)
rgds
Hari Plaikoil
--
View this message in context:
http://www.nabble.com/Checkbox-on-Form-Widget-tp21304357p21304357.html
Sent from the OFBiz - User mailing list archive at Nabble.com.