![]() Never edit the HTML source code for a page hosting a Silverlight web resource using the text editor provided in the application. Repeat steps 4 through 7 until you're finished. Use this option is your Silverlight application has dependencies on Form elements or context information. Viewing it in the context of an entity form that you've added it to. Viewing it using the Preview button of the host HTML web resource you created. Test your Silverlight web resource by either: xap file from the web application project ClientBin folder to update the Silverlight web resource you created in step 3. Write code in your Silverlight application project.īuild your Silverlight application project. htm files as Silverlight and HTML web resources. Write and test as much of the application as you can without requiring contextual data from Dynamics 365 for Customer Engagement.Ĭreate web resources by uploading the. You should select to create a web application with your project. The process of creating a Silverlight web resource that includes form or context dependencies is as follows:Ĭreate your Silverlight application project. However, it's more likely that your Silverlight application has contextual data dependencies that can't be fully simulated outside of Dynamics 365 for Customer Engagement. xap file, you can test it by using the Preview button in the web resource form after you've saved and published the web resource. After you create a new web resource by uploading your. If your Silverlight web resource is independent of any contextual data from Dynamics 365 for Customer Engagement, 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 for Customer Engagement, 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |