How to add couple of dependent drop downs in one form.

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

How to add couple of dependent drop downs in one form.

Ravindra Mandre-2
Hi all,
I am facing a problem for adding more than one dependent drop down in one
form. For example , I have to add one more dependent dropdown  in create new
customer form. while in this form  a country-state drop down is already
there. I found a comment in PartyScreens.xml of Party Manager component
which says :

 (<!-- fields for setDependentDropdownValuesJs.ftl, it's a try on
generalization but there are still issues. For instance: what if we have 2
couple of dependent dropdowns in the same form? -->)

, so Is there any way to add more than one drop down. or above issue is
Resolved or any other suggestion.




Regards
Ravindra Mandre
Reply | Threaded
Open this post in threaded view
|

Re: How to add couple of dependent drop downs in one form.

Atul Vani
Check these links out, we use this and it works perfectly for any number
of dependent dropdowns.

http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-how-to-use-dependent-selects-for-managing-country-state-select-box-pair/

http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-dependent-selects-for-prototype/

On Thursday 03 February 2011 12:34 PM, Ravindra Mandre wrote:

> Hi all,
> I am facing a problem for adding more than one dependent drop down in one
> form. For example , I have to add one more dependent dropdown  in create new
> customer form. while in this form  a country-state drop down is already
> there. I found a comment in PartyScreens.xml of Party Manager component
> which says :
>
>   (<!-- fields for setDependentDropdownValuesJs.ftl, it's a try on
> generalization but there are still issues. For instance: what if we have 2
> couple of dependent dropdowns in the same form? -->)
>
> , so Is there any way to add more than one drop down. or above issue is
> Resolved or any other suggestion.
>
>
>
>
> Regards
> Ravindra Mandr
--
Thanks&  Regards
Atul Vani
Enterprise Software Developer
HotWax Media Pvt. Ltd.
http://www.hotwaxmedia.com/
We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.

Reply | Threaded
Open this post in threaded view
|

Re: How to add couple of dependent drop downs in one form.

Jacques Le Roux
Administrator
Note though that this will not work in trunk which uses jQuery now (instead of Prototype, only in previous releases, R10.04 for
instance)

Jacques

From: "Atul Vani" <[hidden email]>

> Check these links out, we use this and it works perfectly for any number of dependent dropdowns.
>
> http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-how-to-use-dependent-selects-for-managing-country-state-select-box-pair/
>
> http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-dependent-selects-for-prototype/
>
> On Thursday 03 February 2011 12:34 PM, Ravindra Mandre wrote:
>> Hi all,
>> I am facing a problem for adding more than one dependent drop down in one
>> form. For example , I have to add one more dependent dropdown  in create new
>> customer form. while in this form  a country-state drop down is already
>> there. I found a comment in PartyScreens.xml of Party Manager component
>> which says :
>>
>>   (<!-- fields for setDependentDropdownValuesJs.ftl, it's a try on
>> generalization but there are still issues. For instance: what if we have 2
>> couple of dependent dropdowns in the same form? -->)
>>
>> , so Is there any way to add more than one drop down. or above issue is
>> Resolved or any other suggestion.
>>
>>
>>
>>
>> Regards
>> Ravindra Mandr
> --
> Thanks&  Regards
> Atul Vani
> Enterprise Software Developer
> HotWax Media Pvt. Ltd.
> http://www.hotwaxmedia.com/
> We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.
>


Reply | Threaded
Open this post in threaded view
|

Re: How to add couple of dependent drop downs in one form.

Ryan Foster-3
We should port this to JQuery as I think it is a useful tool to have.  Shouldn't be too hard since I believe the Prototype Class that Anil wrote was originally inspired by a JQuery plugin called Dependent Select by SilVeR (http://plugins.jquery.com/node/11765).  There are a couple more examples floating out around on how to do this with JQuery.  Another good one that I have seen is the Related Selects plugin by Eric Hynds:

http://www.erichynds.com/examples/jquery-related-selects/
https://github.com/ehynds/jquery-related-selects


Ryan L. Foster
801.671.0769
[hidden email]
ryanlfoster.com

On Feb 8, 2011, at 2:49 AM, Jacques Le Roux wrote:

> Note though that this will not work in trunk which uses jQuery now (instead of Prototype, only in previous releases, R10.04 for instance)
>
> Jacques
>
> From: "Atul Vani" <[hidden email]>
>> Check these links out, we use this and it works perfectly for any number of dependent dropdowns.
>>
>> http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-how-to-use-dependent-selects-for-managing-country-state-select-box-pair/
>>
>> http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-dependent-selects-for-prototype/
>>
>> On Thursday 03 February 2011 12:34 PM, Ravindra Mandre wrote:
>>> Hi all,
>>> I am facing a problem for adding more than one dependent drop down in one
>>> form. For example , I have to add one more dependent dropdown  in create new
>>> customer form. while in this form  a country-state drop down is already
>>> there. I found a comment in PartyScreens.xml of Party Manager component
>>> which says :
>>>
>>>  (<!-- fields for setDependentDropdownValuesJs.ftl, it's a try on
>>> generalization but there are still issues. For instance: what if we have 2
>>> couple of dependent dropdowns in the same form? -->)
>>>
>>> , so Is there any way to add more than one drop down. or above issue is
>>> Resolved or any other suggestion.
>>>
>>>
>>>
>>>
>>> Regards
>>> Ravindra Mandr
>> --
>> Thanks&  Regards
>> Atul Vani
>> Enterprise Software Developer
>> HotWax Media Pvt. Ltd.
>> http://www.hotwaxmedia.com/
>> We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.
>
>

Reply | Threaded
Open this post in threaded view
|

Re: How to add couple of dependent drop downs in one form.

Jacques Le Roux
Administrator
Have you seen getDependentDropdownValues.js and how I used it at
https://demo-trunk.ofbiz.apache.org/catalog/control/EditProductPriceRules?productPriceRuleId=9000 ?

Jacques

From: "Ryan Foster" <[hidden email]>
We should port this to JQuery as I think it is a useful tool to have.  Shouldn't be too hard since I believe the Prototype Class
that Anil wrote was originally inspired by a JQuery plugin called Dependent Select by SilVeR (http://plugins.jquery.com/node/11765).
There are a couple more examples floating out around on how to do this with JQuery.  Another good one that I have seen is the
Related Selects plugin by Eric Hynds:

http://www.erichynds.com/examples/jquery-related-selects/
https://github.com/ehynds/jquery-related-selects


Ryan L. Foster
801.671.0769
[hidden email]
ryanlfoster.com

On Feb 8, 2011, at 2:49 AM, Jacques Le Roux wrote:

> Note though that this will not work in trunk which uses jQuery now (instead of Prototype, only in previous releases, R10.04 for
> instance)
>
> Jacques
>
> From: "Atul Vani" <[hidden email]>
>> Check these links out, we use this and it works perfectly for any number of dependent dropdowns.
>>
>> http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-how-to-use-dependent-selects-for-managing-country-state-select-box-pair/
>>
>> http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-dependent-selects-for-prototype/
>>
>> On Thursday 03 February 2011 12:34 PM, Ravindra Mandre wrote:
>>> Hi all,
>>> I am facing a problem for adding more than one dependent drop down in one
>>> form. For example , I have to add one more dependent dropdown  in create new
>>> customer form. while in this form  a country-state drop down is already
>>> there. I found a comment in PartyScreens.xml of Party Manager component
>>> which says :
>>>
>>>  (<!-- fields for setDependentDropdownValuesJs.ftl, it's a try on
>>> generalization but there are still issues. For instance: what if we have 2
>>> couple of dependent dropdowns in the same form? -->)
>>>
>>> , so Is there any way to add more than one drop down. or above issue is
>>> Resolved or any other suggestion.
>>>
>>>
>>>
>>>
>>> Regards
>>> Ravindra Mandr
>> --
>> Thanks&  Regards
>> Atul Vani
>> Enterprise Software Developer
>> HotWax Media Pvt. Ltd.
>> http://www.hotwaxmedia.com/
>> We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.
>
>



Reply | Threaded
Open this post in threaded view
|

Re: How to add couple of dependent drop downs in one form.

Ryan Foster-3
Oops,  I haven't seen this.  Thanks for pointing it out.  On an off-topic note, we need to reduce the size of the Description, From Date, and Thru Date fields a bit on this page as the layout in that first table row gets a bit jacked at different window sizes.  I suggest 30, 15, 15 or somewhere around there.

Ryan L. Foster
801.671.0769
[hidden email]
ryanlfoster.com

On Feb 8, 2011, at 9:35 AM, Jacques Le Roux wrote:

> Have you seen getDependentDropdownValues.js and how I used it at https://demo-trunk.ofbiz.apache.org/catalog/control/EditProductPriceRules?productPriceRuleId=9000 ?
>
> Jacques
>
> From: "Ryan Foster" <[hidden email]>
> We should port this to JQuery as I think it is a useful tool to have.  Shouldn't be too hard since I believe the Prototype Class that Anil wrote was originally inspired by a JQuery plugin called Dependent Select by SilVeR (http://plugins.jquery.com/node/11765). There are a couple more examples floating out around on how to do this with JQuery.  Another good one that I have seen is the Related Selects plugin by Eric Hynds:
>
> http://www.erichynds.com/examples/jquery-related-selects/
> https://github.com/ehynds/jquery-related-selects
>
>
> Ryan L. Foster
> 801.671.0769
> [hidden email]
> ryanlfoster.com
>
> On Feb 8, 2011, at 2:49 AM, Jacques Le Roux wrote:
>
>> Note though that this will not work in trunk which uses jQuery now (instead of Prototype, only in previous releases, R10.04 for instance)
>>
>> Jacques
>>
>> From: "Atul Vani" <[hidden email]>
>>> Check these links out, we use this and it works perfectly for any number of dependent dropdowns.
>>>
>>> http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-how-to-use-dependent-selects-for-managing-country-state-select-box-pair/
>>>
>>> http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-dependent-selects-for-prototype/
>>>
>>> On Thursday 03 February 2011 12:34 PM, Ravindra Mandre wrote:
>>>> Hi all,
>>>> I am facing a problem for adding more than one dependent drop down in one
>>>> form. For example , I have to add one more dependent dropdown  in create new
>>>> customer form. while in this form  a country-state drop down is already
>>>> there. I found a comment in PartyScreens.xml of Party Manager component
>>>> which says :
>>>>
>>>> (<!-- fields for setDependentDropdownValuesJs.ftl, it's a try on
>>>> generalization but there are still issues. For instance: what if we have 2
>>>> couple of dependent dropdowns in the same form? -->)
>>>>
>>>> , so Is there any way to add more than one drop down. or above issue is
>>>> Resolved or any other suggestion.
>>>>
>>>>
>>>>
>>>>
>>>> Regards
>>>> Ravindra Mandr
>>> --
>>> Thanks&  Regards
>>> Atul Vani
>>> Enterprise Software Developer
>>> HotWax Media Pvt. Ltd.
>>> http://www.hotwaxmedia.com/
>>> We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.
>>
>>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: How to add couple of dependent drop downs in one form.

Jacques Le Roux
Administrator
In reply to this post by Jacques Le Roux
BTW I will replace this obsolete comment by a better information on what is really possible

Jacques

From: "Jacques Le Roux" <[hidden email]>

> Have you seen getDependentDropdownValues.js and how I used it at
> https://demo-trunk.ofbiz.apache.org/catalog/control/EditProductPriceRules?productPriceRuleId=9000 ?
>
> Jacques
>
> From: "Ryan Foster" <[hidden email]>
> We should port this to JQuery as I think it is a useful tool to have.  Shouldn't be too hard since I believe the Prototype Class
> that Anil wrote was originally inspired by a JQuery plugin called Dependent Select by SilVeR
> (http://plugins.jquery.com/node/11765). There are a couple more examples floating out around on how to do this with JQuery.
> Another good one that I have seen is the Related Selects plugin by Eric Hynds:
>
> http://www.erichynds.com/examples/jquery-related-selects/
> https://github.com/ehynds/jquery-related-selects
>
>
> Ryan L. Foster
> 801.671.0769
> [hidden email]
> ryanlfoster.com
>
> On Feb 8, 2011, at 2:49 AM, Jacques Le Roux wrote:
>
>> Note though that this will not work in trunk which uses jQuery now (instead of Prototype, only in previous releases, R10.04 for
>> instance)
>>
>> Jacques
>>
>> From: "Atul Vani" <[hidden email]>
>>> Check these links out, we use this and it works perfectly for any number of dependent dropdowns.
>>>
>>> http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-how-to-use-dependent-selects-for-managing-country-state-select-box-pair/
>>>
>>> http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-dependent-selects-for-prototype/
>>>
>>> On Thursday 03 February 2011 12:34 PM, Ravindra Mandre wrote:
>>>> Hi all,
>>>> I am facing a problem for adding more than one dependent drop down in one
>>>> form. For example , I have to add one more dependent dropdown  in create new
>>>> customer form. while in this form  a country-state drop down is already
>>>> there. I found a comment in PartyScreens.xml of Party Manager component
>>>> which says :
>>>>
>>>>  (<!-- fields for setDependentDropdownValuesJs.ftl, it's a try on
>>>> generalization but there are still issues. For instance: what if we have 2
>>>> couple of dependent dropdowns in the same form? -->)
>>>>
>>>> , so Is there any way to add more than one drop down. or above issue is
>>>> Resolved or any other suggestion.
>>>>
>>>>
>>>>
>>>>
>>>> Regards
>>>> Ravindra Mandr
>>> --
>>> Thanks&  Regards
>>> Atul Vani
>>> Enterprise Software Developer
>>> HotWax Media Pvt. Ltd.
>>> http://www.hotwaxmedia.com/
>>> We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.
>>
>>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: How to add couple of dependent drop downs in one form.

Jacques Le Roux
Administrator
In reply to this post by Ryan Foster-3
Right! But this would need more work because the date-time element  had yet not size attribute. Could you please create a Jira for
that?

Thanks

Jacques

Ryan Foster wrote:

> Oops,  I haven't seen this.  Thanks for pointing it out.  On an off-topic note, we need to reduce the size of the Description,
> From Date, and Thru Date fields a bit on this page as the layout in that first table row gets a bit jacked at different window
> sizes.  I suggest 30, 15, 15 or somewhere around there.
>
> Ryan L. Foster
> 801.671.0769
> [hidden email]
> ryanlfoster.com
>
> On Feb 8, 2011, at 9:35 AM, Jacques Le Roux wrote:
>
>> Have you seen getDependentDropdownValues.js and how I used it at
>> https://demo-trunk.ofbiz.apache.org/catalog/control/EditProductPriceRules?productPriceRuleId=9000 ?
>>
>> Jacques
>>
>> From: "Ryan Foster" <[hidden email]>
>> We should port this to JQuery as I think it is a useful tool to have.  Shouldn't be too hard since I believe the Prototype Class
>> that Anil wrote was originally inspired by a JQuery plugin called Dependent Select by SilVeR
>> (http://plugins.jquery.com/node/11765). There are a couple more examples floating out around on how to do this with JQuery.
>> Another good one that I have seen is the Related Selects plugin by Eric Hynds:
>>
>> http://www.erichynds.com/examples/jquery-related-selects/
>> https://github.com/ehynds/jquery-related-selects
>>
>>
>> Ryan L. Foster
>> 801.671.0769
>> [hidden email]
>> ryanlfoster.com
>>
>> On Feb 8, 2011, at 2:49 AM, Jacques Le Roux wrote:
>>
>>> Note though that this will not work in trunk which uses jQuery now (instead of Prototype, only in previous releases, R10.04 for
>>> instance)
>>>
>>> Jacques
>>>
>>> From: "Atul Vani" <[hidden email]>
>>>> Check these links out, we use this and it works perfectly for any number of dependent dropdowns.
>>>>
>>>> http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-how-to-use-dependent-selects-for-managing-country-state-select-box-pair/
>>>>
>>>> http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-dependent-selects-for-prototype/
>>>>
>>>> On Thursday 03 February 2011 12:34 PM, Ravindra Mandre wrote:
>>>>> Hi all,
>>>>> I am facing a problem for adding more than one dependent drop down in one
>>>>> form. For example , I have to add one more dependent dropdown  in create new
>>>>> customer form. while in this form  a country-state drop down is already
>>>>> there. I found a comment in PartyScreens.xml of Party Manager component
>>>>> which says :
>>>>>
>>>>> (<!-- fields for setDependentDropdownValuesJs.ftl, it's a try on
>>>>> generalization but there are still issues. For instance: what if we have 2
>>>>> couple of dependent dropdowns in the same form? -->)
>>>>>
>>>>> , so Is there any way to add more than one drop down. or above issue is
>>>>> Resolved or any other suggestion.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Regards
>>>>> Ravindra Mandr
>>>> --
>>>> Thanks&  Regards
>>>> Atul Vani
>>>> Enterprise Software Developer
>>>> HotWax Media Pvt. Ltd.
>>>> http://www.hotwaxmedia.com/
>>>> We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.


Reply | Threaded
Open this post in threaded view
|

Re: How to add couple of dependent drop downs in one form.

Ryan Foster-3
sure thing.

Ryan L. Foster
801.671.0769
[hidden email]
ryanlfoster.com

On Feb 8, 2011, at 10:16 AM, Jacques Le Roux wrote:

> Right! But this would need more work because the date-time element  had yet not size attribute. Could you please create a Jira for that?
>
> Thanks
>
> Jacques
>
> Ryan Foster wrote:
>> Oops,  I haven't seen this.  Thanks for pointing it out.  On an off-topic note, we need to reduce the size of the Description,
>> From Date, and Thru Date fields a bit on this page as the layout in that first table row gets a bit jacked at different window
>> sizes.  I suggest 30, 15, 15 or somewhere around there.
>>
>> Ryan L. Foster
>> 801.671.0769
>> [hidden email]
>> ryanlfoster.com
>>
>> On Feb 8, 2011, at 9:35 AM, Jacques Le Roux wrote:
>>
>>> Have you seen getDependentDropdownValues.js and how I used it at
>>> https://demo-trunk.ofbiz.apache.org/catalog/control/EditProductPriceRules?productPriceRuleId=9000 ?
>>>
>>> Jacques
>>>
>>> From: "Ryan Foster" <[hidden email]>
>>> We should port this to JQuery as I think it is a useful tool to have.  Shouldn't be too hard since I believe the Prototype Class
>>> that Anil wrote was originally inspired by a JQuery plugin called Dependent Select by SilVeR
>>> (http://plugins.jquery.com/node/11765). There are a couple more examples floating out around on how to do this with JQuery.
>>> Another good one that I have seen is the Related Selects plugin by Eric Hynds:
>>>
>>> http://www.erichynds.com/examples/jquery-related-selects/
>>> https://github.com/ehynds/jquery-related-selects
>>>
>>>
>>> Ryan L. Foster
>>> 801.671.0769
>>> [hidden email]
>>> ryanlfoster.com
>>>
>>> On Feb 8, 2011, at 2:49 AM, Jacques Le Roux wrote:
>>>
>>>> Note though that this will not work in trunk which uses jQuery now (instead of Prototype, only in previous releases, R10.04 for
>>>> instance)
>>>>
>>>> Jacques
>>>>
>>>> From: "Atul Vani" <[hidden email]>
>>>>> Check these links out, we use this and it works perfectly for any number of dependent dropdowns.
>>>>>
>>>>> http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-how-to-use-dependent-selects-for-managing-country-state-select-box-pair/
>>>>>
>>>>> http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-dependent-selects-for-prototype/
>>>>>
>>>>> On Thursday 03 February 2011 12:34 PM, Ravindra Mandre wrote:
>>>>>> Hi all,
>>>>>> I am facing a problem for adding more than one dependent drop down in one
>>>>>> form. For example , I have to add one more dependent dropdown  in create new
>>>>>> customer form. while in this form  a country-state drop down is already
>>>>>> there. I found a comment in PartyScreens.xml of Party Manager component
>>>>>> which says :
>>>>>>
>>>>>> (<!-- fields for setDependentDropdownValuesJs.ftl, it's a try on
>>>>>> generalization but there are still issues. For instance: what if we have 2
>>>>>> couple of dependent dropdowns in the same form? -->)
>>>>>>
>>>>>> , so Is there any way to add more than one drop down. or above issue is
>>>>>> Resolved or any other suggestion.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Regards
>>>>>> Ravindra Mandr
>>>>> --
>>>>> Thanks&  Regards
>>>>> Atul Vani
>>>>> Enterprise Software Developer
>>>>> HotWax Media Pvt. Ltd.
>>>>> http://www.hotwaxmedia.com/
>>>>> We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.
>
>

Reply | Threaded
Open this post in threaded view
|

Re: How to add couple of dependent drop downs in one form.

Jacques Le Roux
Administrator
In reply to this post by Jacques Le Roux
Ryan,

Also, while at it, have you no ideas on what we could do for extending the "Browse Catalogs/Categories" panel without impinging on
the main area, an horizontal scroll I guess?

Jacques

Jacques Le Roux wrote:

> Right! But this would need more work because the date-time element  had yet not size attribute. Could you please create a Jira for
> that?
>
> Thanks
>
> Jacques
>
> Ryan Foster wrote:
>> Oops,  I haven't seen this.  Thanks for pointing it out.  On an off-topic note, we need to reduce the size of the Description,
>> From Date, and Thru Date fields a bit on this page as the layout in that first table row gets a bit jacked at different window
>> sizes.  I suggest 30, 15, 15 or somewhere around there.
>>
>> Ryan L. Foster
>> 801.671.0769
>> [hidden email]
>> ryanlfoster.com
>>
>> On Feb 8, 2011, at 9:35 AM, Jacques Le Roux wrote:
>>
>>> Have you seen getDependentDropdownValues.js and how I used it at
>>> https://demo-trunk.ofbiz.apache.org/catalog/control/EditProductPriceRules?productPriceRuleId=9000 ?
>>>
>>> Jacques
>>>
>>> From: "Ryan Foster" <[hidden email]>
>>> We should port this to JQuery as I think it is a useful tool to have.  Shouldn't be too hard since I believe the Prototype Class
>>> that Anil wrote was originally inspired by a JQuery plugin called Dependent Select by SilVeR
>>> (http://plugins.jquery.com/node/11765). There are a couple more examples floating out around on how to do this with JQuery.
>>> Another good one that I have seen is the Related Selects plugin by Eric Hynds:
>>>
>>> http://www.erichynds.com/examples/jquery-related-selects/
>>> https://github.com/ehynds/jquery-related-selects
>>>
>>>
>>> Ryan L. Foster
>>> 801.671.0769
>>> [hidden email]
>>> ryanlfoster.com
>>>
>>> On Feb 8, 2011, at 2:49 AM, Jacques Le Roux wrote:
>>>
>>>> Note though that this will not work in trunk which uses jQuery now (instead of Prototype, only in previous releases, R10.04 for
>>>> instance)
>>>>
>>>> Jacques
>>>>
>>>> From: "Atul Vani" <[hidden email]>
>>>>> Check these links out, we use this and it works perfectly for any number of dependent dropdowns.
>>>>>
>>>>> http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-how-to-use-dependent-selects-for-managing-country-state-select-box-pair/
>>>>>
>>>>> http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-dependent-selects-for-prototype/
>>>>>
>>>>> On Thursday 03 February 2011 12:34 PM, Ravindra Mandre wrote:
>>>>>> Hi all,
>>>>>> I am facing a problem for adding more than one dependent drop down in one
>>>>>> form. For example , I have to add one more dependent dropdown  in create new
>>>>>> customer form. while in this form  a country-state drop down is already
>>>>>> there. I found a comment in PartyScreens.xml of Party Manager component
>>>>>> which says :
>>>>>>
>>>>>> (<!-- fields for setDependentDropdownValuesJs.ftl, it's a try on
>>>>>> generalization but there are still issues. For instance: what if we have 2
>>>>>> couple of dependent dropdowns in the same form? -->)
>>>>>>
>>>>>> , so Is there any way to add more than one drop down. or above issue is
>>>>>> Resolved or any other suggestion.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Regards
>>>>>> Ravindra Mandr
>>>>> --
>>>>> Thanks&  Regards
>>>>> Atul Vani
>>>>> Enterprise Software Developer
>>>>> HotWax Media Pvt. Ltd.
>>>>> http://www.hotwaxmedia.com/
>>>>> We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.


Reply | Threaded
Open this post in threaded view
|

Re: How to add couple of dependent drop downs in one form.

Ryan Foster-3
I'll take a look at that this week and see if I can come up with something that will work.

Ryan L. Foster
801.671.0769
[hidden email]
ryanlfoster.com

On Feb 8, 2011, at 10:20 AM, Jacques Le Roux wrote:

> Ryan,
>
> Also, while at it, have you no ideas on what we could do for extending the "Browse Catalogs/Categories" panel without impinging on
> the main area, an horizontal scroll I guess?
>
> Jacques
>
> Jacques Le Roux wrote:
>> Right! But this would need more work because the date-time element  had yet not size attribute. Could you please create a Jira for
>> that?
>>
>> Thanks
>>
>> Jacques
>>
>> Ryan Foster wrote:
>>> Oops,  I haven't seen this.  Thanks for pointing it out.  On an off-topic note, we need to reduce the size of the Description,
>>> From Date, and Thru Date fields a bit on this page as the layout in that first table row gets a bit jacked at different window
>>> sizes.  I suggest 30, 15, 15 or somewhere around there.
>>>
>>> Ryan L. Foster
>>> 801.671.0769
>>> [hidden email]
>>> ryanlfoster.com
>>>
>>> On Feb 8, 2011, at 9:35 AM, Jacques Le Roux wrote:
>>>
>>>> Have you seen getDependentDropdownValues.js and how I used it at
>>>> https://demo-trunk.ofbiz.apache.org/catalog/control/EditProductPriceRules?productPriceRuleId=9000 ?
>>>>
>>>> Jacques
>>>>
>>>> From: "Ryan Foster" <[hidden email]>
>>>> We should port this to JQuery as I think it is a useful tool to have.  Shouldn't be too hard since I believe the Prototype Class
>>>> that Anil wrote was originally inspired by a JQuery plugin called Dependent Select by SilVeR
>>>> (http://plugins.jquery.com/node/11765). There are a couple more examples floating out around on how to do this with JQuery.
>>>> Another good one that I have seen is the Related Selects plugin by Eric Hynds:
>>>>
>>>> http://www.erichynds.com/examples/jquery-related-selects/
>>>> https://github.com/ehynds/jquery-related-selects
>>>>
>>>>
>>>> Ryan L. Foster
>>>> 801.671.0769
>>>> [hidden email]
>>>> ryanlfoster.com
>>>>
>>>> On Feb 8, 2011, at 2:49 AM, Jacques Le Roux wrote:
>>>>
>>>>> Note though that this will not work in trunk which uses jQuery now (instead of Prototype, only in previous releases, R10.04 for
>>>>> instance)
>>>>>
>>>>> Jacques
>>>>>
>>>>> From: "Atul Vani" <[hidden email]>
>>>>>> Check these links out, we use this and it works perfectly for any number of dependent dropdowns.
>>>>>>
>>>>>> http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-how-to-use-dependent-selects-for-managing-country-state-select-box-pair/
>>>>>>
>>>>>> http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-dependent-selects-for-prototype/
>>>>>>
>>>>>> On Thursday 03 February 2011 12:34 PM, Ravindra Mandre wrote:
>>>>>>> Hi all,
>>>>>>> I am facing a problem for adding more than one dependent drop down in one
>>>>>>> form. For example , I have to add one more dependent dropdown  in create new
>>>>>>> customer form. while in this form  a country-state drop down is already
>>>>>>> there. I found a comment in PartyScreens.xml of Party Manager component
>>>>>>> which says :
>>>>>>>
>>>>>>> (<!-- fields for setDependentDropdownValuesJs.ftl, it's a try on
>>>>>>> generalization but there are still issues. For instance: what if we have 2
>>>>>>> couple of dependent dropdowns in the same form? -->)
>>>>>>>
>>>>>>> , so Is there any way to add more than one drop down. or above issue is
>>>>>>> Resolved or any other suggestion.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Regards
>>>>>>> Ravindra Mandr
>>>>>> --
>>>>>> Thanks&  Regards
>>>>>> Atul Vani
>>>>>> Enterprise Software Developer
>>>>>> HotWax Media Pvt. Ltd.
>>>>>> http://www.hotwaxmedia.com/
>>>>>> We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.
>
>

Reply | Threaded
Open this post in threaded view
|

Re: How to add couple of dependent drop downs in one form.

Jacques Le Roux
Administrator
In reply to this post by Jacques Le Roux
Done at revision: 1068490

Jacques


Jacques Le Roux wrote:

> BTW I will replace this obsolete comment by a better information on what is really possible
>
> Jacques
>
> From: "Jacques Le Roux" <[hidden email]>
>> Have you seen getDependentDropdownValues.js and how I used it at
>> https://demo-trunk.ofbiz.apache.org/catalog/control/EditProductPriceRules?productPriceRuleId=9000 ?
>>
>> Jacques
>>
>> From: "Ryan Foster" <[hidden email]>
>> We should port this to JQuery as I think it is a useful tool to have.  Shouldn't be too hard since I believe the Prototype Class
>> that Anil wrote was originally inspired by a JQuery plugin called Dependent Select by SilVeR
>> (http://plugins.jquery.com/node/11765). There are a couple more examples floating out around on how to do this with JQuery.
>> Another good one that I have seen is the Related Selects plugin by Eric Hynds:
>>
>> http://www.erichynds.com/examples/jquery-related-selects/
>> https://github.com/ehynds/jquery-related-selects
>>
>>
>> Ryan L. Foster
>> 801.671.0769
>> [hidden email]
>> ryanlfoster.com
>>
>> On Feb 8, 2011, at 2:49 AM, Jacques Le Roux wrote:
>>
>>> Note though that this will not work in trunk which uses jQuery now (instead of Prototype, only in previous releases, R10.04 for
>>> instance)
>>>
>>> Jacques
>>>
>>> From: "Atul Vani" <[hidden email]>
>>>> Check these links out, we use this and it works perfectly for any number of dependent dropdowns.
>>>>
>>>> http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-how-to-use-dependent-selects-for-managing-country-state-select-box-pair/
>>>>
>>>> http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-dependent-selects-for-prototype/
>>>>
>>>> On Thursday 03 February 2011 12:34 PM, Ravindra Mandre wrote:
>>>>> Hi all,
>>>>> I am facing a problem for adding more than one dependent drop down in one
>>>>> form. For example , I have to add one more dependent dropdown  in create new
>>>>> customer form. while in this form  a country-state drop down is already
>>>>> there. I found a comment in PartyScreens.xml of Party Manager component
>>>>> which says :
>>>>>
>>>>>  (<!-- fields for setDependentDropdownValuesJs.ftl, it's a try on
>>>>> generalization but there are still issues. For instance: what if we have 2
>>>>> couple of dependent dropdowns in the same form? -->)
>>>>>
>>>>> , so Is there any way to add more than one drop down. or above issue is
>>>>> Resolved or any other suggestion.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Regards
>>>>> Ravindra Mandr
>>>> --
>>>> Thanks&  Regards
>>>> Atul Vani
>>>> Enterprise Software Developer
>>>> HotWax Media Pvt. Ltd.
>>>> http://www.hotwaxmedia.com/
>>>> We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.