JQueryXrmLookupCustomFilterView - Detailed Usage

Apr 28, 2014 at 3:23 PM
Hi,

I'm looking for some more details on the usage of this extension. In the link below it shows some XML, but not how to call this function or from where? Does anyone have any step by step documentation or examples of this? I assume since the function takes in a 'filename' parameter that this XML should be a webresource, but where and how is the function called from?

https://xrmservicetoolkit.codeplex.com/wikipage?title=Extension

Thanks for any help provided!
Coordinator
Apr 28, 2014 at 4:28 PM
Edited Apr 28, 2014 at 4:28 PM
Hi.

The method should be called onChange of the lookup field. For instance if you have a custom lookup called "new_primarycontactid" in account entity. You have created a XML web resource named "new_lookupviewconfig.xml". You should configure all details in your xml definition as your requirements.

You can call the method in the following code.
account_new_primarycontactid_onChange = function () {
    try {
        XrmServiceToolkit.Extension.JQueryXrmCustomFilterView("new_lookupviewconfig.xml");
    }
    catch (err) {
        alert(err.message);
    }
};
Regards,
Jaimie
May 23, 2014 at 9:48 PM
Could this work for an 'Add Existing' button?
Coordinator
May 27, 2014 at 9:23 PM
Hi

This is for lookup field only. SubGrid does not have such functions exposed currently.

Regards,
Jaimie