zoukankan      html  css  js  c++  java
  • Dynamics CRM 2011 WebResources

    Type

    Limitation

    Capabilities

    Usage

    Images

    JPG,   PNG, GIF, ICO

    Custom entity icons

     Icons for custom Ribbon controls and SiteMap   subareas

     Decorative graphics for entity forms and Web   page Web resources.

     Background images that are used by CSS Web   resources

    Web   Page:

    <img   src="../Images/image1.png" />

    Form:

     Form Editor

    Rebbion   element & Sitemap subarea:

    <Button Id="MyISV.opportunity.form.actions.FlyoutAnchor.Button.1"

     Image16by16="$webresource:new_/icons/oneIcon16.png"

     Image32by32="$webresource:new_/icons/oneIcon32.png"

    />

    Html   pages

    An   HTML web resource cannot contain any code that must be executed on the   server. ASP.NET pages cannot be uploaded as HTML web resources.

    HTML   web resources can only accept one custom query string parameter called   "data".

    Parameters:

    Typename,type,id,orgname,userlcid,orglcid,data,formid,pagemode,security,tabSet

    <html>

    <head>

     <title>No Border Web   Resource</title>

    </head>

    <body   style="border- 0px; padding-left: 0px; padding-top: 0px;   margin-left: 0px; margin-top: 0px; margin-bottom: 0px; margin-right:   0px">

     <p>

      This Web resource will display with no   border</p>

    </body>

    </html>

    SilverLight

    Microsoft   Dynamics CRM 2011 support adding Silverlight 4.0 web resources to entity   forms. You can display Silverlight 5.0 web resources within an HTML web   resource using a hosting <object> element that is configured for that   version.

    Microsoft   Silverlight web resources cannot be viewed in the 64-bit version of Microsoft   Office Outlook.

    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. Then   use the $webresource:  directive to   open the HTML web resource.

    If   you do require contextual information, you must either:

    1.   Add your Silverlight web resource to an entity form.

    2.   View your Silverlight web resource using an HTML web resource configured to   provide context information.

    If   your Silverlight web resource is designed to be viewed in an entity form, the   form has an Xrm.Page.context object you can use to access contextual information.

    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 page.   After this reference is added, your Silverlight application can access   contextual information in the same way it can in an entity form. The   following sample shows how to call the getServerUrl function from the   Xrm.Page.context object.

    Parameters:

    Id,type,typename,orgname,userlcid,orglcid,data

    private   string serverUrl = "";

    ScriptObject   xrm = (ScriptObject)HtmlPage.Window.GetProperty("Xrm");

    ScriptObject   page = (ScriptObject)xrm.GetProperty("Page");

    ScriptObject   pageContext = (ScriptObject)page.GetProperty("context");

    serverUrl   = (string)pageContext.Invoke("getServerUrl");

    string   entityTypeName = App.Current.Host.InitParams["typename"];

    Jscript

    With   Script Web resources, you can more efficiently manage code used in form   scripts, Web page (HTML) Web resources, or Ribbon commands by linking   them to shared library of JScript functions.

    XSL

    Use   XSL Web resources to transform XML data used by your solution

    Xml

    An   XML Web resource does not represent a robust solution for data that is frequently   updated by multiple users. While one user is updating an XML Web resource,   another user (or automated process) could update the Web resource and that   data would be lost when the first user saves their changes.

    All   XML files must use the .xml file name extension. Files that use XML data but   do not use the .xml file name extension cannot be uploaded as Web resources   unless the file name extension is changed.

    Use   XML Web resources to cache data that you want to use in your solution.

    Css

     only available in the Microsoft Dynamics CRM   security context

    manage   the appearance of Web page Web resources by linking them to a shared library   of CSS styles

    <link   rel="stylesheet" type="text/css"   href="../styles/styles.css" />

  • 相关阅读:
    初始nginx(启动运行) 使用nginx做一个简单的静态资源服务器
    redis总结问题
    reids高可用(灾难备份-持久化)
    mybatis中将0识别为null的解决方法
    Spring MVC 通过反射将数据导出到excel
    spring mvc 中Uploadify插件的使用
    java搭建 SpringMVC+Mybatis(SMM)+mybatis-generate
    让ecshop用户名、手机号、email登陆方法
    ecmobile实现支付宝支付和百度云推送遇到的问题及解决方案(android)
    Oracle分页总汇
  • 原文地址:https://www.cnblogs.com/LeoTang/p/3361827.html
Copyright © 2011-2022 走看看