tommym121
asked on
CRM 2011 - Reference Javascript Web Resource from another Javascript Web Resource
I have download a XrmServiceToolkit.js and create a Web resource called XrmServices.
I would like to call the function of XrmService within another JavaScript Web Resource?
Can it be done? Or any reference you can suggest for a step by step how to do this. Thanks.
I would like to call the function of XrmService within another JavaScript Web Resource?
Can it be done? Or any reference you can suggest for a step by step how to do this. Thanks.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
ASKER
I am not 100% sure what I need to do. I have created the web resource for XrmServiceSdk.
It has a function to retrieve the field value by calling XrmServiceSdk,GetFieldValu
What I am trying to create another function (not in XrmServiceSdk Web Resource but rather another Web resource) that will combine the values from FirstName and LastName. Something like below
Function combineFieldsValue (val1, val2)
{
combineFieldsValue = val1 + ' ' + val2;
}
This function will be call in the OnChange event of a field in the form.
Can I do that? Or I really have to add a function into the XrmServiceSdk since Javascript do not allow #include type.
Hope you can clear up my confusion. Thanks.