Hide Relationship Tabs based on Parent Classification Type

Hi All,

 

Use case : On Part Item , based on the classification Type selected , the Part BoM relationship tab should be Hidden/Made Visible.

 

I know it is now possible to hide tabs without using any custom code with the help of CUI ,

 

Refer : https://community.aras.com/b/english/posts/hiding-tabs-using-cui

 

With the help of the same I was able to set the Tab Visibility based on the Item Type Classification :

 

However , On Creation of the Part Item when the user selects the Classification Assembly , the CUI changes are not available, only when the user closes the Part and opens it again does the "Part BOM" relationship become visible.

 

Is there any way to invoke the CUI changes on the Form Events ? Or should I be using a Method to hide/unhide the relationship tab rather than the CUI for the current use case.

Thanks.

Parents
  • Hi Shruti

    Hope you are safe during this Pandemic.

    Try refreshing the relationship tabs using below on form populate code

    if(aras.getMostTopWindowWithAras(window).frames.relationships)
    {
    var iFramesCollection = aras.getMostTopWindowWithAras(window).frames.relationships.iframesCollection;
    for (var tabId in iFramesCollection)
    {
    iFramesCollection[tabId].contentWindow.location.reload();
    }
    }

  • Hi Gopi,

    I am good , Hope you are safe as well


    I tried the above , However while the Form Populates there is no such tab available in the UI, As per my understanding the tab is added only after the CUI changes are implemented.

    I tried the Refresh button on the form as well but with no luck.

    Regards :)

Reply Children