Forum Discussion
7 Replies
- AngelaIpIdeator I
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!
- kaftab1Ideator 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?
- shamen43Ideator I
Hello, Could you share more information if it is possible for you so our team can find it .
- Lokesh_Kumar1Ideator I
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
- AngelaIpIdeator I
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_Kumar1Ideator I
- Former Member
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.