Notifications
Announcements
No record found.
in project managment i wanna get all projects childs and childs of childs
for ex proj1 - proj1-1 - proj1-1-1 - proj1-2
* proj proj1-1 , proj1-2 childs of proj1
* proj1-1-1 child of proj1-1
i wanna retrive all in one query ,, any help ?
Hi Omar,
Where are you going to display the result of this query you are trying to write?
you can say i need to display them in info .. how can i find all childs and sub childs
You can try with a job like this and check if that works for you.
static void displayProjHierarchy(Args _args) { ProjTable projTableParent, projTableLoc; List projList; Enumerator en; str projStr; List getChildProjectsFromRootProject(ProjId _projId, List _projList) { ProjTable projTable; while select projTable where projTable.ParentId == _projId { _projList.addEnd(projTable); if (projTable.ProjBudgetManagement == ProjBudgetManagement::None && ProjTable::child(projTable.ProjId)) { getChildProjectsFromRootProject(projTable.ProjId, _projList); } } return _projList; } while select projTableParent where projTableParent.ParentId == '' { projStr = projTableParent.ProjId; projList = new List(Types::Record); getChildProjectsFromRootProject(projTableParent.ProjId , projList); en = projList.getEnumerator(); while (en.moveNext()) { projTableLoc = en.current(); projStr = ">" projTableLoc.projId; } info(projStr); } }
it's working ,, thanks a lot Gunjan
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.
Martin Dráb 592 Most Valuable Professional
André Arnaud de Cal... 478 Super User 2025 Season 2
BillurSamdancioglu 305 Most Valuable Professional