Forum Discussion
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
- Lokesh_Kumar12 years agoIdeator I