![]() If your Silverlight web resource is independent of any contextual data from Dynamics 365 Customer Engagement (on-premises), you can write and test your Silverlight application as you typically would. Writing and testing Silverlight web resources These values can be accessed at run time using the syntax in the following example: string entityTypeName = The value of the text entered as a custom parameter. The language code representing the organization’s base language. The language code representing the user’s language preference. For custom entities this can vary between organizations. ![]() The values passed are described in the following table. These values are passed to the Silverlight control as a InitParams, a dictionary of key/value pairs. ![]() You also have the option to enter text as a custom parameter. When you add a Silverlight web resource to a form you can select the Pass record object-type code and unique identifier as parameters option. Passing data from a form to an embedded Silverlight web resource ScriptObject pageContext = (ScriptObject)page.GetProperty("context") ĬlientUrl = (string)pageContext.Invoke("getClientUrl") ScriptObject page = (ScriptObject)xrm.GetProperty("Page") ScriptObject xrm = (ScriptObject)("Xrm") The following sample shows how to call the getClientUrl function. After this reference is added, your Silverlight application can access contextual information in the same way it can in an entity form. If you need your Silverlight application to appear outside the context of the form you must configure an HTML web resource to provide this context information by adding a reference to the ClientGlobalContext.js.aspx.md#BKMK_ClientGlobalContext_js_aspx) page. For more information, see Client-side context (client-side reference) If your Silverlight web resource is designed to be viewed in an entity form, the form has an object you can use to access contextual information. View your Silverlight web resource using an HTML web resource configured to provide context information. If you do require contextual information, you must either:Īdd your Silverlight web resource to an entity form. If your Silverlight application does not require contextual information, you can use this URL to view your Silverlight web resource. ![]() When you use the Preview button in the web resources form or just browse to the URL provided, the Silverlight application is hosted in a generic HTML page without context information. However, because Silverlight web resources typically provide some interaction with contextual data in Dynamics 365 Customer Engagement (on-premises), you should plan how you create your web resources. The web resource must be published before you can use it. ![]() Silverlight web resources are easily created using the web resource form by entering a name, a display name, selecting Silverlight (XAP) as the type, and uploading the. Then use the $webresource: directive to open the HTML web resource. To display a Silverlight web resource outside an entity form or chart, create an HTML web resource to be the host page for the Silverlight web resource.Microsoft Silverlight web resources can't be viewed in the 64-bit version of Office Outlook. ![]()
0 Comments
Leave a Reply. |