As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
What would be the best way to show parent-child realtion in a tree structure (not accordian report)?
I am able to pull out data and could have parent-child transformation but I am confused on how to represent this like a tree structure. Please post your suggestions.
ThanksThis message has been edited. Last edited by: Kerry,
Could you elaborate on your request. I'm not sure what, exactly, you're looking to accomplish. Unless what Waz provided is correct. Either way, I'm looking forward to your next post...
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
Doug, I am trying to get a tree structure showing parent on the top and its children as branches and grand children etc..
My master has 2 colums, parent and child which have data in both ways. I made a report to find the parent and its children (multiple levels) and now I want to represent them in tree structure. Let me know if I am not clear yet.
I cant make changes in the master file. And also some children exist in parent column too having children..So I wrote recursive joins to get the parents and children.
I could not write a dummy master as there is huge data. And the hold fine I create that comes of my report has a parent field and multiple child fieds in levels..
It is like...
Joins on original master
TABLE FILE T1 PRINT LEVEL4_CHILD BY PARENT BY LEVEL1_CHILD BY LEVEL2_CHILD BY LEVEL3_CHILD ON TABLE HOLD AS T2 END Is there any way to get the tree structure?
DEFINE FILE T1
DUMMY/A10 = ' ' ;
END
TABLE FILE T1
BY DUMMY
BY PARENT
ON TABLE SAVE AS T2
END
FILEDEF T2 DISK t2.ftm (APPEND
TABLE FILE T1
BY PARENT
BY LEVEL1_CHILD
ON TABLE SAVE AS T2
END
TABLE FILE T1
BY LEVEL1_CHILD
BY LEVEL2_CHILD
ON TABLE SAVE AS T2
END
TABLE FILE T1
BY LEVEL2_CHILD
BY LEVEL3_CHILD
ON TABLE SAVE AS T2
END
TABLE FILE T1
BY LEVEL3_CHILD
BY LEVEL4_CHILD
ON TABLE SAVE AS T2
END
FILEDEF T2 DISK t2.ftm
EX -LINES 5 EDAPUT MASTER,t2,CV,FILE
FILENAME=T2, SUFFIX=FIX,$
SEGNAME=T2, $
FIELD=PARENT,ALIAS= ,A10 ,A10 ,PROPERTY=PARENT_OF,REFERENCE=CHILD, $
FIELD=CHILD,ALIAS= ,A10 ,A10 ,$
-RUN
SET BLANKINDENT=ON
TABLE FILE T2
PRINT PARENT NOPRINT
FOR CHILD
{Start point} WITH CHILDREN ALL
END