You can select the transaction type that is displayed in the report at runtime.
To create a new report that uses option:
In the PACE Client, click the Reporting link.
You see the Report Studio.Create the Option first. The Option is selected when the Advanced Report Rule is created.
Click the Build Report Components link.
Select the Components tab, and expand the Advanced Reporting folder.
Click Compose.
From the Building a New Report Rule dialog box, select Advanced Reporting and click Next.
Right-click in the Options section and select New Option.
You see the Add/Edit Option dialog box.Complete the following fields in this dialog box:
Name. Type the option name. The name cannot contain any spaces and cannot be longer than 24 characters.
Caption. Type the text to be displayed to the user at runtime. This text is displayed on the first window of the Advanced Report Profile wizard in theParameter column. The caption limit is 255 characters.
Comments. Enter a comment. The comment is displayed on the first page of the Advanced Report Profile. It appears in a pop-up window when the user moves the cursor above the Option.
Default Value. Select a default value, such as Purchase (optional).
Properties. Click the check box next to Required.
Type drop‑down list. Select Code and click Ellipsis. The Select a Code dialog box appears. Scroll down, select TRANSACTION TYPES, and click OK.
You see the Add/Edit Option dialog box.Click OK.
You see theAdvanced Report Rules dialog box.Сreate the Advanced Report Rule.
The Namefield is the name of the Advanced Report Rule. This name is also used in an Advanced Report Table of Contents.
The Available Reports section is associated with the Visual Basic portion of the Advanced Report Rule. Leave this section blank. You populate this section after the Visual Basic component is completed.Click New.
You see the Select Profile dialog box.Expand the Trades folder, and then expand Multi-Period. All of the Trades Multi-Period reports created by you or published by other users of PACE are listed in this section. Double-click a report profile that contains the Transaction Code, either in theField orGroupingRule.
You see the Advanced Report Rule dialog box. Continue with the following procedure to create the advanced report rule.
Create the Advanced Report Rule
Complete this procedure from the Advanced Report Rule dialog box. Make sure you have already completed the preceding procedure.
Click inside the cell that corresponds with the Table Name column and type in the name of the table that stores the Advanced Report Rule information so that it can be accessed in Visual Basic. The table name is limited to 29 characters, cannot contain spaces, and cannot be an SQL reserved word.
Click Options.
Highlight the previously created option and select the check box. Click OK.
You see a Warning dialog box describing the missing information.Click Yes.
You see the Building a New Report Rule dialog box.Click Explore to return to the Report Studio.
The shellAdvanced Report Rule is complete.Click the Reports tab in the Report Studio to create the Advanced Report Profile.
Expand the Advanced Reporting folder and click Compose.
Highlight Advanced Reporting and click Next.
You see the Advanced Report Profile-Step 1 of 3 dialog box.Right-click under Selected Rules and select Add. Select the Advanced Report Rule that you just created in the previous section to add it to the Selected Rules list.
After you add the Advanced Report Rule to the Selected Rulessection, the Option appears on theOptions tab. The default value selected when you defined the option appears in the Value column.From the Entities list, select a Portfolio and click Add.
Click Next.
You see theAdvanced Report Profile-Step 2 of 3 dialog box.Use the options on this dialog box to schedule the report. Click Next.
You see theAdvanced Report Profile-Step 3 of 3 dialog box.Name the Advanced Report Profile. Click Finish.
Double-click the report to open it. The report is blank. Click Export in the Viewer, and save the report results in Microsoft Access format.
Next, you will access Visual Basic to build the Report Project and its associated designer.
Create Report DLL and Designer for Report
To create a report design:
Start Visual Studio.
You see the New Project window.Select ActiveX DLL and click Open.
You see the PACE Advanced Reporting Add-in window.Select the appropriate version and Database Library and click Enable.
You see the main Project1-Microsoft Visual Basic (design) window.On the Project window, right-click Class1 and click Remove Class1.
You see a dialog box asking if you want to save your changes. Click No.On the Project window, select Project1. Then, on the Properties window next to (Name), select Project1 and rename it.
To add a blank designer, on theProject menu, click Add Data Dynamics ActiveReports.
You see the Active Report1 window.Drag the corner of this window so that it fits most of the window, and then maximize the design window.
To rename ActiveReport1, select ActiveReport1 on the Project1 window. Then, on theProperties window, next to (Name), select ActiveReport1 and rename it.
Click DAO to define how to pass the data from PACE to the designer.
The DAO connects to the datasource through the Visual Basic DAO libraries.Click and draw a box about the size of the button in the Detail area. The button appears highlighted in theDetail section.
With the DAO button still highlighted, click the cell next to RecordSetType on the Properties dialog box. The RecordSet Type is currently set to 1=Dynaset. Click inside the value cell. Then click the drop‑down list and change it to 2=Snapshot.
Right-click the highlighted button and select Properties.
You see the DAOData Control Properties window.Browse to DatabaseName.
You see the Select Database dialog box. This refers to the database name supplied when you created the Advanced Report Profile.Access a folder, highlight the Database name and click Open.
TheDatabaseName is populated.
The RecordSource section defines how to obtain data from the table. In this section, type:select * from TableName
This table name was previously specified in the Advanced Report Rule.
Select Apply and then click OK.
Decrease the size of the Detail section so that the DAO button is hidden by moving your cursor so that it is just touching the PageFooter section. A double arrow appears. Click and drag the section up. Leave about a half inch of space in the section.
Click the Fields button to display all possible fields as defined by theRecordSource.
Click and drag fields to theDetail section.
Right-click the field and select Properties to format it. Or, open theProperties window for that field and click in the Output Format cell. To format the report design:
Add a report title to the PageHeader section.
Add report column headers to the PageHeader section.Right-click in the design window and select Insert-Group Header > Footer. Two additional sections appear in the report: GroupHeader1 andGroupFooter1.
Select the GroupHeader1 section to edit it. On thebottom-right corner of the Properties - GroupHeader1 window, click the blank cell to the right of the Data Source cell.
A drop‑down list appears.
Select DAODataControl1.
Click in the blank cell to the right of the Data Field cell.
A drop‑down list appears.
Select Transaction Type.
From the Fields list, click and drag the Transaction Type field into the GroupHeader1 section. Highlight the field and change the font and font size.