JavaScript:
- function hiddenTab ()
- {
- var statecode;
- var statecodeValue;
- var visible = false;
- statecode = Xrm.Page.data.entity.attributes.get("statecode");
- if (statecode != null && statecode.getValue() != null)
- {
- statecodeValue = statecode.getValue();
- if(statecodeValue != "1")
- visible = true;
- }
- Xrm.Page.ui.tabs.get('tab_3').setVisible(visible);
- }
沒有留言:
張貼留言