Expand Collapse Feature in OBIEE 10.1.3.4 version using Java script Issue
Hi All,
Tried to implement this script in OBIEE 10.1.3.4, but throughs error. Can any one help me in this regards
Steps followed
1. Create an answers report pulling Top Relations, Sub Relationship and Customer from the dimension and sales amount from the Sales fact
2. For Sub Relationship and Customer give the left padding as 25.
3. Create a pivot table view make Top Relationship, Sub Relationship hidden and select show the total before and select labels only (no totals) in the pivot table.
4.Add the image files in and the following code for Top Relationship, Sub Relationship columns select the data format to as HTML image and change it to custom text and add the following.
@[html]<img onclick="ExpandCollapse(this)" src="res/s_oracle10/images/PropertyGroup_minus.gif">@H
5. Add a narrative view and add the following java script.
// Java Script
function ExpandCollapse( el )
// Grab the ROW that was clicked and the TABLE that contains it
var tr = el.parentElement.parentElement;
var tbl = tr.parentElement.parentElement;
// Set the alternating display values for hiding/showing the row
var sDisplay = ( el.src.indexOf( "minus" ) == -1 ) ? "" : "none";
var sDisplayReverse = ( el.src.indexOf( "minus" ) == -1 ) ? "none" : "";
//Switch the icon for the clicked row
el.src = "C:/Manohar/HTMLTest/PropertyGroup_" + ( el.src.indexOf( "minus" ) == -1 ? "minus" : "plus" ) + ".gif";
// Starting with the row below the clicked row, start checking each row
for ( var i = tr.rowIndex + 1; i < tbl.rows.length; i++ )
// Set the Current row indicator nad the left padding value
var trCurrent = tbl.rows( i );
var trCurrentLeft = trCurrent.cells(0).style.paddingLeft;
// if the current row contains an IMG in it, it's a clickable level and we either have to stop processing,
// or reset the icons to a + as it's being collapsed
if ( trCurrent.cells( 0 ).firstChild && trCurrent.cells( 0 ).getElementsByTagName( "IMG" ).length )
// If the current row is at the same level or above in the tree, then stop processing,
// else reset all the signs below it, essentially collapsing all branches underneath the one that is beig collapsed.
if ( stripTrailing(trCurrentLeft , UOM_SIZE) <= stripTrailing(tr.cells(0).style.paddingLeft , UOM_SIZE) )
{ break; }
else
if (el.src.indexOf( "minus" ) == -1 )
trCurrent.cells(0).getElementsByTagName("IMG").item(0).src = "C:/Manohar/HTMLTest/PropertyGroup_plus.gif";
// Now, we determine if the row should be hidden or shown.
if ( eval(stripTrailing(tr.cells(0).style.paddingLeft, UOM_SIZE)+ INDENT_SIZE) < stripTrailing(trCurrentLeft, UOM_SIZE) && el.src.indexOf( "minus" ) >0 )
trCurrent.style.display = sDisplayReverse;
} else
trCurrent.style.display = sDisplay;
Thanks,
Kumaravel
Edited by: 840515 on Feb 28, 2011 10:00 PM
Since the SP is on connection pool (and looks like expecting a input value), that may causing for error.
Column in the report, pass PS variable and hide it if it not required in the report.
Pls mark if helps
Similar Messages
-
Expand Collapse feature for notes in EHP4 Flexible appraisal Template
Hi gurus,
Do we have any solution to add Expand and collapse feature for notes in the flexible appraisal template on the portal. Meaning if the user enters a long note in the Notes feild the expand feature should give a bigger view of the notes feild...
Please refer to the screenshot below we have the notes feilds which have the scroll feature but cannot be expanded.Hi Amrita,
If your question has been answered or whether the problem is solved, please mark the thread as answered.
Thank you,
Liran -
Expand/Collapse feature in table maintenance view
Hello experts,
We have created a custom table and maintenace view. For some table rows, the only key value difference is an EFFECTIVE DATE. The generated table maintenace dialog by default "Collapses" the rows that only differ by Effective Date. Using the Expand <-> Collapse button, we can see the missing detail for individual rows.
Can the maintenace dialog be expanded by default?Hi,
See the given link, It may help to you.
maintenance view
Regards,
Shamma -
In SQL Server Reporting Services (SSRS), drill-down is an action we can apply to any report item to hide and show other report items. They all are ways that we can organize and display data to help our users understand our report better. In this article,
we are talking about how to use parameter to control the Expand/Collapse drill-down options in SSRS report.
Consider that the report has a dataset (dsSales) with following fields: SalesTerritoryGroup, SalesTerritoryCountry, CalendarYear, SalesAmount.
1. The report has the following group settings:
Parent Group: SalesTerritoryGroup
Child Group: SalesTerritoryCountry
Child Group: CalendarYear
Details: SalesAmount
2. Add three parameters in the report:
GroupExpand:
Available Values: “Specify values”
Label: Yes Value: Yes
Label: No Value: No
Default Values: “Specify values”
Value: Yes
CountryExpand:
Available Values: “Specify values”
Label: Yes Value: =IIF(Parameters!GroupExpand.Value="No",Nothing,"Yes")
Label: No Value: No
Default Values: “Specify values”
Value: =IIF(Parameters!GroupExpand.Value="No","No","Yes")
YearExpand:
Available Values: “Specify values”
Label: Yes
Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No",Nothing,"Yes")
Label: No Value: No
Default Values: “Specify values”
Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No","No","Yes")
3. Right click SalesTerritoryCountry icon in the Row Groups dialog box, select Group Properties.
4. Click Visibility in the left pane. Select “Show or hide based on an expression” and type with following expression:
=IIF(Parameters!GroupExpand.Value="Yes", False, True)
Select “Display can be toggled by this report item” option, and select “SalesTerritoryGroup” in the drop down list.
5. Use the same method setting CalendarYear, (Details) drill-down with following expression:
=IIF(Parameters!CountryExpand.Value="Yes", False, True)
=IIF(Parameters!YearExpand.Value="Yes", False, True)
6. Click SalesTerritoryGroup text box in the tablix. Select InitialToggleState property in the Properties dialog box, and type following expression:
=IIF(Parameters!GroupExpand.Value="Yes", True, False)
7. Use the same method setting SalesTerritoryCountry, CalendarYear text box with following expression:
=IIF(Parameters!CountryExpand.Value="Yes", True, False)
=IIF(Parameters!YearExpand.Value="Yes", True, False)
After that, when we preview the report, we can use these three parameters to expand/collapse drill-down.
Note:
In our test, we may meet following issue. We can check the expression of InitialToggleState property to troubleshooting the issue.
Applies to
Reporting Services 2008
Reporting Services 2008 R2
Reporting Services 2012In SQL Server Reporting Services (SSRS), drill-down is an action we can apply to any report item to hide and show other report items. They all are ways that we can organize and display data to help our users understand our report better. In this article,
we are talking about how to use parameter to control the Expand/Collapse drill-down options in SSRS report.
Consider that the report has a dataset (dsSales) with following fields: SalesTerritoryGroup, SalesTerritoryCountry, CalendarYear, SalesAmount.
1. The report has the following group settings:
Parent Group: SalesTerritoryGroup
Child Group: SalesTerritoryCountry
Child Group: CalendarYear
Details: SalesAmount
2. Add three parameters in the report:
GroupExpand:
Available Values: “Specify values”
Label: Yes Value: Yes
Label: No Value: No
Default Values: “Specify values”
Value: Yes
CountryExpand:
Available Values: “Specify values”
Label: Yes Value: =IIF(Parameters!GroupExpand.Value="No",Nothing,"Yes")
Label: No Value: No
Default Values: “Specify values”
Value: =IIF(Parameters!GroupExpand.Value="No","No","Yes")
YearExpand:
Available Values: “Specify values”
Label: Yes
Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No",Nothing,"Yes")
Label: No Value: No
Default Values: “Specify values”
Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No","No","Yes")
3. Right click SalesTerritoryCountry icon in the Row Groups dialog box, select Group Properties.
4. Click Visibility in the left pane. Select “Show or hide based on an expression” and type with following expression:
=IIF(Parameters!GroupExpand.Value="Yes", False, True)
Select “Display can be toggled by this report item” option, and select “SalesTerritoryGroup” in the drop down list.
5. Use the same method setting CalendarYear, (Details) drill-down with following expression:
=IIF(Parameters!CountryExpand.Value="Yes", False, True)
=IIF(Parameters!YearExpand.Value="Yes", False, True)
6. Click SalesTerritoryGroup text box in the tablix. Select InitialToggleState property in the Properties dialog box, and type following expression:
=IIF(Parameters!GroupExpand.Value="Yes", True, False)
7. Use the same method setting SalesTerritoryCountry, CalendarYear text box with following expression:
=IIF(Parameters!CountryExpand.Value="Yes", True, False)
=IIF(Parameters!YearExpand.Value="Yes", True, False)
After that, when we preview the report, we can use these three parameters to expand/collapse drill-down.
Note:
In our test, we may meet following issue. We can check the expression of InitialToggleState property to troubleshooting the issue.
Applies to
Reporting Services 2008
Reporting Services 2008 R2
Reporting Services 2012 -
Show 'Expand'/'Collapse' Icon in Tray
Hi All,
I have done the following configuration in the portal and the result is confusing, can you please help me understand why?
1. I have created 2 pages, first is a standard portal page and second a webdynpro page in a test folder
2. copied a standard SAP iView to the test folder and added it to both the pages as a delta link
3. opened the iview property from the std. page and set the "Show u2018Expandu2019/u2019Collapseu2019 Icon in Tray" property to NO
4. opened the iview property from the webdynpro page and set the "Show u2018Expandu2019/u2019Collapseu2019 Icon in Tray" property to NO
When i preview the standard page the iView appears without the "Expand/Collapse" icon, but when i preview the webdynpro page the iview appears with the "Expand/Collapse" icon.
Thanks,
AnandHi Raghu,
Our portal version is 7.01 SPS15.
Hi All,
Any suggestions?
Edited by: Kirupanand Venkatapathi on Oct 4, 2010 11:32 AM -
Expand/Collapse function in WAD 7.0
Hi,
I have made a report in WAD using a table and a chart. In the output which I am running on a portal I have a table Report Navigation with in which I have some of the export options and an Expand / Collapse icons are present on the button group and also I have one drop down box calendar year .As soon as I click on the icon Collapse in the above table Report Navigation my drop down should get collapsed and again when I click on the Expand the drop down should be visible
Report naviagtion and Drop down boxes are present in a seperate table where in when I click on the icons( Expand / Collapse ) it should get reflected on the dropdown box which is present on the 2nd table
I have done the above in WAD 3.5 using Java script Code
How can this be done in WAD 7.0
Regards,
MayaHi,
After setting the Analysis item properties, just click on the 7th icon on top menu bar, i think its Verify or Check on server. Somthing like that.
Or try re-opening the template after sometime. Close the existing Web window, where you see your output, and execute the template once again. This should work.
If nothing of the above works, theres one more thing. You may have to re-create the Template.
This happens at times when there is no proper connection between the Portal and WAD. I have faced it myself. So, just try something like that. -
Expand/Collapse All Version Sets
PSE 10, Is there a simple way to open all the Version Sets with one set of keystrokes, and having them stay open. I have a lot of version sets built up over time, and I would prefer not having to open each one individually. When I tried doing that on a small batch, as soon as I changed to a different batch of pics, all of the Sets I had opened, promptly closed. The View > Expand/Collapse All Stacks does not work on the Version Sets.
Hi Surya
Create a new HTML region at the top of your page, using No Template and use this as the Source:
<script type="text/javascript">
function showHideAll(displaystyle)
var hideIMG = "/i/htmldb/builder/rollup_plus_dgray.gif";
var showIMG = "/i/htmldb/builder/rollup_minus_dgray.gif";
var k;
var r = document.getElementsByTagName("DIV");
if (r)
for (k = 0; k < r.length; k++)
if (r[k].className == 't12Hide')
r[k].style.display = displaystyle;
var i = document.getElementsByTagName("IMG");
if ( i )
for (k = 0; k < i.length; k++)
if (i[k].id.substr(0, 5) == 'shIMG')
i[k].src = (displaystyle == 'block') ? showIMG : hideIMG;
</script>
<a href="javascript:showHideAll('block');">Show All</a>
<a href="javascript:showHideAll('none');">Hide All</a>The image names and className (t12Hide) are based on my test page - change these as appropriate for your own page (you may need to do a View Source on the page to check these values).
Andy -
I got a java script from a coworker that allows me to click
on a button and display expanded text. The problem is, when its
clicked, the page jumps back to the top of the page. Any ideas?
Here is a sample of the code:
<a href="#"
onclick="document.getElementById('what_is').style.display=(document.getElementById('what_ is').style.display=='block')?'none':'block';"><img
src="Images/More.jpg" border="0" align="left" />
Thanks!!!!
PS- please be gentle, I have never used java script before.
:)nst_21710 wrote:
> I got a java script from a coworker that allows me to
click on a button and
> display expanded text. The problem is, when its clicked,
the page jumps back to
> the top of the page. Any ideas?
>
> Here is a sample of the code:
> <a href="#"
>
onclick="document.getElementById('what_is').style.display=(document.getElementBy
>
Id('what_is').style.display=='block')?'none':'block';"><img
> src="Images/More.jpg" border="0" align="left" />
>
> Thanks!!!!
>
> PS- please be gentle, I have never used java script
before. :)
>
replace:
<a href="#"
with:
<a href="javascript:;"
seb ( [email protected])
http://webtrans1.com | high-end web
design
Downloads: Slide Show, Directory Browser, Mailing List -
Outlook 2013 - Online Archive folders do not remember expand / collapse
For our QA group, we have just upgraded them from Office 2010 to Office 2013 SP1. We have one user that noticed something. With Outlook 2010, the client would remember which folders he had expanded or collapsed under his "Archive" (the online archive
generated by the Archiving feature of Exchange server). However, once we upgraded him to Outlook 2013, this is no longer true. Now, the "Online Archive" header is fully collapsed when he open Outlook every time.
To test, I created a small folder structure with some items in my own "Online Archive" section and was able to reproduce this behavior. Outlook 2013 will remember which folders are expanded or collapsed for the folders in my Inbox but not for the
folders in my Archive. Is there a way to have Outlook 2013 remember the expand / collapse settings for the Archive?Hi,
I'm marking the reply as answer as there has been no update for a couple of days.
If you come back to find it doesn't work for you, please reply to us and unmark the answer.
Best Regards,
Steve Fan
Forum Support
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please click
here -
Expand/ Collapse tree funtion does not exist in new appraisals
Hi all,
I have been implementing the new objective setting and appraisals system and the old function of expand and collapse tree does not appear in the screen. this function was very useful because it is more user friendly.
Is it somewhere in configuration or this feature does not exist in the mewer version??
Should I open a sap message?
thank youHi
Wat is the update?
Thanks
Sivab -
Does anybody know how to make a "Expand/Collapse" button (little orange triangle button)?
I want to know if I can change the BOM in Sales Order to hide or show all child items (say the BOM is a Sales or Template BOM).
Thanks,
-YanHi Yan,
It is not possible to change the BOM matrix in such a way.
In addition the feature itself is planned to be available in version 2005...
...and even then you would have to use a workaround: hide the original matrix and display your own collapsible matrix including all the handling needed + when saving do some more handling to serialize the changes into the DB...
Regards,
Frank -
Hi, Is there any way to expand/collapse prompts. The prompts and the request are in the same section. So I cannot use Collapsible feature of section.
thx,
paragHi,
>Actually there is a guided navigation on this section
So you mean this sections comes based on some selections.. Then place prompt and report in seperate sections and apply guided navigation for both sections and collapsible for prompt...
Thanks,
Srikanth -
Geospatial Feature in OBIEE 11G
Hi
Please provide a pointer for comprehensive information on Geospatial Feature in OBIEE 11G and its implementation.
Thanks.Hi,
Have a look at the SampleApp demo set. If you follow this sample installation you will have a basic start set and exploration of also the geo spatial part:
http://www.oracle.com/technetwork/middleware/bi-foundation/obiee-samples-167534.html
Regards -
Expand/Collapse a block in a selection screen
Hey Folks,
I have a requirement , where I have a selection screen, with 3 selection blocks. I have a requirement that I need to make 2 of these blocks expandible/collapsible on the toggle of a button.. How can this be achieved.
In case of a normal screen, I would have had to create the blocks as subscreens (one type of screen for expanded state...another for collapsed state) and called it from the main screen. But how do I achieve the same using the selection screens?
I was considering creating the blocks as subscreens in the selection screen and calling them in the PBO of the main selection screen. However, I am unsure if thats a wise thing to do since the screen is generated automatically in case of a selection screen and I do believe its not a good idea to manually alter it.
Does anyone has any pointers on this?
Thanks and Best Regards,
Puja.Hi,
I have modified the code to show the expand/collapse ICON accordingly..Please check..
TABLES sscrfields.
TYPE-POOLS icon.
* Expand/collapse buttons.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN PUSHBUTTON 2(23) b1 USER-COMMAND usr1.
SELECTION-SCREEN END OF LINE.
* Block 1
SELECTION-SCREEN BEGIN OF BLOCK b1.
PARAMETERS: p_test1 TYPE char10 MODIF ID m1,
p_test2 TYPE char10 MODIF ID m1.
SELECT-OPTIONS s_date FOR sy-datum MODIF ID m1.
SELECTION-SCREEN END OF BLOCK b1.
* Block 2
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN PUSHBUTTON 2(23) b2 USER-COMMAND usr2.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF BLOCK b2.
PARAMETERS: p_test3 TYPE char10 MODIF ID m2,
p_test4 TYPE char10 MODIF ID m2.
SELECTION-SCREEN END OF BLOCK b2.
* Declarations
DATA: v_flag, v_flag1.
INITIALIZATION.
b1 = 'Button1'.
b2 = 'Button2'.
v_flag = 'X'.
v_flag1 = 'X'.
AT SELECTION-SCREEN.
* Check the user command.
IF sy-ucomm = 'USR1'.
IF v_flag IS INITIAL.
v_flag = 'X'.
ELSE.
CLEAR v_flag.
ENDIF.
ELSEIF sy-ucomm = 'USR2'.
IF v_flag1 IS INITIAL.
v_flag1 = 'X'.
ELSE.
CLEAR v_flag1.
ENDIF.
ENDIF.
AT SELECTION-SCREEN OUTPUT.
IF v_flag1 = 'X'.
CALL FUNCTION 'ICON_CREATE'
EXPORTING
name = icon_expand
text = 'Button 2'
info = 'Button 2'
IMPORTING
RESULT = b2
EXCEPTIONS
OTHERS = 0.
ELSEIF v_flag1 IS INITIAL.
CALL FUNCTION 'ICON_CREATE'
EXPORTING
name = icon_collapse
text = 'Button 2'
info = 'Button 2'
IMPORTING
RESULT = b2
EXCEPTIONS
OTHERS = 0.
ENDIF.
IF v_flag = 'X'.
CALL FUNCTION 'ICON_CREATE'
EXPORTING
name = icon_expand
text = 'Button 1'
info = 'Button 1'
IMPORTING
RESULT = b1
EXCEPTIONS
OTHERS = 0.
ELSEIF v_flag IS INITIAL.
CALL FUNCTION 'ICON_CREATE'
EXPORTING
name = icon_collapse
text = 'Button 1'
info = 'Button 1'
IMPORTING
RESULT = b1
EXCEPTIONS
OTHERS = 0.
ENDIF.
LOOP AT SCREEN.
* Expand collapse block1
IF v_flag = 'X' AND screen-group1 = 'M1'.
screen-active = 0.
ELSEIF v_flag IS INITIAL AND screen-group1 = 'M1'.
screen-active = 1.
ENDIF.
* Expand collapse block2
IF v_flag1 = 'X' AND screen-group1 = 'M2'.
screen-active = 0.
ELSEIF v_flag1 IS INITIAL AND screen-group1 = 'M2'.
screen-active = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
Thanks
Naren -
I am working in CP7 on a project with a Table of Contents that is set to 'Overlay'. The client has requested that I remove the "TOC" button in the playbar, without removing the TOC "Expand/Collapse" icon, so that the user can still hide/reveal the TOC when necessary. The only control I can find is the "Show TOC" checkbox under Project > Table of Contents. However, un-checking this option removes both the "TOC" button AND the "Expand/Collapse" icons. Is it possible to remove just the "TOC" button in the playbar?
If you are using SWF output you can always edit the playbar in Flash and remove it.
If HTML5 you can edit the JavaScript out put to remove the button from the playbar.
Maybe you are looking for
-
I'm totally new to iphone/ipod. I need help with the following: 1) How do I get rid of a folder of photos that showed up on my daughter's ipod touch when she received some songs from her aunt's itunes? After she got some songs from that itunes a fo
-
After deleted profile my Firefox will not start Message - Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system. I have tried – Restarting - Checking control
-
CM-ImportDriver and Get-ChildItem
I am trying to use the CM-ImportDriver Cmdlet and running into a problem. After I import the module, I change my site to ABC1:. From there, I cannot use Get-ChildItem for a UNC path and the CM-ImportDriver throws an error saying it needs a valid dr
-
Socket error 10038 on URLConnection
We put a Java 1.2.2 applet into production on our intranet starting in April. Of the more than 800 users (all running Windows and IE), 3 have been unsuccessful in getting it to work; the appliet will not make a connection to our application server vi
-
I used an ethernet cable between my iMac and Time Capsule for the initial backup. Now that initial backup is concluded, can I assume I can simply unplug the Time Capsule from my computer without any glitches and Time Capsule will then run wirelessly