Thursday 4 July 2013

Load Json,JQuery from Home page of MSCRM 2011


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

2 comments:

  1. Excellent ... Sudhakar.... You made my day....

    ReplyDelete
  2. Super andi Sudhakar garu . . It works for me Thanks

    ReplyDelete