首页 > Web开发 > 详细

CRM JS 隐藏tab

时间:2014-01-17 08:44:44      阅读:347      评论:0      收藏:0      [点我收藏+]

根据选择类型隐藏或显示tab.

function association(){

    var attribute= Xrm.Page.getAttribute("xd_type");

    var value= attribute.getValue();

    if(value==0){

        hidetab("tab_5",false);

        hidetab("tab_4",true);

    }else{

       hidetab("tab_4",false);

       hidetab("tab_5",true);

   } }

根据传的值 隐藏 控件 name 控件 名字  show   显示/隐藏

function hidetab(name,show)

{

   var tab=Xrm.Page.ui.tabs.get(name);

   tab.setVisible(show);

  }

CRM JS 隐藏tab

原文:http://www.cnblogs.com/52xiaopeng/p/3522743.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!