Hi All,
This is Sudhakarreddy Chidipudi
Now i will explain how to load Json,JQuery scripts from homepage grid of CRM Entity.
Every ribbon button has Command Definition .We can load the script files from this Command Definition of actions tags.
Below is the example to load the script files form home page grid.
<CommandDefinition Id="Mscrm.HomepageGrid.SudhakarReddyLoadScripts">
<EnableRules>
</EnableRules>
<DisplayRules>
</DisplayRules>
<Actions>
<JavaScriptFunction FunctionName="$" Library="$webresource:sudhakar_jSon" />
<JavaScriptFunction FunctionName="$" Library="$webresource:sudhakar_jQuery" />
<JavaScriptFunction FunctionName="MyTest" Library="$webresource:sudhakar_Functions">
</JavaScriptFunction>
</Actions>
</CommandDefinition>
Have a nice day:)
Sudhakarreddy Chidipudi
Excellent ... Sudhakar.... You made my day....
ReplyDeleteSuper andi Sudhakar garu . . It works for me Thanks
ReplyDelete