Forum Discussion

ShrutiS's avatar
ShrutiS
Creator I
3 years ago

Hide Classification Values (in the Classification Tree) based on Criteria

Hi All,

Is there a good way to Hide some of the Classification/Type values from the select Classification Page , based on a specific criteria ?

e.g. User ABC should only see Assembly and Component in the above page when creating a Part.

Thanks and Regards,

Shruti Suresh

7 Replies

  • Former Member's avatar
    Former Member
    Not applicable

    Paper shredding is the process of destroying documents, papers, and files to protect sensitive information from falling into the wrong hands. It involves using a shredding machine to cut paper into small, unreadable pieces. There are different types of shredders available, including strip-cut, cross-cut, and micro-cut, offering varying levels of security.

    papershreddingevents.info/

  • Hi ShrutiS /angela 

    I know this is late reply but Yes this can be archived by below code. Please let me know if you have any questions.

    const type = this.getType();
    if(type === "Document")
    {
    parser = new DOMParser();
    let xmlDoc = "";
    xmlDoc = parser.parseFromString(classStructure,"text/xml");
    allClassifications = xmlDoc.getElementsByTagName("class");
    hideClassification = allClassifications.namedItem("CG71035B254F4823B9EFC9B7435345");//CG71035B254F4823B9EFC9B7435345=> this is the classification id which can be get while debugging the property allClassifications
    xmlDoc.documentElement.removeChild(hideClassification);
    }

    Thanks,

    Lokesh

    • angela's avatar
      angela
      Catalyst II

      Hi Lokesh,

      many thanks for the code sample! I made a quick test in my Innovator 12 environment but unfortunately it didn´t work yet. But I understand the concept that you use there, so I probably need a view minor customizations to make it work in my version.

      Which Innovator version did you use?

      Angela

  • Hello, Could you share more information if it is possible for you so our team can find it .

  • Hi Shruti,

    I don´t think there is a way to filter the displayed classification list. The individual classes are not stored as items, but more as some basic string. So the items don´t use a permission model or similar that you could use as filter. In general, the class structure browser is based on a couple of 20 year codetree files with less options regarding additional features (e.g. ClassStructure.js)

    You can restrict can_add based on the selected class, but this will have no influence to the visual appearance of the class list.

    You maybe could use a  custom dropdown that you fill in dynamically with the classes users are allowed to use. Then update the "real" classification based on the dropdown value. But that´s a lot of additional code for just some visual help.

    But that´s just may own POV. If anyone knows more, please let us know!

    • kaftab1's avatar
      kaftab1
      Creator I

      Can't you intercept the javascript in the client and filter it based on a custom mapping in Aras between the classification values and whatever the criteria is?