Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Submit a IWHole
ervandew
How do you submit a IWHole....
right now i am deleting a IWSimpleFile using the destroy() method, but when i try to submit i am submitting the original IWSimpleFile object instance and getting the following exception
com.interwoven.api.service.IWServiceManagedObject$InvalidException: Invalid service managed object.
I assume this is because i am submitting a IWSimpleFile and the submit process expects a IWHole object. However i cannot find anyway to get a handle on a IWHole object. If i try to lookup the file i just deleted then IWPathNamedObject.lookupByPath will return null.
can anyone shed some light on how this is done?
Find more posts tagged with
Comments
Migrateduser
Hi,
To get hold of an IWHole object, you would need to call IWHole hole = (IWHole)IWPathNamedObject.lookupByPath(<service>, <path>, true);
hope this helps.
Best Regards,
Narendra
ervandew
booya... worked like a charm
i wouldn't have guessed that's what lookThroughInvisiblePathNamedObjects meant :-/ .....
thnx for the tip.