Multi layer structure in Powerbuilder

Posted on 2005-05-07
Last Modified: 2013-12-26
I have a problem with traversing thru tree structure. I'm not able to calculate values at all levels.

PartnerA--->owenedby-->PartnerB--->owenedby-->PartnerC--->owenedby-->PartnerD--->owenedby-->PartnerH->owenedby-->PartnerI  AND  PartnerJ
                                                                                          |--->owenedby-->PartnerE--->owenedby-->PartnerG                  |--->PartnerZ AND PartnerK
A is owned by B of 40%
B is owned by C of 100%
C is owned by D of 98% and E of 1% and F of 1%
D is owned by H of 100%
H is owned by I of 80% and J of 20%
E is owned by G of 100%
I is owned by Z of 80% and K of 20%
Can you please suggest me how to calculate the percentage value at each level.

Question by:venkat4sv
    1 Comment
    LVL 8

    Accepted Solution

    lets say if you have a value in A then


    try them

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project ( automates most of the tasks discussed in this article. You can even fin…
    Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
    The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
    The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now