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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 622
André Arnaud de Cal... 532 Super User 2026 Season 1
CP04-islander 430