Post

1 follower Follow
0
Avatar

Nesting packages in reports

Hi,

 We tried working on the nested loops for packages. However, there is one problem we are unable to understand how to resolve.

 1. If you refer to the attached screenshot of the Case complete, the ‘Loan Maintenance’ package is under the package of ‘ Loan Origination’

  1. Please see the attached template that we have used

  2. Now, in the BRD report that gets generated, please look at the table of contents. Under section 2-‘Loan Origination’, there is a sub-package section 2.1- ‘ Loan Maintenance’ as required. However, further down, again section 3 has the package heading as ‘Loan maintenance’. We did not want this as a a main package in the output .

 Can you suggest what change do we need to make to the attached template to achieve our desired output i.e we want ‘Loan maintenance’ asa section 2.1 under the main section 2 of ‘Loan Origination’. We do not , however, want the ‘Loan Maintenance’ to be reflected as a main section again.

Devendra Joshi Answered

Please sign in to leave a comment.

1 comment

0
Avatar

Hi Devendra,

When using $repeatPackages at the top level of the report, this loops through *all* packages in your project, in the same order they appear in the project browser. This is different than how parent/child requirements get reported on, which is where I was mistaken. So, the following line:

$repeatPackages0 where Parent <> ‘’

...has the result of cycling through *all* of the packages in your project (parent and child packages) that aren't at the top level. While you get the desired Loan Origination package lower down in your report - it's included a second time by the $repeatPackages1 keyword - that first repeat loop is grabbing it as well, since it is not at the top level.

In order to get the results you're looking for, we need to change up the formatting a bit. Since there isn't an "IsTopLevel" keyword for packages as there is for requirements, instead of having a repeat packages loop on all child packages - that line from your template I included above - we need to limit that first level loop so that it's only looking at the top level of your project. (You can leave out any other keywords if you don't want any information reported on that top level.)

Once we've done that, just nest as many additional $repeatPackages keywords within the first level as are necessary to include as many nested package levels you have in your project.

As an example, I've modified your template so that the first loop is only looking at the top level package - yet returns no information - then included two additional nested repeats duplicating what you already had there to drill down to two levels of packages in your project.

Jason

Permanently deleted user 0 votes
Comment actions Permalink