Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Visual Basic sample code to print the requirement tree for each project.

Visual Basic sample code to print the requirement tree for each project.

Problem:

Visual Basic sample code to print the requirement tree for each project.

Resolution:


  • Product Name: CaliberRM
  • Product Version: CaliberRM 2005 R2 SP1
  • Product Component: SDK
  • Platform/OS Version: Microsoft Platforms including XP / Windows 2000 / Windows Server 2003 / Windows Server 2005

Pre Requites:

  1. CaliberRM SDK installed
  2. Microsoft Word / Office installed
  3. Basic understanding of Object Orientated Programming and Visual Basic for Applications (VBA)
  4. KB Article 5624: CaliberRM: Visual Basic for Applications (VBA) , setting up a Microsoft Word VBA application.

The code in the attached MS Word document uses a recursive method to print the requirement tree for each project. The program calls the procedure TraverseTree(ByVal parent As RequirementTreeNode). This procedure prints out the node details and then calls itself for each child nodes. Each child node will then call the procedure if they have children etc, etc. This recursive method will print out all requirements and their children.

Below is an example of the applications output:

Project Requirement List

Address Book 105

1. Business Requirements WHY3100077

1 Welcome WHY292

2 Maintain Contact List WHY272

3. Functional Requirements WHAT3100078

1 Search Functions WHAT276

1.1 Search by First Name WHAT277

1.2 Search by Last Name WHAT278

1.3 Search by Zip Code WHAT279

2 Define a Personal List WHAT280

3 Print a Personal List WHAT281

Constraints BC3100512

1 Handle 15,000 Contacts BC273

2. User Requirements USER3100081

1 Create a Contact USER274

2 Search for a Contact USER275


Related documents:


Old KB# 15853

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Version history
Revision #:
1 of 1
Last update:
‎2013-02-15 18:26
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.