zoukankan      html  css  js  c++  java
  • Dynamics CRM 2011/2013 通过Javascript给lookup字段赋值

    仅仅做下记录,因为老是用到但老是忘记

    <span style="font-size:18px;">var value = new Array();
    value[0] = new Object();
    value[0].id = idValue;
    value[0].name = textValue;
    value[0].entityType = typeValue;
    
    Xrm.Page.getAttribute(“fieldName”).setValue(value);</span>

    或者

    <span style="font-size:18px;">Xrm.Page.getAttribute(“fieldName”).setValue( [{id: idValue, name: textValue, entityType: typeValue}]);</span>


  • 相关阅读:
    Linux文件权限
    Linux命令
    LeetCode
    LeetCode
    LeetCode
    LeetCode
    LeetCode
    LeetCode
    LeetCode
    LeetCode
  • 原文地址:https://www.cnblogs.com/VicTang/p/3808991.html
Copyright © 2011-2022 走看看