99偷拍视频精品区一区二,口述久久久久久久久久久久,国产精品夫妇激情啪发布,成人永久免费网站在线观看,国产精品高清免费在线,青青草在线观看视频观看,久久久久久国产一区,天天婷婷久久18禁,日韩动漫av在线播放直播

JS操作lookupcontrol-創新互聯

以contact的parentcustomerid為例,它是一個lookup field。lookup type為account和contact。默認type為accountJS操作lookupcontro
l

如果要設置默認type為contact的話,可以document.getElementById("parentcustomerid").setAttribute("defaulttype", "2"); // 2 是contact object type code

目前成都創新互聯公司已為超過千家的企業提供了網站建設、域名、網絡空間、成都網站托管、企業網站設計、新安網站維護等服務,公司將堅持客戶導向、應用為本的策略,正道將秉承"和諧、參與、激情"的文化,與客戶和合作伙伴齊心協力一起成長,共同發展。

如果lookup type為account和contact,可以document.getElementById("parentcustomerid").setAttribute("lookuptypes", "1, 2");

設置default view可以Xrm.Page.getControl("parentcustomerid").setDefaultView("E88CA999-0B16-4AE9-B6A9-9EDC840D42D8");

如果想禁止用戶選擇其他的view,可以document.getElementById("parentcustomerid").setAttribute("disableViewPicker", "1");

為lookup字段添加一個自定義視圖 (addCustomView

var viewId = "{C7034F4F-6F92-4DD7-BD9D-9B9C1E996380}";

var viewDisplayName = "SDK Sample View";

var fetchXml = "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>

                                     <entity name='systemuser'>

                                       <attribute name='systemuserid' />

                                       <attribute name='fullname' />

                                       <attribute name='businessunitid' />

                                       <order attribute='fullname' descending='false' />

                                       <link-entity name='businessunit' from='businessunitid' to='businessunitid' visible='false' link-type='outer' alias='a_89c4efa5341e42d5ac34e759aa182065'>

                                         <attribute name='name' />

                                       </link-entity>

                                     </entity>

                                   </fetch>";

Xrm.Page.getControl("parentaccountid").addCustomView(viewId, "account", viewDisplayName, fetchXml, layoutXml, true);

網站標題:JS操作lookupcontrol-創新互聯
分享網址:http://www.yijiale78.com/article8/dddpip.html

成都網站建設公司_創新互聯,為您提供云服務器定制開發App設計企業網站制作網站排名網站策劃

廣告

聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯

成都定制網站建設