Oracle Business Intelligence

Products Banner

OBIEE 12 c Auto Refresh

Received Response
238
Views
6
Comments

OBIEE 12c

I have a requirement where the user would like the dashboard page to auto refresh every 60 seconds without having to click on the "Refresh" button.

Is there a way to do this.

Answers

  • Pedro F
    Pedro F ✭✭✭✭✭

    Hi,

    As far as I know, out-of-the-box you don't have anything that can fulfil your requirement. In order to achieve what you want, you'd probably have to use some javascript code that will make that 60secs reload.

  • Yes this could be easily achieved with simple JavaScript. Put this code to dashboard text box or create some static text within analysis.

    <span class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;">setTimeout</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;">(</span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #101094;">function</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;">()</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"> </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;">{</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"><br/>  location</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;">.</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;">reload</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;">();</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"><br/></span><span class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;">},</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"> </span><span class="lit" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #7d2727;">30000</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;">);</span>

  • SampleApp has examples for that (you can also just refresh analysis in a page and things like that).

    The above JS will not always work as the URL isn't always valid: OBIEE does a lot based on it's own session, so if you want to be sure to reload the right page you better first get the URL to use from "Create bookmark link" to avoid surprises).

    Definitely worth to look at what SampleApp did there as refreshing an analysis (or few) in a page is more userfriendly than reloading the whole page.

  • Carsten Weber
    Carsten Weber ✭✭✭✭

    Is it possible to get the refresh function working withing preview mode of a dashboard since otherwise you will always see the top ribbon of Oracle BI which includes the menu bar?

    EDIT: Solved via analytics/saw.dll?PortalPages&PortalPath=

  • Chris Arnold
    Chris Arnold ✭✭✭✭

    I think this would give you exactly what you are looking for. We used it at my last employer and it worked very well.

    https://www.jamescoyle.net/how-to/1907-javascript-to-refresh-all-obiee-dashboard-analysis

    Hopefully this helps!

  • User_ZZQJ0
    User_ZZQJ0 ✭✭✭

    Thanks Chris. Exactly what I needed and it worked!!!