Page 1 of 1

Display Project Ancestor on project report.

Posted: 22 Oct 2013, 14:07
by iStevie
Hi,

I am having some trouble with designing a report where I need to be able to raise a report based on a project (which is a descendant of another project in hierarchy), however I need for the report to display something along the lines of, "the parent project for this record is: xxxxxxxx"

I know (think) I can do the opposite whereby I generate a report based on the parent project and get it to show me all of the descendant projects by using the DECENDENT_PROJECT.NAME field, but the only field that seems to be available relating to the parent/ancestor project is ANCESTOR_ID which just displays the project number (not the reference or description).

I hope I have been clear in what I'm trying to do, any help would be very much appreciated. Using Sage 50 Accounts Pro 2013, Report designer v1.4.2013.27.

Thanks,
Steve.

Re: Display Project Accestor on project report.

Posted: 22 Oct 2013, 14:21
by brucedenney
You need to go into joins.

you need to have the project table in there twice.

You can rename them to make it easier to keep track. But one of them is the child and one of the, it the parent. The join may need to be a parent outer.

So you have the actual project linking to its parent project, you can then reference the field in the parent project table rather than in the child (or vice versa)

Re: Display Project Accestor on project report.

Posted: 23 Oct 2013, 12:13
by iStevie
Hi,

Thanks for that!

I had to create a join from the existing 'PROJECT' group with an inner join from the 'PROJECT_PROJECT_NO' field to a new Join group I created with an Alias of 'PARENT_PROJECT' to the 'PROJECT_ID' field.

Appreciate your help!
Steve.