Examples of Custom BOM Reports
Copy
This section provides examples of customizing BOM Reports. These simple examples supplement the concept described in section Configuring BOM Reports.
Adding a New Column Using an Item Property
In this example, the Multilevel BOM Report is customized. Using the following procedure, the Unit column is added between the Quantity and AML Status columns to display the Unit property of Part Items:
- Search for the PE_multilevelReport Query Definition (QD) and open its item view for editing.
- Click Show Editor on the PE_multilevelReport QD sidebar.
- Click the Properties button on the top RootPart row. The Properties dialog box appears.
- Add the Unit property to the Properties dialog box and click Save.
- Repeat steps 3-4 on the Part row representing the Part Query Item.
- Click Save, Unlock & Close on the PE_multilevelReport QD toolbar.
- Search for the Multilevel BOM Report and open its Item view for editing.
- Go to the Stylesheet editor tab.
- Add the <th>Unit</th> table header cell element after <th>Quantity</th>.
- Add a table data cell element for the unit property values after the one for quantity. <td rowspan="{$rowCount}" width="120px"> <xsl:value-of select="unit"/> </td>
- Click Apply on the Stylesheet editor tab.
- Click Done on the Multilevel BOM Report toolbar. The Unit column is added to the Multilevel BOM Report.
Adding a New Column Using a Relationship Property
In this example, the BOM Costing Report is customized. Using the following procedure, the Reference Designator column is added as the last column to display the Reference Designator property of the Part BOM Relationship ItemType:
- Search for the PE_costingReport Query Definition (QD) and open its item view for editing.
- Click Show Editor on the PE_costingReport QD sidebar.
- Click the Properties button on the Part BOM row. The Properties dialog box appears.
- Add the Reference Designator property to the Properties dialog box and click Save.
- Click Save, Unlock & Close on the PE_costingReport QD toolbar.
- Search for the BOM Costing Report and open its Item view for editing.
- Go to the Stylesheet editor tab.
- Add the <th> Reference Designator</th> table header cell element after <th>Cost Basis</th>.
- Add a table data cell element for the reference_designator property values after the one for cost_basis. <td> <xsl:value-of select="Relationships/Item[@alias='Part BOM’ and @info='parent’]/reference_designator"/> </td>
<td rowspan="{$rowCount}" width="120px"> <xsl:value-of select="Relationships/Item[@alias='Part BOM’ and @info='parent’]/property_name"/> </td>
- Click Apply on the Stylesheet editor tab.
- Click Done on the BOM Costing Report toolbar. The Reference Designator column is added to the BOM Costing Report.
Adding the Sequence Column
In this example, the BOM Costing Report is customized. Using the following procedure, the Sequence column is added as the last column to show the Sequence property of the Part BOM Relationship ItemType:
- Search for the BOM Costing Report and open its Item view for editing.
- Go to the Stylesheet editor tab.
- Add the <th> Sequence</th> table header cell element after <th>Cost Basis</th>.
- Add a table data cell element for the sort_order property values after the one for cost_basis. <td> <xsl:value-of select="sort_order"/> </td>
<td rowspan="{$rowCount}" width="120px"> <xsl:value-of select="sort_oder"/> </td>
- Click Apply on the Stylesheet editor tab.
- Click Done on the BOM Costing Report toolbar. The Sequence column is added to the BOM Costing Report.