Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Javascript addPresearch() not working in version 9.0 plus

$
0
0
var Hospitamanagement=Hospitamanagement || {}
Hospitamanagement.Doctorfilter=function(executionContext)
{
    var formContext = executionContext.getFormContext();
    var department_id=formContext.getAttribute("preetham_departmentid").getValue()[0].id;
    if(department_id!=null)
    {
        var fetchxml="<filter type='and'>"+
        "      <condition attribute='preetham_departmentsid' operator='eq' value='"+department_id+"' />"+
        "    </filter>"
    }
    formContext.getControl("preetham_doctorid").addPreSearch(function(){
        formContext.getControl("preetham_doctorid").addCustomFilter(fetchxml);
    });
}

   
AddPresearch function is not triggering .

Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images