Upload
pagada-vasthala
View
218
Download
0
Embed Size (px)
Citation preview
8/8/2019 Customizations
1/18
i. To change the color of dashboard tabsii. To set ROWS PER PAGE by default
iii. Generating Metadata Dictionaryiv. To enable links in dashboard (modify, download, refresh, etc) by defaultv. To enable column sorting by defaultvi. To change languages at UI level (at dashboard login page)
vii. To enable Admin tab in BI publisher if it is not presentviii. 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.
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'
To set ROWS PER PAGE by default:
8/8/2019 Customizations
2/18
Place this tag before Advanced Reporting in Instanceconfig.xml.
100
GENERATING METADATA DICTIONARY:
Step1:
Open rpd in offline mode,
click on tools -> Utilities ->generate metadata dictionary -> click on executeas follows
After executing it prompts for location where it need to save the metadata
browse some location ,after that following message appears
8/8/2019 Customizations
3/18
Step2:
Create the dictionary folder in the following location:
\oc4j_bi\j2ee\home\applications\analytics\analytics
As follows
8/8/2019 Customizations
4/18
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 \web\config.
Open the INSTANCECONFIG.XML file and add the following tag between
the tags.
Note: Aftermakingnecessarychanges,restart OracleBI
Presentation Server, OracleBI Server.
8/8/2019 Customizations
5/18
Step4:
Access the metadata dictionary from Answers
Aftermakingthechangesintheconfiguration fileandrestartingthepresentationservice, Login Answersapplicationandselectthe
subject Area. Youwillbeabletoseein Answersareaontherightof
each column,tableandcubeanewicon. A clickonthisiconwill
presentyouthe Xmldatadictionaryassociated. (Bookicon for
componentsanditemswillappearafterthemousecursor hoveringtoit).
To enable links in dashboard (modify, download,
refresh, etc) by default:
To enable column sorting by default:
8/8/2019 Customizations
6/18
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 letsexternalize Names alone. So, click on Externalize Display Names.
2. Once this is done go to Tools->Utilties and Click on Execute to Externalize Strings.
8/8/2019 Customizations
7/18
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 theCSV file in their corresponding columns.
4) Add new column LANGUAGE in CSV file and specify the languages by their abbreviations.
8/8/2019 Customizations
8/18
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 theLOCALE 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
8/8/2019 Customizations
9/18
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 aset 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 users
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.
8/8/2019 Customizations
10/18
8/8/2019 Customizations
11/18
9) Save the RPD and restart all the services.10) Open Analytics web page, select the language and login. Check the changes you made.
Toenable AdmintabinBI publisherifitisnotpresent:
Go to OracleBI -> xmlp -> XMLP -> Admin -> Configuration
8/8/2019 Customizations
12/18
8/8/2019 Customizations
13/18
Usage Tracking:
Aggregate Persistence wizard:
1) Open the rpd.2) Go to tools Aggregate Persistence wizard3) specify an output file name for the resultant script.
4) creating the Aggregate script is to specify the measures for which you would like tocreate the aggregate tables. Remember, you can only use those measures that have
some predefined aggregation set.
8/8/2019 Customizations
14/18
5) Once that is done, choose the levels across the dimensions which you would like toassociate with the aggregation.
8/8/2019 Customizations
15/18
6) Once the levels are chosen, choose the names and the connection pool for the targetaggregate table.
7) Then complete the wizard. This would create the script in the output directory youspecified.
8) Go to command prompt and navigate to {OracleBI}/Server/Bin and there you would findan 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.)
8/8/2019 Customizations
16/18
9) Once this script is executed open the Admin tool and the repository. If you navigate tothe connection pool you would find the aggregate tables created.
10)Also, if you double click on any of the levels above the Country level (saySubRegion_Name), you would find that the logical mapping has been automaticallycreated by the script.
8/8/2019 Customizations
17/18
11)Before proceeding further lets just go back to the database and see how the data of theaggregate 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, SubRegionand 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.
8/8/2019 Customizations
18/18