Notifications
Announcements
No record found.
Hi have tried to remove the object from project using ProjectNode.removefromproject() method but it's not working. any solutions ?
delete option works but i need remove option
Hi Sathish Kumar.v,
Did you debug your code?
Please show us the complete codes if possible.
projName = "ProjectTest"; projNode = sharedProjList.AOTfindChild(projName); projNodeLoad = projNode.loadForInspection(); traverseProjectNodes(projNodeLoad); projNodeLoad.treeNodeRelease();
// List contains all element path details
en = myListString.getEnumerator(); while (en.moveNext()) {
treeNode = TreeNode::findNode(en.current()); if(treeNode) { projectNode = infolog.projectRootNode(); projectNode = projectNode.AOTfindChild("Shared"); projectNode = projectNode.AOTfindChild(projName); projectNode.lockUpdate(); projectNode.removeFromProject(treeNode); projectNode.unlockUpdate(); projectNode.AOTsave(); } } info("Completed");
I found the old thread. It seems that the removeFromProject() doesn't work.
But you can try the way in the link provided by Martin.
dynamicsuser.net/.../remove-an-object-from-a-given-project-group
HI Will,
thanks for the response. i have seen the link workaround but no use
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 467 Super User 2025 Season 2
Martin Dráb 420 Most Valuable Professional
BillurSamdancioglu 241 Most Valuable Professional