Executing XML in Offline Mode

12-8 Oracle Fusion Middleware Integrators Guide for Oracle Business Intelligence Enterprise Edition quot;Facts Revenuequot; parentId=4008:2143 parentUid=73625 hasDispName=false overrideLogicalName=true Description [CDATA[This presentation column was added using the XML metadata API.]] Description RefLogicalColumn uid=946 id=2006:106 qualifiedName=quot;Sample Smallquot;.quot;F0 Rev Base Measuresquot;.quot;2-01 Billed Qty Sum Allquot; PresentationColumn DECLARE Repository This code adds a presentation column that references both the parent presentation table to which it belongs Facts Revenue, and the logical column to which it maps 2-01 Billed Qty Sum All. Note that although the new presentation column has a qualified name, the id and uid are not specified, because they will be automatically created by the Oracle BI Server when it loads the modified RPD file. In addition to adding the presentation column object, you must also add a reference to the new object from the existing presentation table object. To do this, generate an XML version of the current repository using biserverxmlgen and search the XML for the name of the presentation table Facts Revenue. Copy the code for the presentation table object to the clipboard, as follows: PresentationTable name=Facts Revenue parentName=quot;Sample Smallquot;. quot;quot; parentId=4004:2137 parentUid=73609 id=4008:2143 uid=73625 hasDispName=false Description [CDATA[This folder contains several types of aggregation metrics leveraging single revenue fact column. It also contains aggregations metrics based on Forecast physical table]] Description Aliases Alias name=F1 Revenue Aliases Columns RefPresentationColumn uid=72927 id=4010:1707 qualifiedName= quot;Sample Smallquot;..quot;Facts Revenuequot;. quot;Revenuequot; Columns PresentationTable Paste the code for the Facts Revenue presentation table into the Change.rpdx file, and add the appropriate presentation column reference to it. The final Change.rpdx file appears as follows, with the key metadata changes shown in bold: ?xml version=1.0 encoding=iso-8859-1? Repository xmlns:xsi=http:www.w3.org2001XMLSchema-instance DECLARE PresentationTable name=Facts Revenue parentName=quot;Sample Smallquot;. quot;quot; parentId=4004:2137 parentUid=73609 id=4008:2143 uid=73625 hasDispName=false Description [CDATA[This folder contains several types of aggregation metrics leveraging single revenue fact column. It also contains aggregations metrics based on Forecast physical table]] Description About the Oracle BI Server XML API 12-9 Aliases Alias name=F1 Revenue Aliases Columns RefPresentationColumn uid=72927 id=4010:1707 qualifiedName= quot;Sample Smallquot;..quot;Facts Revenuequot;. quot;Revenuequot; RefPresentationColumn qualifiedName=quot;Sample Smallquot;. .quot;Facts Revenuequot;.quot;Billed Qtyquot; Columns PresentationTable PresentationColumn name=Billed Qty parentName=quot;Sample Smallquot;. .quot;Facts Revenuequot; parentId=4008:2143 parentUid=73625 hasDispName=false overrideLogicalName=true Description [CDATA[This presentation column was added using the XML metadata API.]] Description RefLogicalColumn uid=946 id=2006:106 qualifiedName=quot;Sample Smallquot;.quot;F0 Rev Base Measuresquot;.quot;2-01 Billed Qty Sum Allquot; PresentationColumn DECLARE Repository Finally, run the biserverxmlexec utility to execute Change.rpdx to update the original RPD file. Figure 12–3 shows what the updated repository looks like in the Administration Tool. Figure 12–3 Updated Repository with New Presentation Column in the Administration Tool