Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 18

i.

To change the color of dashboard tabs


ii. To set ROWS PER PAGE by default
iii. Generating Metadata Dictionary
iv. To enable links in dashboard (modify, download, refresh, etc) by default
v. To enable column sorting by default
vi. To change languages at UI level (at dashboard login page)
vii. To enable Admin tab in BI publisher if it is not present
viii. Aggregate Persistence wizard

To change the color of dashboard tabs:


Go to dashboard page of interest & click "edit dashboard" and add a "text" dashboard object with the
following script.
<script type="text/javascript">
 var tblId=document.getElementById('TabsTable');
 tblId.tBodies[0].rows[0].cells[1].className='';
 tblId.tBodies[0].rows[0].cells[2].className='';
 tblId.tBodies[0].rows[0].cells[3].className='';
 tblId.tBodies[0].rows[0].cells[4].className='';
 tblId.tBodies[0].rows[0].cells[5].className='';
 tblId.tBodies[0].rows[0].cells[6].className='';

 tblId.tBodies[0].rows[0].cells[1].style.backgroundColor='red';
 tblId.tBodies[0].rows[0].cells[2].style.backgroundColor='red'
 tblId.tBodies[0].rows[0].cells[3].style.backgroundColor='yellow'
 tblId.tBodies[0].rows[0].cells[4].style.backgroundColor='yellow'
 tblId.tBodies[0].rows[0].cells[5].style.backgroundColor='green'
 tblId.tBodies[0].rows[0].cells[6].style.backgroundColor='green'
</script>

To set ROWS PER PAGE by default:


Place this tag before Advanced Reporting in Instanceconfig.xml.

<Views>
<Table>
<DefaultRowsDisplayed>100</DefaultRowsDisplayed>
</Table>
</Views>

GENERATING METADATA DICTIONARY:

Step1:

Open rpd in offline mode,

click on tools -> Utilities ->generate metadata dictionary -> click on execute
as follows

After executing it prompts for location where it need to save the metadata
browse some location ,after that following message appears
Step2:

Create the “dictionary” folder in the following location:

<OracleBI>\oc4j_bi\j2ee\home\applications\analytics\analytics

As follows
And then move contents(where we have specified location) to the dictionary
folder

Step 3:

After setting OC4J Prerequisites, we have to tell the presentation server


where to find the dictionary. This is configured in the
INSTANCECONFIG.XML file.

this file is found in <OracleBIData>\web\config.

Open the INSTANCECONFIG.XML file and add the following tag between
the <WebConfig> tags.

Note: After making necessary changes, restart Oracle BI


Presentation Server, Oracle BI Server.
Step 4:

Access the metadata dictionary from Answers


After making the changes in the configuration file and restarting the
presentation service, Log in Answers application and select the
subject Area. You will be able to see in Answers area on the right of
each column, table and cube a new icon. A click on this icon will
present you the Xml data dictionary associated. (Book icon – for
components and items will appear after the mouse cursor hovering
to it).

To enable links in dashboard (modify, download,


refresh, etc) by default:
<?xml version="1.0" encoding="utf-8"?>
<WebMessageTables xmlns:sawm="com.siebel.analytics.web.messageSystem">
   <WebMessageTable system="Answers" table="ViewDefaults">

<WebMessage name="kuiDashboardDefaultElements" translate="no"><HTML>


   <element signature="reportView" display="embed" links="mr" />
</HTML></WebMessage>

   </WebMessageTable>
</WebMessageTables>

To enable column sorting by default:


<?xml version="1.0" encoding="utf-8"?>
<WebMessageTables xmlns:sawm="com.siebel.analytics.web.messageSystem">
   <WebMessageTable system="Answers" table="ViewDefaults">
<WebMessage name="kuiCriteriaDefaultViewElements" translate="no"><HTML>
   <view signature="tableView" sortable="true" />
</HTML></WebMessage>

   </WebMessageTable>
</WebMessageTables>

To enable Green bars by default:

To change languages at UI level (at dashboard login page):

Specifying Multiple Languages For Catalog Contents


Pre Requisites:-

1) Have a table in corresponding Schema as following Structure.


Create table tab-name(Actual varchar2(100),session_variable varchar2(100),translation
varchar2(100),language varchar(100));

Steps:-

1.   Open Administration Console and right click on the Presentation Subject Area that you would like

to Externalize. You would see 2 options there to externalize names and descriptions. For now lets

externalize Names alone. So, click on Externalize Display Names.

      

2.   Once this is done go to Tools->Utilties and Click on Execute to Externalize Strings.


      

After this, you would see a screen that would look like this. What this basically shows you is the

Names of the presentation catalogs. Save this as a csv file.

      

3) Translate the data into the specified language u want. Now, copy the translated data into the
CSV file in their corresponding columns.
4) Add new column ‘LANGUAGE’ in CSV file and specify the languages by their abbreviations.
5) Now, load the CSV file into the database table which is created earlier.

6) Import the table into Physical layer in Admin tool.

7)  The first step after importing this table is to create an initialization block to initialize the

LOCALE variable based on the language selected by the user in Dashboard login. To do this

create a session initialization block having the data source from a database. The database sql

would have a sql like this


   SELECT ‘VALUEOF(NQ_SESSION.WEBLANGUAGE)’ FROM DUAL

Also assign the target to the system session variable LOCALE. What this basically does is,

whenever a user logs into dashboards the WEBLANGUAGE session variable is set. Then this

variable sets the LOCALE variable using the initialization block.

      

8)  The next step is to create another session initialization block which would basically create a

set of session variables using a database specific sql. The sql would look like this

      select SESSION_VARIABLE, TRANSLATION from external where LANGUAGE =

‘VALUEOF(NQ_SESSION.LOCALE)’

As you see above, this block will create all the variables whose Language match the user’s

login language. Set the target of the init block to Row Wise initialization and then select the

previously created init block in the execution precedence. i.e we want the 1st block created

earlier to execute first.


      

      
      

9) Save the RPD and restart all the services.


10) Open Analytics web page, select the language and login. Check the changes you made.

To enable Admin tab in BI publisher if it is not


present:
Go to OracleBI -> xmlp -> XMLP -> Admin -> Configuration

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<xmlpConfig xmlns="http://xmlns.oracle.com/oxp/xmlp">

<property name="SUPERUSER_PASSWORD"
value="9DA818F68E4267635CF12C4D7F8D735D5604B2C0BF22"/>

<property name="SUPERUSER_USERNAME" value="Administrator"/>

<property name="GUEST_FOLDER" value="false"/>

<property name="SAW_SERVER" value="STRATAPP-D4AE70"/>


<property name="SAW_SESSION_TIMEOUT" value="90"/>

<property name="DEBUG_LEVEL" value="exception"/>

<property name="SAW_PORT" value="9704"/>

<property name="SAW_PASSWORD" value="Administrator"/>

<property name="SAW_PROTOCOL" value="http"/>

<property name="SAW_VERSION" value="v4"/>

<property name="ENABLE_SUPERUSER" value="true"/>

<property name="SAW_USERNAME" value="Administrator"/>

<property name="ONLINE_TEMPLATE_BUILDER" value="false"/>

<!-- Compress the report output in the database. Default is true -->

<property name="COMPRESS_REPORT_OUTPUT" value="false"/>

<!-- Compress the report data xml in the database. Default is true -->

<property name="COMPRESS_REPORT_DATA" value="false"/>

<property name="SAW_URL_SUFFIX" value="analytics/saw.dll"/>

<property name="SECURITY_MODEL" value="BI_SERVER"/>

<property name="BI_SERVER_SECURITY_DRIVER"
value="oracle.bi.jdbc.AnaJdbcDriver"/>

<property name="BI_SERVER_SECURITY_URL"
value="jdbc:oraclebi://STRATAPP-D4AE70:9703/"/>

<property name="BI_SERVER_SECURITY_ADMIN_USERNAME"
value="Administrator"/>

<property name="BI_SERVER_SECURITY_ADMIN_PASSWORD"
value="Administrator"/>

</xmlpConfig>
Usage Tracking:
Aggregate Persistence wizard:
1) Open the rpd.
2) Go to tools  Aggregate Persistence wizard
3) specify an output file name for the resultant script.

4) creating the Aggregate script is to specify the measures for which you would like to
create the aggregate tables. Remember, you can only use those measures that have
some predefined aggregation set.
5) Once that is done, choose the levels across the dimensions which you would like to
associate with the aggregation.
6) Once the levels are chosen, choose the names and the connection pool for the target
aggregate table.

7) Then complete the wizard. This would create the script in the output directory you
specified.

      

8) Go to command prompt and navigate to {OracleBI}/Server/Bin and there you would find
an executable called as nqcmd.exe. This is what we will use to execute the above script.
Use the command below to execute this

nqcmd -d AnalyticsWeb -u Administrator -p Administrator -s


“D:\AggregateCountry.sql” -o “D:\Outputfile1.txt”

( “D:\AggregateCountry.sql” is the path where u saved the output script. “D:\Outputfile1.txt”

Is the path which u have created to store the output file.)


9) Once this script is executed open the Admin tool and the repository. If you navigate to
the connection pool you would find the aggregate tables created.

      

10) Also, if you double click on any of the levels above the Country level (say
SubRegion_Name), you would find that the logical mapping has been automatically
created by the script.
      

11) Before proceeding further lets just go back to the database and see how the data of the
aggregate table looks like. Remember, there will be 2 tables. One is for storing the level
hierarchy and the other is for storing the aggregates.

      

12) And, at last lets create a simple report in BI Answers containing the Region, SubRegion
and Country Columns. After that look at the query that is fired in the backend. You
would notice that the aggregate table will be used instead of the actual transaction table.
      

      

You might also like