Generating Model Information in IDA

There are three methods to generate model information in IDA.

A. Export the model in IDA for Power Design or Erwin, then work them in them.

B. Rename .ldm file to .xml, then work on it as a XML (XMI) file format, you can use XML editor such as Stylus Studio with XSLT.

C. Generate model information with BIRT report as below:

You can use the reporting feature to generate reports to help you analyze a data model or package. You control the contents of the report, and can choose the file format.

You can use the reporting feature to create report designs, but you can generate a report without knowing how to design them. For information about designing reports, see the topic "Customizing data model BIRT reports."

·

Generating model information reports with BIRT report designs


You generate BIRT-based data model reports by creating and running report launch configurations that specify a BIRT report design.

You generate BIRT-based data model reports by creating and running report launch configurations that specify a BIRT report design.

To create and run a report launch configuration based on a BIRT report design:

1. In the Data perspective, click Run > Report > Report Configurations.

2. In the Report window, right-click the type of report to launch; then click New.

3. In the Name field, type a name for the new launch configuration.

4. Specify the report to use:

§ To use a report that is provided with your IBM® product, select Built-In and click Browse to specify the name of the report.

§ To use a report from another source, select Location and click Workspace or File System to specify the location and report file name.

When you select a report, the Data Sources field lists the data sources that are specified in the report. When you click a data source in the Data Sources field, the Instance Models field lists the associated instance models.

5. To add a data source or instance model to include in the report, click in the Data Sources field or Instance Models field and click Add. To remove a data source or instance model, select it and click Remove.

6. Define how to handle the report output:

§ Specify a location for the report output.

§ Select the report format. The available values are Microsoft Word (DOC), WWW hypertext (HTML), Adobe Reader (PDF),Postscript (PS), Microsoft PowerPoint (PPT), and Microsoft Excel (XLS). The Microsoft® Word format is compatible with Microsoft Word 2003 and later.

§ Select whether to overwrite existing files in the report location without a warning.

7. To specify how to save, display, and launch the report configuration, click the Common tab. Note that you can save the report configuration as a shared file with launch as the file name extension.

8. To generate the report, click Report.

When the publishing process is complete, the report is displayed automatically if the appropriate program is available on your computer.

You can access the report directly from the location that you specified for the report output.

Ref.: Customizing data model BIRT reports

Several Business Intelligence and Reporting Tools (BIRT) data model report design templates are available in this product. These templates provide data sources and data sets for different types of data models. The data sets organize elements from the data sources into tables that BIRT can use. You can customize these default template designs to meet your business needs.

Your IBM® product extends the BIRT component so that the BIRT user interface and capabilities are available to you.

To customize an existing BIRT report design template, you modify it in the BIRT report designer. For more detailed information, refer to the following technote: Obtaining and using data model information to customize a BIRT report design.

    1. Open the Report Explorer view by clicking Window > Show view > Other, expanding the Reporting node, and selecting Report Explorer. Several categories of data model report projects are displayed.
    2. Expand a data model report category.
    3. Create a copy of the built-in report to modify it. BIRT report designs have RPTDESIGN as the file name extension
    4. Modify the design as needed. For more detailed information, refer to the following technote: Obtaining and using data model information to customize a BIRT report design. You can also refer to the BIRT documentation, which is available in this product from the Help > Help Contents menu, or from the link below.

Ref.:Obtaining and using data model information to customize a BIRT report design

clip_image002

Technote (FAQ)

Question

How can users obtain the data model information that they need to customize their BIRT report designs?

Answer

Table of Contents

=============================================================
How to obtain alias information for your BIRT report design. 1
How to obtain primary key information for your BIRT report design. 13
How to obtain a column which has primary key as a true/false value. 23

How to obtain alias information for your BIRT report design

This document will guide you through the process of how to add alias information to a BIRT report design.

1. Ensure that there is at least one alias in the physical model.

clip_image003

2. Click on Window > Show View > Other.

clip_image004

3. Expand the Reporting node and double-click Report Explorer to open the view.

clip_image005

4. Double-click Physical Data Model Report to open its report design.

clip_image006

5. In the Data Explorer, expand the Data Sources node, right-click the Data Source node and select Edit to edit the data source.

clip_image007

6. Click the Add button to add a data source.

clip_image008

7. Click Browse Workspace to add an existing model as a data source.

clip_image009

8. Expand the Miscellaneous Data Models node, highlight Database Model.dbm and click OK. In the Load Resource window, click OK again.

clip_image010

9. You should see the data model in the list of EMF data instances. Click OK.

clip_image011

10. Right-click the Data Sets node and select New Data Set to create a new data set.

clip_image012

11. Enter Alias in the Data Set Name and click Next.

clip_image013

12. Ensure that the Use the data instances defined in data source check box is selected, and click Next.

clip_image014

13. Expand the db2 node, highlight the DB2Alias > Table node and click the right arrow (>) button.

clip_image015

14. Enter instanceOf(//*, “DB2Model:DB2Alias”) as the XPath expression to select all aliases. Ensure that the Automatically select the Type (in the 'Type' Combo control) check box is selected, and click OK.

NOTE: Please enter the XPath manually.

clip_image016

15. Click Validate XPath to ensure that the XPath expression is valid. Click Next.

clip_image017

16. Highlight the name:EString node in the EMF Structure tree and click the right arrow (>) button.

clip_image018

17. Enter Name in the Column Name field and click OK.

clip_image019

18. Click the Preview button and the name of the aliases in the model should appear.

clip_image020

19. Repeat step 16 and 17 to add description, aliased table name, schema name and label one at a time.

clip_image021

20. The Column Mapping view should now look like this. Click OK to exit the wizard.

clip_image022

21. In the Data Explorer view, Alias data set fields should appear under the Data Sets node.

clip_image023

22. Drag and drop the Alias Name onto the report design.

clip_image024

23. Click the Preview tab to preview the report.

clip_image025

24. At the bottom of the report, the name of the alias should be displayed.

clip_image026

25. Click the Layout tab to go back to the layout view. Highlight the alias name and delete it.

clip_image027

26. Drag and drop a Table object from the Palette view onto the end of the report design. Enter 5 when prompted for the number of columns.

clip_image028

27. With the table highlighted, change the width to 82%. Any width bigger than 82% will be cutoff in the print out.

clip_image029

28. Highlight the first two rows of the table by holding the Shift key and left mouse click on the cells of the first two rows. Click the Border node in the Properties view. Change the width and click on all four buttons for borders.

clip_image030

29. Drag and drop the fields onto the second row of the table one at a time.

clip_image031

30. The table should now look like this:

clip_image032

31. With the table highlighted, click the Visibility tab in the Properties area and enter the information as shown below. This step makes the table invisible if there is no alias in the report design.

clip_image033

How to obtain primary key information for your BIRT report design.

This section will guide you through the process of how to primary key information to a BIRT report design.

1. First ensure that there is a primary key in the data model. In the example below, the primary key owns three columns.

clip_image034

2. Click Window > Show View > Other.

clip_image004[1]

3. Expand the Reporting node and double-click Report Explorer to open the view.

clip_image005[1]

4. Double-click Physical Data Model Report to open its report design.

clip_image006[1]

5. In the Data Explorer, expand the Data Sources node, right-click the Data Source node and select Edit.

clip_image007[1]

6. Click the Add button to add a data source.

clip_image008[1]

7. Click Browse Workspace to browse to and add an existing model as a data source.

clip_image009[1]

8. Expand the Miscellaneous Data Models node, highlight Database Model.dbm and click OK. In the Load Resource window, click OK again.

clip_image010[1]

9. You should see the data model in the list of EMF data instances. Click OK.

clip_image011[1]

10. Right-click the Data Sets node and select New Data Set to create a new data set.

clip_image012[1]

11. Enter Primary Key in the Data Set Name field, and click Next.

clip_image035

12. Ensure that the Use the data instances defined in data source check box is selected, and click Next.

clip_image014[1]

13. In the Table mapping view, expand the sqlmodel node and the constraints node, highlight PrimaryKey > UniqueConstraint and click the right arrow (>) button.

clip_image036

14. Enter instanceOf(//*, “SQLConstraints:PrimaryKey”) as the XPath expression to select all primary keys. Ensure that the Automatically select the Type (in the 'Type' Combo control) check box is selected, and click OK.

NOTE: Enter the XPath statement manually.

clip_image037

15. Click Validate XPath to verify that the XPath expression is valid, then click Next.

clip_image038

16. In the Column mapping view, highlight name:EString and click the right arrow (>) button.

clip_image039

17. Enter Name in the Column Name field and click OK.

clip_image019[1]

18. Click the Preview button and the name of the primary key in the model should appear in the Table Preview grid. Click Finish and OK to exit the wizard.

clip_image040

19. Repeat step 10 and 11, entering Primary Key Column as the name this time, then repeat step 12.

20. In the Table mapping view, expand the sqlmodel node, the constraints node, and the PrimaryKey > UniqueConstraint node. Highlight members : Column and click the right arrow (>) button.

clip_image041

21. Enter instanceOf(//PrimaryKey/members, “SQLTables:Column”) as the XPath expression to select all primary key columns. Ensure that the Automatically select the Type (in the 'Type' Combo control) check box is selected, and click OK.

NOTE: Enter the XPath statement manually.

clip_image042

22. Click Validate XPath to verify that the XPath expression is valid, then click Next.

23. In the Column mapping view, highlight name:EString and click the right arrow (>) button.

clip_image043

24. Enter Name in the Column Name field and click OK.

clip_image019[2]

25. Click the Preview button, and the name of the primary key in the model should appear in the Table Preview grid. Click Finish and OK to exit the wizard.

clip_image044

26. Now you have two new data sets that represent the primary key and the primary key columns, respectively.

How to obtain a column which has primary key as a true/false value.

This section guides you through the process of adding primary key information to a BIRT report design.

1. Ensure that there is a primary key in the data model. In this example, the primary key owns three columns.

clip_image034[1]

2. Click Window > Show View > Other.

clip_image004[2]

3. Expand the Reporting node and double-click Report Explorer to open the view.

clip_image005[2]

4. Double-click Physical Data Model Report to open the report design.

clip_image006[2]

5. In the Data Explorer, expand the Data Sources node, right-click Data Source and select Edit .

clip_image007[2]

6. Click the Add button to add a data source.

clip_image008[2]

7. Click Browse Workspace to add an existing model as a data source.

clip_image009[2]

8. Expand the Miscellaneous Data Models node, highlight Database Model.dbm and click OK. In the Load Resource window, click OK again.

clip_image010[2]

9. The data model should appear in the list of EMF data instances. Click OK.

clip_image011[2]

10. Right-click the Data Sets node and select New Data Set.

clip_image012[2]

11. Enter Primary Key in the Data Set Name field, and click Next.

clip_image035[1]

12. Ensure that the Use the data instances defined in data source check box is selected, and click Next.

clip_image014[2]

13. In the Table mapping view, expand the sqlmodel node and the constraints node. Highlight PrimaryKey > UniqueConstraint and click the right arrow (>) button.

clip_image036[1]

14. Enter instanceOf(//*, “SQLConstraints:PrimaryKey”) as the XPath expression to select all primary keys. Ensure that the Automatically select the Type (in the 'Type' Combo control) check box is selected, and click OK.

NOTE: Enter the XPath statement manually.

clip_image037[1]

15. Click Validate XPath to verify that the XPath expression is valid, and click Next.

clip_image038[1]

16. In the Column mapping view, highlight name:EString and click the right arrow (>) button.

clip_image039[1]

17. Enter Name in the Column Name field, and click OK.

clip_image019[3]

18. Expand the members node, highlight name:EString, and click the right arrow (>) button. Enter Column in the the Name cell and click OK.

clip_image045

19. Click the Preview button and the name of the primary key and the column that has the primary key constraint should appear. Click Finish and OK to exit the wizard.

20. Right-click the Data Sets node and select New Joint Data Set.

clip_image046

21. Select Column in the Define Joint Data Set list. This wil be the first data set.

clip_image047

22. Select Primary Key from the list as the second data set.

clip_image048

23. Select Name for the Column data set and select Column for the Primary Key data set to join them. Select Left Outer Join as the join type. Enter Column-Primary KeyJoint in the Data Set Name field, and click Finish.

clip_image049

24. Select the Computed Columns node and click New.

clip_image050

25. Enter IsPrimaryKey in the Column Name field, and click the ellipsis […] button.

clip_image051

26. Enter a script as shown in the screen shot. Click OK, and click OK again.

clip_image052

27. Click the Preview Results tab. The columns and their corresponding isPrimaryKey value should appear.

clip_image053

Copyright and trademark information

clip_image054

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

·

You generate XSLT-based model reports by creating and running report launch configurations that specify an XSLT report template.

You generate XSLT-based model reports by creating and running report launch configurations that specify an XSLT report template.

Before you can generate a report with an XSLT template other than the built-in templates, you must register the template.

To create and run a data model report launch configuration based on XSLT report templates:

  1. Click Run > Report > Report Configurations.
  2. In the Report window, right-click Data Model Classic XSLT Report; then click New.
  3. In the Name field, type a name for the new launch configuration.
  4. In the Report Input field, specify a data model file in the Location field, and a data model element in the Element field.
  5. Specify the report to use:
    • To use a report that is provided with your IBM® product, select Built-In and click Browse to specify the name of the report.

Ensure that the type of built in report that you select matches the type of data model that you selected in the Location field.

    • To use a report from another source, select Location and click Workspace or File System to specify the location and report file name.
  1. Specify a location for the report output.
  2. To specify information about how to save, display, and launch the report configuration, click the Common tab. Note that you can save the report configuration as a shared file with launch as the file name extension.
  3. To generate the report, click Report.

When the publishing process is complete, the report is displayed automatically if the appropriate program is available on your computer.

You can access the report directly from the location that you specified for the report output.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值