According to this article, Relationship tabs are indexed with RelationshipType ID. That means RelationshipType ID is Relationship tab ID. And also, Relatioship tabs are a part of Item window.
Therefore, the first step is to get Item window reference. it could easily get with below code:
Therefore, the first step is to get Item window reference. it could easily get with below code:
var thisWnd = aras.getMostTopWindowWithAras(window);
Enable/Disable
Use below code can enable/disable a tab. The parameter "Enabled" is a Boolean, the tab will be disabled if passing false.
thisWnd.relationships.relTabbar.SetTabEnabled(RelationshipType ID,Enabled)
Visibility
Use below code can control the visibilty of a tab. The parameter "Visible" is a Boolean, the tab will hide if passing false.
thisWnd.relationships.relTabbar.SetTabVisible(RelationshipType ID,Visible)
Remove
Use below code can remove a tab, but this action is irreversible.
thisWnd.relationships.relTabbar.RemoveTab(RelationshipType ID,Item Type)
Comments
Post a Comment