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

Parents
  • Hi  / 

    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

  • 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

Reply
  • 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

Children