Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Inheritance functionality for existing objects
Manish_Joisar
We are using Livelink 9.7.1.We are using following functions from LAPI to save attribute data inside Livelink Server.AttrSetValues SetObjectAttributesEx Now we are having problem is like when we update attribute value to parent folder, it does not inherits to existing folders & documents.I looked into SetObjectCategoryInheritance but after putting inheritance = true / false it just decide whether to inherit categories from parent or not.Inheritance only can be applied to container object & i am applying it on parent folder. Is this the correct way?Is there any way where data also can set thru LAPI for inheritance?It does not carry forward to sub folder / objects.There is option in Livelink where we can update parent attribute values to sub objects, is there anything that we have in LAPI? It is very critical to our project. We can not leave without this. Is there anything that we can have inside Livelink (and if not then LAPI) to have this functionality.We know that it will have performance issue but we need this.If not available then can you suggest the best & fastest way to implement that thru LAPI.Let me know if you need more information on this
Find more posts tagged with
Comments
Appu_Nair
LAPI Category creation works like this.If you create a folder and apply a non mandatory attribute categoryto the folder and you start adding folders ,documents etc by default livelink copies the version applied to the parent and puts it on the sub objects.It will throw an error if the mandatory attribute is missing when it encounters a versionable object for eg a document."Now we are having problem is like when we update attribute value to parent folder, it does not inherits to existing folders & documents."The "apply to subitems" functionality is oscript code that walks the children and updates the changes.LAPI does not have a flag such as "SetObjectsRight" for subitems.One should probably try to write routines or use EasyLAPI that will mask the walking and apply it.EsayLAPI is also available as a C# version form the coding hill billy .com.The EasyLAPI routines takes away most of the low level transcations for you you should try it IMHOI stand corrected it this is not your qn.I could not reproduce the behaviour on my LL instance.I added a folder with a category and then I added a document.In this case the document had the same category .I later changed my folder catgory to one that had a mandatory attribute and did not fill something on the folder.In this case the child attribute addition failed as it is by design.