This discussion is archived
5 Replies Latest reply: Jan 17, 2013 3:18 AM by layman RSS

Collapsible Section minimize by default

Alex1 Newbie
Currently Being Moderated
When I create a section collapsible I see my section expanded.

Is possible to get minimize by default?

Thanks!!
  • 1. Re: Collapsible Section minimize by default
    Christian Berg Guru
    Currently Being Moderated
    The fact that a section is collapsed is actually a container state as visible in the XML behind a saved customization. The XML storing the definition of the dashboard only contains collapsilble="true" or "false", but not the actual state.

    Customization example:
    <?xml version="1.0" encoding="utf-8"?>
    <sawsel:dashboardSelections xmlns:sawsel="com.siebel.analytics.web/dashselections/v1" xmlns:sawst="com.siebel.analytics.web/state/v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="0.7">
    <sawst:envState xmlVersion="200811100"><sawst:container cid="d:dashboard" xsi:type="sawst:topLevelStateContainer">
    <sawst:container cid="p:5f17p12grfof9tb1" xsi:type="sawst:page" inDashboardPage="true">
    <sawst:container cid="r:or12dfr4au2qvktmj" xsi:type="sawst:report" defaultView="compoundView!1" folder="/shared/something" itemName="something"/>
    <sawst:container cid="s:0hq4f94fvkfgpg" xsi:type="sawst:section" minimized="true"/></sawst:container></sawst:container></sawst:envState></sawsel:dashboardSelections>
    Key part: xsi:type="sawst:section" minimized="true"

    Not sure if creating a shared customization valid for all users for each and every single dashboard page would be worth it.
  • 2. Re: Collapsible Section minimize by default
    Devpriyo Newbie
    Currently Being Moderated
    Hi Christian,

    I followed your link and was able to get the desired result. https://forums.oracle.com/forums/message.jspa?messageID=10423215#10423215_ Thanks

    I had to do the above in all my reports.

    My bigger concern now is that whenever I create a new user, the selections* folder is empty. So, I have to copy the content of selections folder into the _selections folder of the new user and only then I get my sections in the reports for the new user as collapsed. I have to perform this 3-4 steps for every user I create. Is this how it is in OBIEE11g or this is a bug ?


    Thanks n Regards
    Dev
  • 3. Re: Collapsible Section minimize by default
    layman Newbie
    Currently Being Moderated
    Not sure what code you have used. I have successfully done this using the javascript code embedded in a text object (contains HTML marked)within the section. This should work for all users without doing anything else

    <script type="text/javascript">
    saw.dashboard.onToggleSection('<your-section-id-here>',null);
    </script>

    Replace your-section-id-here with the actual section id which you are trying to auto-collapse by default. It will be something like d:dashboard~p:unsm5na5r999jejc~s:mvd7gvgnq90nad7m
  • 4. Re: Collapsible Section minimize by default
    exel_cs Newbie
    Currently Being Moderated
    Hi Layman

    Do you have to create a saved customization to get the sectionid?

    I want to collaspe a section but can seem to find the section id like

    d:dashboard~p:unsm5na5r999jejc~s:mvd7gvgnq90nad7m

    Where can i find this sectionid?

    Please advise

    Hiten

    Edited by: #:::HITEN:::# on 20-Dec-2012 06:44
  • 5. Re: Collapsible Section minimize by default
    layman Newbie
    Currently Being Moderated
    The section id can be seen in the html code(View Source) of the rendered html page/report. Best to use firebug on FIrefox so that you can easlly see each individual element's html code.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points