locked
Filter Picklist in CRM 4.0 RRS feed

  • Question

  • Hi Friends,

    I have a requirement to develop a filter picklist, this i have done using the tool available, but the problem, now is on the child picklist i have to make default values when the some value is selected from parent picklist.

    Please help me if some one has worked on similar sort of requirement

    Thanks inadvance.

    Regards,

    Kumar


    kumar

    Tuesday, January 29, 2013 5:23 AM

Answers

  • Hi All, 

    I fixed myself , the fix what  implemented was, after generating the Filter picklist script using the Tool , Just go to the attribute of Child picklist and order the default value at the top of the list and add the following line for the 

    oRealatedPicklist.DataValue = " "; sample code case "1" : 
    
    aCurrentType.push(100000000); 
    oRealatedPicklist.DataValue = " "; break;                       
    


    kumar

    • Marked as answer by Anilkumar401 Friday, February 1, 2013 5:14 PM
    Friday, February 1, 2013 5:14 PM

All replies

  • Hello Kumar,

    Try ms crm 4.0 demo tool, there you can create depended filtered picklist and get code to use in your form.


    Contact Me
    Follow me on Twitter
    My Facebook Page
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    Tuesday, January 29, 2013 5:53 AM
    Moderator
  • Hi Mahendar,

    I have generated the script, but when we place the script in CRM, it works with the sort order of CRM, but i have to make one of the option as default after selecting the parent picklist value 

    THanks,

    Kumar


    kumar

    Tuesday, January 29, 2013 5:55 AM
  • So rework the code. Problems?

    Freelance Developer for Dynamics CRM 4.0/2011

    Tuesday, January 29, 2013 6:35 AM
    Moderator
  • you should able to inject your script to set default value in the picklist

    Contact Me
    Follow me on Twitter
    My Facebook Page
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    Tuesday, January 29, 2013 6:58 AM
    Moderator
  • Hi All, 

    I fixed myself , the fix what  implemented was, after generating the Filter picklist script using the Tool , Just go to the attribute of Child picklist and order the default value at the top of the list and add the following line for the 

    oRealatedPicklist.DataValue = " "; sample code case "1" : 
    
    aCurrentType.push(100000000); 
    oRealatedPicklist.DataValue = " "; break;                       
    


    kumar

    • Marked as answer by Anilkumar401 Friday, February 1, 2013 5:14 PM
    Friday, February 1, 2013 5:14 PM