eli_donahue's avatar
eli_donahue
New Member
9 years ago

Hide Tabs

This project demonstrates how to hide specific tabs on an item form. In this sample code, we hide the BOM and BOM Structure tabs on the OOTB Aras Part form.

The sample code provided in this project will hide the relationship tabs for only one form. If your use case requires hiding relationship tabs for any form of a given ItemType, you can follow the approach in our Hide Tabs By Identity community project.

The BOM and BOM structure tabs on this Part have been hidden with custom logic.

Interested in this project? Check it out on GitHub!

https://github.com/ArasLabs/hide-tabs

Contributors

Eli Donahue, Aras Labs

License

Visit the project's LICENSE.md file for more information about licensing.

5 Comments

  • This community project should be updated to demonstrate how to hide tabs using CUI instead of method code. That approach is more upgrade-friendly and will work with Responsive Forms (which are not currently supported by this project).

  • I think we may actually have a community project that supports your use case in a slightly different way. The Class Picker community project lets you present the user with a dialog to choose the classification of a new item before the item form is displayed. Once the classification has been selected, the correct item form will appear based on the selected classification.

  • Thank You Eli, Currently I am working on a project with innovator 11 SP15 and plan go to production 11SP15.

    Regarding the events the behavior I am looking for is as follows:

    - When user first add a part a simplified Part form is displayed so the user has to select classification, at this momemt I want to hide the relationships by minimizing the relationships grid. Once the part is saved the standard form will be displayed.

    For other cases the hide show tabs aproach is enough.

    Would be good to put a project together.

    -

  • That's a great idea, Jose. I think I've worked on something similar in the past (a looong time ago!). I do have a couple questions for you:

    Are you looking for something you can use in Aras Innovator 11 or 12? Due to the UX/UI enhancements in Innovator 12, I don't think there's a single solution that would work for both. However, maybe we could put together a project that's a collection of samples.

    What events do you need to trigger the collapse/minimize/maximize? Ex: form events (when form loads), field events (a certain field is edited or a classification picked), custom events (user clicks an element in a custom HTML field)

  • Hi Eli,

    Is it possible just to handle programatically the relationships window - maximize, minimize, collapse - ? This approach can be usefull in certain scenarios and apparently shhould be easier to develop.

    Thanks!!

    Jose Manue