You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Ofbiz Learner <ge...@gmail.com> on 2009/09/16 11:41:03 UTC
State List Drop Down
Hi,
I am new to ofbiz and hope to get help from the forum.
what i want to do that while registering or while adding a shipping address,
i want to show states of india only as shipping is allowed in india only.
is that configured or does it required changes in code ?
What needs to be done for that.
can someone help me out with this.
Thanks,
Akhil
Re: State List Drop Down
Posted by Ofbiz Learner <ge...@gmail.com>.
Hi Abhijeet / Chandan/ Vivek /Mridul,
Thanks a lot.
Akhil.
On 9/16/09, chandan khandelwal <ch...@hotwaxmedia.com> wrote:
>
> Hi Abhijeet,
>
> yes you are right,
> pass countryGeoId as a parameter in getAssociatedStateList ,which return
> state list of associated country.
>
> Chandan Khandelwal
>
> Abhijeet Pandey wrote:
>
>> If i am not wrong this changes has to be made from ftl file.
>> this will pass the parameter as "IND" and will show the states which are
>> associated with it.
>>
>> like states.ftl.
>>
>> Hope i am right.
>>
>> Thanks,
>>
>> Abhijeet
>>
>> On Wed, Sep 16, 2009 at 3:45 PM, chandan khandelwal <
>> chandan.khandelwal@hotwaxmedia.com> wrote:
>>
>>
>>
>>> You can use this code as a reference
>>>
>>>
>>>
>>> Static["org.ofbiz.common.CommonWorkers"].getAssociatedStateList(delegator,"IND")
>>>
>>> Chandan Khandelwal
>>>
>>>
>>>
>>> Ofbiz Learner wrote:
>>>
>>>
>>>
>>>> Can someone plz help me with the code.
>>>>
>>>> That how i can pass india as parameter and get the desried result.
>>>>
>>>> Thanks,
>>>>
>>>> Akhil
>>>>
>>>>
>>>> On 9/16/09, Vivek Mishra <vi...@hotwaxmedia.com> wrote:
>>>>
>>>>
>>>>
>>>>
>>>>> If you have to see the implementation of this method then search
>>>>> geoAutoCompleter.js file.
>>>>>
>>>>> -- Vivek
>>>>>
>>>>> Vivek Mishra wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Hi Akhil,
>>>>>>
>>>>>> In this case you have to pass India's countryGeoId to the method
>>>>>> "getAssociatedStateList".
>>>>>> Search this method in checkoutProcess.js file.
>>>>>>
>>>>>> Thanks!
>>>>>> -- Vivek
>>>>>>
>>>>>> Ofbiz Learner wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I am new to ofbiz and hope to get help from the forum.
>>>>>>>
>>>>>>> what i want to do that while registering or while adding a shipping
>>>>>>> address,
>>>>>>> i want to show states of india only as shipping is allowed in india
>>>>>>> only.
>>>>>>> is that configured or does it required changes in code ?
>>>>>>>
>>>>>>> What needs to be done for that.
>>>>>>> can someone help me out with this.
>>>>>>>
>>>>>>> Thanks,
>>>>>>>
>>>>>>> Akhil
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>
>>>
>>>
>>
>>
>>
>>
>
>
Re: State List Drop Down
Posted by chandan khandelwal <ch...@hotwaxmedia.com>.
Hi Abhijeet,
yes you are right,
pass countryGeoId as a parameter in getAssociatedStateList ,which return
state list of associated country.
Chandan Khandelwal
Abhijeet Pandey wrote:
> If i am not wrong this changes has to be made from ftl file.
> this will pass the parameter as "IND" and will show the states which are
> associated with it.
>
> like states.ftl.
>
> Hope i am right.
>
> Thanks,
>
> Abhijeet
>
> On Wed, Sep 16, 2009 at 3:45 PM, chandan khandelwal <
> chandan.khandelwal@hotwaxmedia.com> wrote:
>
>
>> You can use this code as a reference
>>
>>
>> Static["org.ofbiz.common.CommonWorkers"].getAssociatedStateList(delegator,"IND")
>>
>> Chandan Khandelwal
>>
>>
>>
>> Ofbiz Learner wrote:
>>
>>
>>> Can someone plz help me with the code.
>>>
>>> That how i can pass india as parameter and get the desried result.
>>>
>>> Thanks,
>>>
>>> Akhil
>>>
>>>
>>> On 9/16/09, Vivek Mishra <vi...@hotwaxmedia.com> wrote:
>>>
>>>
>>>
>>>> If you have to see the implementation of this method then search
>>>> geoAutoCompleter.js file.
>>>>
>>>> -- Vivek
>>>>
>>>> Vivek Mishra wrote:
>>>>
>>>>
>>>>
>>>>
>>>>> Hi Akhil,
>>>>>
>>>>> In this case you have to pass India's countryGeoId to the method
>>>>> "getAssociatedStateList".
>>>>> Search this method in checkoutProcess.js file.
>>>>>
>>>>> Thanks!
>>>>> -- Vivek
>>>>>
>>>>> Ofbiz Learner wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I am new to ofbiz and hope to get help from the forum.
>>>>>>
>>>>>> what i want to do that while registering or while adding a shipping
>>>>>> address,
>>>>>> i want to show states of india only as shipping is allowed in india
>>>>>> only.
>>>>>> is that configured or does it required changes in code ?
>>>>>>
>>>>>> What needs to be done for that.
>>>>>> can someone help me out with this.
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Akhil
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>
>>
>
>
>
Re: State List Drop Down
Posted by Abhijeet Pandey <ab...@gmail.com>.
If i am not wrong this changes has to be made from ftl file.
this will pass the parameter as "IND" and will show the states which are
associated with it.
like states.ftl.
Hope i am right.
Thanks,
Abhijeet
On Wed, Sep 16, 2009 at 3:45 PM, chandan khandelwal <
chandan.khandelwal@hotwaxmedia.com> wrote:
> You can use this code as a reference
>
>
> Static["org.ofbiz.common.CommonWorkers"].getAssociatedStateList(delegator,"IND")
>
> Chandan Khandelwal
>
>
>
> Ofbiz Learner wrote:
>
>> Can someone plz help me with the code.
>>
>> That how i can pass india as parameter and get the desried result.
>>
>> Thanks,
>>
>> Akhil
>>
>>
>> On 9/16/09, Vivek Mishra <vi...@hotwaxmedia.com> wrote:
>>
>>
>>> If you have to see the implementation of this method then search
>>> geoAutoCompleter.js file.
>>>
>>> -- Vivek
>>>
>>> Vivek Mishra wrote:
>>>
>>>
>>>
>>>> Hi Akhil,
>>>>
>>>> In this case you have to pass India's countryGeoId to the method
>>>> "getAssociatedStateList".
>>>> Search this method in checkoutProcess.js file.
>>>>
>>>> Thanks!
>>>> -- Vivek
>>>>
>>>> Ofbiz Learner wrote:
>>>>
>>>>
>>>>
>>>>> Hi,
>>>>>
>>>>> I am new to ofbiz and hope to get help from the forum.
>>>>>
>>>>> what i want to do that while registering or while adding a shipping
>>>>> address,
>>>>> i want to show states of india only as shipping is allowed in india
>>>>> only.
>>>>> is that configured or does it required changes in code ?
>>>>>
>>>>> What needs to be done for that.
>>>>> can someone help me out with this.
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Akhil
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>
>>
>
>
--
Abhijeet Pandey
Re: State List Drop Down
Posted by chandan khandelwal <ch...@hotwaxmedia.com>.
You can use this code as a reference
Static["org.ofbiz.common.CommonWorkers"].getAssociatedStateList(delegator,"IND")
Chandan Khandelwal
Ofbiz Learner wrote:
> Can someone plz help me with the code.
>
> That how i can pass india as parameter and get the desried result.
>
> Thanks,
>
> Akhil
>
>
> On 9/16/09, Vivek Mishra <vi...@hotwaxmedia.com> wrote:
>
>> If you have to see the implementation of this method then search
>> geoAutoCompleter.js file.
>>
>> -- Vivek
>>
>> Vivek Mishra wrote:
>>
>>
>>> Hi Akhil,
>>>
>>> In this case you have to pass India's countryGeoId to the method
>>> "getAssociatedStateList".
>>> Search this method in checkoutProcess.js file.
>>>
>>> Thanks!
>>> -- Vivek
>>>
>>> Ofbiz Learner wrote:
>>>
>>>
>>>> Hi,
>>>>
>>>> I am new to ofbiz and hope to get help from the forum.
>>>>
>>>> what i want to do that while registering or while adding a shipping
>>>> address,
>>>> i want to show states of india only as shipping is allowed in india only.
>>>> is that configured or does it required changes in code ?
>>>>
>>>> What needs to be done for that.
>>>> can someone help me out with this.
>>>>
>>>> Thanks,
>>>>
>>>> Akhil
>>>>
>>>>
>>>>
>>>>
>
>
Re: State List Drop Down
Posted by Ofbiz Learner <ge...@gmail.com>.
Can someone plz help me with the code.
That how i can pass india as parameter and get the desried result.
Thanks,
Akhil
On 9/16/09, Vivek Mishra <vi...@hotwaxmedia.com> wrote:
>
> If you have to see the implementation of this method then search
> geoAutoCompleter.js file.
>
> -- Vivek
>
> Vivek Mishra wrote:
>
>> Hi Akhil,
>>
>> In this case you have to pass India's countryGeoId to the method
>> "getAssociatedStateList".
>> Search this method in checkoutProcess.js file.
>>
>> Thanks!
>> -- Vivek
>>
>> Ofbiz Learner wrote:
>>
>>> Hi,
>>>
>>> I am new to ofbiz and hope to get help from the forum.
>>>
>>> what i want to do that while registering or while adding a shipping
>>> address,
>>> i want to show states of india only as shipping is allowed in india only.
>>> is that configured or does it required changes in code ?
>>>
>>> What needs to be done for that.
>>> can someone help me out with this.
>>>
>>> Thanks,
>>>
>>> Akhil
>>>
>>>
>>>
>>
>
Re: State List Drop Down
Posted by Vivek Mishra <vi...@hotwaxmedia.com>.
If you have to see the implementation of this method then search
geoAutoCompleter.js file.
-- Vivek
Vivek Mishra wrote:
> Hi Akhil,
>
> In this case you have to pass India's countryGeoId to the method
> "getAssociatedStateList".
> Search this method in checkoutProcess.js file.
>
> Thanks!
> -- Vivek
>
> Ofbiz Learner wrote:
>> Hi,
>>
>> I am new to ofbiz and hope to get help from the forum.
>>
>> what i want to do that while registering or while adding a shipping
>> address,
>> i want to show states of india only as shipping is allowed in india
>> only.
>> is that configured or does it required changes in code ?
>>
>> What needs to be done for that.
>> can someone help me out with this.
>>
>> Thanks,
>>
>> Akhil
>>
>>
Re: State List Drop Down
Posted by Vivek Mishra <vi...@hotwaxmedia.com>.
Hi Akhil,
In this case you have to pass India's countryGeoId to the method
"getAssociatedStateList".
Search this method in checkoutProcess.js file.
Thanks!
-- Vivek
Ofbiz Learner wrote:
> Hi,
>
> I am new to ofbiz and hope to get help from the forum.
>
> what i want to do that while registering or while adding a shipping address,
> i want to show states of india only as shipping is allowed in india only.
> is that configured or does it required changes in code ?
>
> What needs to be done for that.
> can someone help me out with this.
>
> Thanks,
>
> Akhil
>
>
Re: State List Drop Down
Posted by Mridul Pathak <mr...@hotwaxmedia.com>.
You will need to customized the code.
--
Thanks & Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
mridul.pathak@hotwaxmedia.com
On Wed, Sep 16, 2009 at 3:11 PM, Ofbiz Learner <ge...@gmail.com> wrote:
> Hi,
>
> I am new to ofbiz and hope to get help from the forum.
>
> what i want to do that while registering or while adding a shipping
> address,
> i want to show states of india only as shipping is allowed in india only.
> is that configured or does it required changes in code ?
>
> What needs to be done for that.
> can someone help me out with this.
>
> Thanks,
>
> Akhil
>