How to find components

bernfish

New Member
Hello,
I'm looking for a simple way of finding all the components at every level for a parent item? For example, my user will enter a parent item and I need to display all the components used to make the parent, I need to add this code to an existing custom progress report.
Thanks, Bernfish
 

gcampbell

Member
If you're talking about walking the widget tree (ie: you have a window with frames and you want to get a list of all frames and what they contain), then do a search for 'walking the widget tree' at www.peg.com.

This has been discussed many times before (and you will get examples of code).

Later,
Gordon
 

joey.jeremiah

ProgressTalk Moderator
Staff member
is this a product structure, erp question ? there are thousands of progress apps not just the one you're working on.

but incase it is, you'd typically build a recursive proc i.e. a proc that calls it self.

e.g. a proc that loops thru the direct components of a parent. for every component the proc is called with the component as the parent param.

the result will be saved in a temp-table typically in the run/drill down order showing the parent component relationship. HTH
 
Top