CRM JS hidden tab

根据选择类型隐藏或显示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);

  }

posted @ 2014-01-16 16:22  Bill 李  阅读(221)  评论(0编辑  收藏  举报