Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Again I appreciate your time and the information you kindly provide me.
Paulette
Steve,
the oids I get them using Java, what I do first is get the Document through the "Acl.getDOMDocument(String.valueOf(docID))" using the value corresponding to the DocID of my document, then I get the first child of the book as a Node and I start to navigate though its children nodes, while I'm navigating I try to find the section elements using theoid_find_children() acl command through a call from java using the line "Acl.func(oid_find_children(), oid_dad)", from that call I'll receive in java from acl an array of OIDs related with sections, I'll navigate through those OIDs and save those OIDs in a structure I created for later use, those OIDs are the which one I'm using to change the attribute of the sections.
In order to change the attributes, I will navigate in Java through my structure and once I found the desired section I'll call a function in my ACL script since Java passing the corresponding oid I saved before, to change the "revision" attribute of the desired section inside my document.
Does it help you this information to understand better how I'm getting the oids? 🙂
Again, thank you so much!
Paulette
Steve,
Thank you,
Paul, Clay,
I'm making a kind of remap everytime I modify one section and I insert or remove any section inside the document, this way my tool will navigate through the document identifying the oids that change after the modification. Something that is causing me doubt is why if I try to change the attribute manually using the command line of the editor, the attribute can not be modified, I tested some other commands having the oid, for example oid_select() to test if the oid is valid and it refers to the section I want and those commands worked, I'm not sure if there's any restriction to modify attributes.
Again, thank you so much for your help.
Paulette :D.