locked
look up filter - with java script.. RRS feed

  • Question

  • hi can anyone help me out with filter - lookup view - with java script...  where there are two lookup fields

    1- account lookup

    2 - contact lookup 

    accounts is mandatory one.. and after selecting an account when i click to choose contacts it should show only the contact related with the particular account selected.. 

    var val= crmForm.all.new_customerid.DataValue[0].id;

    var cont=crmForm.all.new_contactid;

    cont.DataValue = null;

    cont.lookupbrowse = 1; 

    cont.AddParam("search", 

         "<fetch mapping='logical'><entity name='contact'>" 

        + "<filter><condition attribute='parentcustomerid' operator='eq' value='" 

        +val + "' /></filter></entity></fetch>");

    this is my small piece of code.. and after posting in on change no effect is happening.. previously it was working!!!! please help...

     

     


    (prijil.p.s)
    Saturday, August 27, 2011 10:40 AM

Answers