Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Prompt default collapse in dashboard page

Received Response
11
Views
1
Comments
964995
964995 Rank 1 - Community Starter

Good Morning Gurus,

when i open my dashboard page, prompt section is expand mode. option collapse is checked;

By default i want see that prompt collapse.

Can any one help on this.

collapse.png

expand.png

Answers

  • Simon.D
    Simon.D Rank 4 - Community Specialist

    Yes you can do this - https://obieepedia.wordpress.com/2013/06/19/how-to-collapse-or-minimize-a-dashboard-section-by-default-in-obiee/

    You use the developer tools of the browser to find the ID of the SectionDiv element of the prompt and then you add a text object to the dashboard with some javascript in it. Here is my javascript:

    <script type="text/javascript">

    var sectionId = "d:dashboard~p:drv6t74jn2kujku4~s:v8j9s2l25eb3l3nb";

    var sectionDiv = document.getElementById("Embed"+sectionId);

    var plusImg = document.getElementById(sectionId+"Max");

    var minusImg = document.getElementById(sectionId+"Min");

    var contentsTable = document.getElementById(sectionId+"Contents");

    minusImg.style.display = "none";

    contentsTable.style.display = "none";

    plusImg.style.display = "";

    sectionDiv.setAttribute("minimized", "true");

    </script>