You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by imran ismail <ri...@yahoo.com> on 2011/08/30 05:57:33 UTC

Help - OFBiz and New user

Hi All,
I am just a new comer to OFBiz community and the mailing list, I have started to use OFBiz framework just couple of months ago and I have gone through the book that "Beginners Tutorial". I have some problem of adding dropdown to the forms. I.e. In my form there are two drop downs, first one you can select the state and the second dropdown gives you to select the districts depending upon the state you select at the first dropdown. My Question is how do I load the second drop down according to the first dropdown selected. 

Thanks and Kind regards,
Imran

Re: Help - OFBiz and New user

Posted by Jacques Le Roux <ja...@les7arts.com>.
If you want to use form widgets have a look into 
https://demo-trunk.ofbiz.apache.org/example/control/FormWidgetExamples#DropDownFieldsExampleForm_dependendDropDownFields_title

BTW it's always a good idea to look at the Example applications...

Jacques

Sam Hamilton wrote:
> Hi Imran,
> 
> If you look into the source code for this page it should provide an example to help solve your problem.
> https://demo-trunk.ofbiz.apache.org:8443/ecommerce/control/newcustomer
> 
> Sam
> 
> 
> On 30 Aug 2011, at 11:57, imran ismail wrote:
> 
>> Hi All,
>> I am just a new comer to OFBiz community and the mailing list, I have started to use OFBiz framework just couple of months ago
>> and I have gone through the book that "Beginners Tutorial". I have some problem of adding dropdown to the forms. I.e. In my form
>> there are two drop downs, first one you can select the state and the second dropdown gives you to select the districts depending
>> upon the state you select at the first dropdown. My Question is how do I load the second drop down according to the first
>> dropdown selected.    
>> 
>> Thanks and Kind regards,
>> Imran

Re: Help - OFBiz and New user

Posted by Sam Hamilton <sa...@sh81.com>.
Hi Imran,

If you look into the source code for this page it should provide an example to help solve your problem.
https://demo-trunk.ofbiz.apache.org:8443/ecommerce/control/newcustomer

Sam


On 30 Aug 2011, at 11:57, imran ismail wrote:

> Hi All,
> I am just a new comer to OFBiz community and the mailing list, I have started to use OFBiz framework just couple of months ago and I have gone through the book that "Beginners Tutorial". I have some problem of adding dropdown to the forms. I.e. In my form there are two drop downs, first one you can select the state and the second dropdown gives you to select the districts depending upon the state you select at the first dropdown. My Question is how do I load the second drop down according to the first dropdown selected. 
> 
> Thanks and Kind regards,
> Imran