1

Im CRM 2011 エンティティのアイコン URL を JavaScript コードから取得することは可能ですか?

ありがとう

4

2 に答える 2

3

これは、任意のアイコン URL を返す関数である可能性があります。

 function GetIconUrl (etc) {
    /// <summary>
    /// Get the url of the 16x16 icon for the specified entity
    /// </summary>
    /// <param name="etc" type="Number">Entity type code of the entity which icon must be retrieved.</param>
    /// <returns type="String">Url of the icon.The path is relative to the application root.</returns>

    var url;
    if (etc >= 10000) {
        // return a custom entity icon
        url = "/_Common/icon.aspx?objectTypeCode=" + etc + "&iconType=GridIcon&inProduction=1&cache=1";
    } else {
        // return a system entity icon
        url = "/_imgs/ico_16_" + etc + ".gif";
    }
    return url;
}
于 2013-03-06T08:56:29.463 に答える
2

エンティティのメタデータを照会し、アイコンを含む Web リソースの名前を確認する必要があります。

于 2013-02-28T16:32:59.783 に答える