I have some values returned from the fact table.
I want to then apply some complex logic on them, that you could not achieve with functions / nested functions etc.
I want to use javascript to achieve this.
Is it possible?
Possible -> https://www.clearpeaks.com/adding-javascript-libraries-obiee/
Have a look at the code; -
var dim = new Array(5)
for (i=0; i <5; i++)
for
(i=0; i <5; i++)
dim[i] = new Array(2);
var max_i;
dim[@1][0] = "@2";
dim[@1][0] =
"@2"
;
dim[@1][1] = @3;
max_i = @1;
Crib this and alter it to your needs and you are there...
BUT - better would be to get your data warehouse team to populate your fact table(s) with the additional processing, javascript is uncompiled and so errors may only manifest at runtime and depending on what you are doing with it may be slow.
Hi,
Sure ... as long as you then keep the data in javascript and do some javascript rendering (either JET or D3js or any other JS graphing library or just simple HTML rendering).
Once you got the data out from OBIEE into your javascript code you can't send it back into OBIEE for "normal" usage.
If you want your data back into OBIEE you need to look for ETL, even if it involve some program (python, java, javascript etc.) for the transformation. But in general in that case the database can do everything (assuming it's Oracle: with PL/SQL you really do everything).
Thank you both for your very useful answers - extremely kind - I will try to push the requirement to the DW team, I agree it makes most sense there, even though as you both say it can be done - I completely agree it should not be done in my case.
Hi Team, We would like to raise an enhancement request for the SSO/SAML configuration guidance for OAS 2026. We have already raised multiple SRs regarding OAS 2026 SSO configuration. However, we are facing difficulties getting the required guidance, as the available documentation does not clearly cover the OAS 2026 SSO…
We are planning to archive the Contract and Lease data currently sourced from the External Source as Contract and Lease accounting functions are being migrated to Oracle's CLM and Lease Accounting modules. At this stage, only active and partially closed records are being converted into Oracle and the remaining historical…
The difference column is a calculation, and I would like to average that row.
We are trying to convert our OAS reports to OAC and one of the parameters in the where clause of the report is what I am trying to make in OAC. I created a calculation as follows and I am trying to put it into a filter . The code validates EVALUATE('GREATEST ( TRUNC ( NVL (%1, TO_DATE (''1/1/2013'', ''mm/dd/yyyy'') ) ),…
Hi , I am calling one parameter in another parameter and it is not working. 1st parameter is showing values, while calling the 1st parameter in second it is not showing any values. Regards, Sree Hari M