Export (0) Print
Expand All

Xrm.Page Sample Libraries

[Applies to: Microsoft Dynamics CRM 2011]

Sample JScript libraries are provided to demonstrate usage of the Xrm.Page objects. The script samples for each method use these libraries.

These files are included with the downloadable SDK files at: SDK\SampleCode\JS\FormScripts\

You can install the FormScriptDemonstrations_1_0_0_2_managed.zip managed solution located at SDK\SampleCode\JS\FormScripts\. This managed solution adds a Sample Scripts group to the Customize tab of all entity forms. In this group a Form Script Libraries menu allows you to select a method from each of the sample libraries to test the results on the form.

In This Section

Sample: SDK.AttributeSamples.js
Provides functions that demonstrate Xrm.Page.data.entity Attribute Methods

Sample: SDK.AttributesCollectionSamples.js
Provides functions that demonstrate Xrm.Page.data.entity.attributes Collection methods.

Sample: SDK.ContextSamples.js
Provides functions that demonstrate Xrm.Page.context methods. These methods are also available in a context object returned by the GetGlobalContext Function.

Sample: SDK.ControlSamples.js
Provides functions that demonstrate Xrm.Page.ui Control Methods.

Sample: SDK.EntitySamples.js
Provides functions that demonstrate Xrm.Page.data.entity methods.

Sample: SDK.FormItemSamples.js
Provides functions that demonstrate Xrm.Page.ui.formSelector item methods.

Sample: SDK.FormSelectorSamples.js
Provides functions that demonstrate Xrm.Page.ui.formSelector.items Collection methods.

Sample: SDK.NavItemSamples.js
Provides functions that demonstrate Xrm.Page.ui.navigation Item Methods.

Sample: SDK.NavItemsCollectionSamples.js
Provides functions that demonstrate Xrm.Page.ui.navigation.items Collection methods.

Sample: SDK.SectionSamples.js
Provides functions that demonstrate Xrm.Page.ui tab Section Methods and Controls Collection methods.

Sample: SDK.TabCollectionSamples.js
Provides functions that demonstrate Xrm.Page.ui.tabs Collection methods.

Sample: SDK.TabSamples.js
Provides functions that demonstrate Xrm.Page.ui tab methods and Xrm.Page.ui tab.sections Collection methods.

Sample: SDK.UISamples.js
Provides functions that demonstrate Xrm.Page.ui methods.

Reference

Related Sections

Microsoft Dynamics CRM 2011
Send comments about this topic to Microsoft.
© 2013 Microsoft Corporation. All rights reserved.

Community Additions

Show:
© 2014 Microsoft