Having Trouble with Drill Down Report

Hello,
I am having issues with getting Carl's example to work. http://htmldb.oracle.com/pls/otn/f?p=11933:13
This is my main query:
SELECT
  AD_SPRIDEN_ID,
  AD_FIRST_NAME_PREF,
  AD_LAST_NAME_PREF,
  AD_SPOUSE_BANNER_ID,
  AD_SPS_PREF_FIRST_NAME,
  AD_SPS_PREF_LAST_NAME,
  AD_ATHL_MATCH_GIFTS_CFY,
  AD_CURES_MATCH_GIFTS_CFY,
  AD_UNRES_MATCH_GIFTS_CFY,
  AD_ENDOW_MATCH_GIFTS_CFY,
  AD_FACIL_MATCH_GIFTS_CFY,
  AD_SPS_ATHL_MATCH_GIFTS_CFY,
  AD_SPS_CURES_MATCH_GIFTS_CFY,
  AD_SPS_UNRES_MATCH_GIFTS_CFY,
  AD_SPS_ENDOW_MATCH_GIFTS_CFY,
  AD_SPS_FACIL_MATCH_GIFTS_CFY,
FROM MATCHING_GIFTSI want to drill down on past fiscal year data:
SELECT
  AD_SPRIDEN_ID,
  AD_FIRST_NAME_PREF,
  AD_LAST_NAME_PREF,
  AD_SPOUSE_BANNER_ID,
  AD_SPS_PREF_FIRST_NAME,
  AD_SPS_PREF_LAST_NAME,
  AD_ATHL_MATCH_GIFTS_CFY_1,
  AD_CURES_MATCH_GIFTS_CFY_1,
  AD_UNRES_MATCH_GIFTS_CFY_1,
  AD_ENDOW_MATCH_GIFTS_CFY_1,
  AD_FACIL_MATCH_GIFTS_CFY_1,
  AD_ATHL_MATCH_GIFTS_CFY_2,
  AD_CURES_MATCH_GIFTS_CFY_2,
  AD_UNRES_MATCH_GIFTS_CFY_2,
  AD_ENDOW_MATCH_GIFTS_CFY_2,
  AD_FACIL_MATCH_GIFTS_CFY_2,
  AD_ATHL_MATCH_GIFTS_CFY_3,
  AD_CURES_MATCH_GIFTS_CFY_3,
  AD_UNRES_MATCH_GIFTS_CFY_3,
  AD_ENDOW_MATCH_GIFTS_CFY_3,
  AD_FACIL_MATCH_GIFTS_CFY_3,
  AD_ATHL_MATCH_GIFTS_CFY_4,
  AD_CURES_MATCH_GIFTS_CFY_4,
  AD_UNRES_MATCH_GIFTS_CFY_4,
  AD_ENDOW_MATCH_GIFTS_CFY_4,
  AD_FACIL_MATCH_GIFTS_CFY_4,
  AD_SPS_ATHL_MATCH_GIFTS_CFY_1,
  AD_SPS_CURES_MATCH_GIFTS_CFY_1,
  AD_SPS_UNRES_MATCH_GIFTS_CFY_1,
  AD_SPS_ENDOW_MATCH_GIFTS_CFY_1,
  AD_SPS_FACIL_MATCH_GIFTS_CFY_1,
  AD_SPS_ATHL_MATCH_GIFTS_CFY_2,
  AD_SPS_CURES_MATCH_GIFTS_CFY_2,
  AD_SPS_UNRES_MATCH_GIFTS_CFY_2,
  AD_SPS_ENDOW_MATCH_GIFTS_CFY_2,
  AD_SPS_FACIL_MATCH_GIFTS_CFY_2,
  AD_SPS_ATHL_MATCH_GIFTS_CFY_3,
  AD_SPS_CURES_MATCH_GIFTS_CFY_3,
  AD_SPS_UNRES_MATCH_GIFTS_CFY_3,
  AD_SPS_ENDOW_MATCH_GIFTS_CFY_3,
  AD_SPS_FACIL_MATCH_GIFTS_CFY_3,
  AD_SPS_ATHL_MATCH_GIFTS_CFY_4,
  AD_SPS_CURES_MATCH_GIFTS_CFY_4,
  AD_SPS_UNRES_MATCH_GIFTS_CFY_4,
  AD_SPS_ENDOW_MATCH_GIFTS_CFY_4,
  AD_SPS_FACIL_MATCH_GIFTS_CFY_4
FROM MATCHING_GIFTSExample if the user clicks on AD_ATHL_MATCH_GIFTS_CFY in the first query, I want the following fields to display (note that these are colums. I would want the actual value of the columns to display):
AD_ATHL_MATCH_GIFTS_CFY_1
AD_ATHL_MATCH_GIFTS_CFY_2
AD_ATHL_MATCH_GIFTS_CFY_3
AD_ATHL_MATCH_GIFTS_CFY_4
or if the user selected AD_SPS_CURES_MATCH_GIFTS_CFY, I want the following to display:
AD_SPS_CURES_MATCH_GIFTS_CFY_1
AD_SPS_CURES_MATCH_GIFTS_CFY_2
AD_SPS_CURES_MATCH_GIFTS_CFY_3
AD_SPS_CURES_MATCH_GIFTS_CFY_4
Any help is appreciated,
Kelly

Hi Kelly,
OK - this is what I've done:
1 - Created two application items through Shared Components:
G_CITY_ID
G_DEPTNO
these will be used to pass CITY_ID and DEPTNO values from the page to application processes using Ajax
2 - Created two application processes through Shared Components, with the following settings:
Process Point: On Demand: Run this application process when requested by a page process
Name: GET_DEPARTMENTS
Type: PL/SQL Anonymous Block
Process Text:
BEGIN
HTP.P('<table class="t17Standard" cellspacing="0" cellpadding="0" border="0" summary="">');
HTP.P('<TR>');
HTP.P('<TH class="t17ReportHeader">DEPTNO</TH>');
HTP.P('<TH class="t17ReportHeader">DNAME</TH>');
HTP.P('</TR>');
FOR x IN (SELECT DEPTNO, DNAME FROM DEPT WHERE CITY_ID = :G_CITY_ID ORDER BY DNAME)
LOOP
HTP.P('<TR>');
HTP.P('<TD class="t17data">' || x.DEPTNO || '</TD>');
HTP.P('<TD class="t17data">' || x.DNAME || '</TD>');
HTP.P('</TR>');
END LOOP;
HTP.P('</table>');
END;This will return a list of departments for a selected CITY_ID value in the report
Process Point: On Demand: Run this application process when requested by a page process
Name: GET_EMPLOYEES
Type: PL/SQL Anonymous Block
Process Text:
BEGIN
HTP.P('<table class="t17Standard" cellspacing="0" cellpadding="0" border="0" summary="">');
HTP.P('<TR>');
HTP.P('<TH class="t17ReportHeader">EMPNO</TH>');
HTP.P('<TH class="t17ReportHeader">ENAME</TH>');
HTP.P('<TH class="t17ReportHeader">SAL</TH>');
HTP.P('<TH class="t17ReportHeader">COMM</TH>');
HTP.P('</TR>');
FOR x IN (SELECT EMPNO, ENAME, TO_CHAR(NVL(SAL,0)) SAL, TO_CHAR(NVL(COMM,0)) COMM FROM EMP WHERE DEPTNO = :G_DEPTNO ORDER BY UPPER(ENAME))
LOOP
HTP.P('<TR>');
HTP.P('<TD class="t17data">' || x.EMPNO || '</TD>');
HTP.P('<TD class="t17data">' || x.ENAME || '</TD>');
HTP.P('<TD class="t17data">' || x.SAL || '</TD>');
HTP.P('<TD class="t17data">' || x.COMM || '</TD>');
HTP.P('</TR>');
END LOOP;
HTP.P('</table>');
END;This will return a list of employees for a selected DEPTNO value in the report
3 - On the report page's HTML Header setting, I have entered:
<script type="text/javascript">
function getEmployees(deptno)
  var d = document.getElementById("DEPTNO_" + deptno);
  if (d.style.display == "none")
    var g = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=GET_EMPLOYEES',0);
    g.add('G_DEPTNO',deptno);
    var gRet = g.get();
    d.innerHTML = gRet;
    d.innerHTML += "";
    d.style.display = "block";
  else
    d.style.display = "none";
function getDepartments(city)
  var d = document.getElementById("CITY_ID_" + city);
  if (d.style.display == "none")
    var g = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=GET_DEPARTMENTS',0);
    g.add('G_CITY_ID',city);
    var gRet = g.get();
    d.innerHTML = gRet;
    d.innerHTML += "";
    d.style.display = "block";
  else
    d.style.display = "none";
</script>These are two javascript functions that will be called when an item is clicked in the report.
Each runs an Ajax call to the appropriate application process, passes the selected DEPTNO or CITY_ID value into the application items, runs the process, retrieves the results and then inserts that into a DIV next to the item in the report and makes that visible. Clicking the link again just hides the DIV
4 - In the report definition, on the DEPTNO column definition, I have set the following HTML Expression:
<a href="#" onclick="getEmployees('#DEPTNO#');">#DEPTNO#</a><div id="DEPTNO_#DEPTNO#" style="display:none"></div>This creates the DEPTNO as a link and clicking the link runs the getEmployees javascript. Next to the link is a DIV tag with a unique ID (created using #DEPTNO# - which is replaced by the actual DEPTNO value on the row)
5 - I have done a similar thing on the CITY_ID setting:
<a href="#" onclick="getDepartments('#CITY_ID#');">#CITY_ID#</a><div id="CITY_ID_#CITY_ID#" style="display:none"></div>And, that should be it - the user clicks the "link", the javascript is called, the clicked value is passed into an application item, which, in turn, filters the required data. This data is formatted into a table and passed back to the page. The javascript then receives this and inserts it into the DIV next to the link and displays it.
I think the CITY_ID column is one that I added to the standard DEPT table, so you may not have that one, but hopefully you get the idea from the above
Also note that I have used the Theme 17 Standard report template - you will need to adjust the class names in the application processes if you are using a different theme/template
I hope that all makes sense!
Andy

Similar Messages

  • Calendar with Drill Down Report

    Hello,
    Everybody.
    I am new to Application Express.
    Please any one tell me step by step how to make calendar with drill down report.
    Waiting for valuable reply.
    Thanks
    Rahul

    Not sure if this is what you wanted, but I have links on a calendar, and when you click them, it branches to another page with details about the event.
    To do this, create a calendar region. The SQL statement should have at least 2 columns: The date of the "event", and the text to display as a link. You should also choose a primary key that you want to pass to the drill down report when the user clicks. Something like this:
    select hiredate date_scheduled,
              ename display_column,
              empno
       from empIn the calendar attributes of that region, there is a place to designate which column is the date, and which should be displayed. Go down a little further and set the column link. Put the page you want to show the drilldown report on, and set any variables you need to.
    Hopefully that helped. Its pretty simple once you play around with it - start simple and then once you get the hang of it, make it more complex.

  • Parameter Problem with Drill down reports

    Hi,
    I have created a drill down report.
    I have a master report which list all the employee names and a detail report which list the contact details for each employee selected.
    The URL looks like this http://webser/dev60cgi/rwcgi60.exe?detail&p_empid = 1200
    detail is a kepmapping entry in cgicmd
    this does not work and the detail report does not get the p_empid value.
    Now if i enter the compelete url like http://webser/dev60cgi/rwcgi60.exe?server=rep_ss&report=det.rdf......
    it works.
    Any suggestions !
    Thanks,
    Shailesh
    null

    Hi,
    I got this resolved by using javascript and doing explicit form submit. As our information is highly secured we don't want the users to see any of the URL links from href, browser or from view source.
    I got the first two resolved but when i do a view source i could se in header sections of html view souce the follwing code
    <head>
    < base href="http://webser.../522222.htm>
    </head>
    is there any way using reports i can hide this.
    Any help, suggestions or reference will be highly apprecaited.
    Thanks,
    Shailesh
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by the oracle reports team:
    hello,
    did you specify the token %* in the CGICMD.DAT file so additional parameters are picked up from the URL ?
    regards,
    the oracle reports team<HR></BLOCKQUOTE>
    null

  • Problem with Drill down reports demo

    Hi,
    Did somebody successfully installed the
    drill down demo. I am not able to get the results here getting some javascript error
    "object expected".
    I have created a schema,
    also the cgicmd.dat report variables
    attahced the rep_util file.
    I could see the invoices report and the product link displays
    javascript:opendetailwin('http:/myserver/dev60cgi/rwcgi60.exe?item+101863')
    when i clik on the above link i get object expected error.
    The Javascript on view source page looks like this
    <script language="JavaScript">
    <!--
    var detailwin = null;
    function opendetailwin(urltopen)
    detailwin = window.open(urltopen,"ItemDetails",
    "width=650,height=535,resizable=yes,status=no,menubar=no,scrollbars=yes,toolbar=no")
    detailwin.location.href=urltopen;
    // -->
    </SCRIPT>
    any help will be higly appreciated. Also is there any other way of implementing drill down reports on web.
    Thanks in advance,
    Shailesh

    Hello,
    Try making your hyperlink in the master report look like this:
    http://webserver/dev60cgi/rwcgi60.exe?detail+p_contactid=&<contact_id1>
    The &<column_name> reference in a hyperlink will tell Reports to substitute the current value of that column in the resultant string.
    Regards,
    The Oracle Reports Team --skw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Image map & Drill Down Reports in Apex

    Hi,
    I am looking to create a Image map with drill down reports. I don't know Java but know PL/SQL functions/procedures very well. I would appreciate if someone help me with this.
    I am looking following functionality:
    1. Upload an image in Apex
    2. Create click-able areas in it.
    3. User click on these hyperlinks and move to next page with drill down report as per the vaiable in hyperlinks
    Wajid

    Try viewing this blog entry to see how to do image maps in APEX..
    http://www.danielmcghan.us/2009/05/html-image-maps-old-trick-with-new.html
    Thank you,
    Tony Miller
    Webster, TX

  • Drill-down Report, Form not completely showed in Report

    Hiya!!
    I'm working with Drill-down Report. Im creating a kind of P&L report but it has a lot of lines because I need to create one P&L report for every Region (Profit Center Group), and I need it in a fixed form.
    The problem I have is that my Form has approximately 1080 lines but when I execute the Report (Tx FXI0), the Report just show 1020 lines and I don't have any error message. The output type I have choosen is graphical Report output "106 Navigation control, detail list" by now, but I already tried with all the possiblilities there are (Tx FXI2).
    Does anybody knows If there is any limit for the output? If not, does anybody know where do I have the problem?
    Thanks in advance.
    Regards.
    Adela Cambiasso

    You can use the drill down strategy, well described by my friend Kan:
    http://bipconsulting.blogspot.com/2010/02/drill-down-to-detail-or-another-report.html
    regards
    Jorge
    p.s If this answers your question then please grant the points and close the thread

  • Exporting a Report to a pdf file with drill down!

    Hi,
    I would like to export a Report to a pdf file.
    My Report includes drill down options. I require the exported pdf with drill down options.
    (Similar to Navigation options in a PDF file).
    I hope this makes sense.
    Please provide a better solution for me.
    If am not wrong, this facility is not available with Crystal Reports!!!
    Thanks,
    Ramesh.

    Hi Ramesh
    You can download the trial versions of the Crystal Report from the following link:
    https://websmp202.sap-ag.de/support (Please copy the link and paste it to your web browser).
    You can get the license by putting a request in the follwoing link:
    https://websmp202.sap-ag.de/support(Click on Request License key under Service Corner).
    Hope it helps.
    Regards
    Sourashree Ghosh

  • Having trouble with Tiscali/TalkTalk site when accessed with 'FireFox', can't 'reply' to emails or report 'spam', other functions seem ok

    Having trouble with Tiscali/TalkTalk site when accessed with 'FireFox',
    can't 'reply' to emails or report 'spam', other functions seem ok
    == This happened ==
    Every time Firefox opened
    == On/Off few months now all time

    Try deleting cookies and cache:
    1. Tools| Clear recent history
    2. Time range to clear: Everything
    3. If it isn't already selected, select '''Cookies''' and '''Cache'''
    4. '''Clear now'''
    <u>Check cookie exceptions</u>
    1. Tools | Options | Privacy Panel
    2. Set '''Firefox will: Use custom settings for history''' Insure Accept cookies for sites and accept third-party cookies is selected
    3. Click '''Exceptions'''. If the misbehaving site is in that list, select it and click '''Remove site'''
    Also see [[Updating Firefox]]

  • I'm having trouble with my sound up and sound down keys. They're doing other functions. This is only a new thing.

    I'm having trouble with my 'sound up' and 'sound down' keys. They're doing other functions. This is only a relatively new thing.

    You didn't mention what those "other functions" were.  That might help!
    First thing to check is System Preferences > Keyboard > Keyboard tab - make sure "Use all F1, F2, etc. keys as standard function keys" is un-checked.  Hopefully that still works in Mountain Lion.

  • I'm having trouble with my applications freezing.  Then when they are "unreponsive" I quit and another becomes "unresponsive" until I'm down to Finder and it won't relaunch.  HELP!!

    I'm having trouble with my applications freezing.  Then I force-quit because they are "unresponsive,"  another applidation becomes "unresponsive" until I'm down to Finder and it won't relaunch.  HELP!!

    Mine is doing the same thing!  I have more than enough hard drive.  It's only 3 months old.

  • I am having trouble with the coloured spinning wheel showing up with everything I try and do...My Mac mini has also slowed way down... any help out there would be appreciated...

    I am having trouble with the coloured spinning wheel showing up with everything I try and do...My Mac mini has also slowed way down... any help out there would be appreciated...

    I am having trouble with the coloured spinning wheel showing up with everything I try and do...My Mac mini has also slowed way down... any help out there would be appreciated...

  • Having trouble with music apps shutting down, even after I swipe them off the screen. They go off then come back on in a few minutes. This happens in my car either ubs plugged in, or bluetooth. ANy one else have that issue?

    Having trouble with music apps shutting down, even after I swipe them off the screen. They go off then come back on in a few minutes. This happens in my car either ubs plugged in, or bluetooth. ANy one else have that issue?

    Hi, beth.lau.gr.
    Thank you for visiting Apple Support Communities.  
    I understand you have been experiencing issues with your iPhone restarting and showing you a blue screen.  I wont be able to give you an exact answer as to why this is happening.  However, this is the most relevant troubleshooting article for this issue.  This article also provides options to reach out to us via phone for additional assistance.  
    If your iOS device restarts, displays the Apple logo, or powers off while you're using it
    http://support.apple.com/en-us/HT203899
    Cheers, 
    Jason H.  

  • Having trouble with variables followed by a period in user defined reports.

    Using SQL Developer 1.0.0.15 on XP.
    The DB is Oracle 10.
    Having trouble with variables followed by a period in user defined reports.
    select * from &OWNER.TABLE_NAME
    I noticed that the "Data Dictionary Reports" use :OWNER
    So I have tried all sort of variations:
    select * from :OWNER.TABLE_NAME
    select * from :OWNER\.TABLE_NAME
    select * from ":OWNER".TABLE_NAME
    select * from ':OWNER'.TABLE_NAME
    select * from (:OWNER).TABLE_NAME
    And every other variation I can think of. This is a simple example, but all my reports need the owner of tables as a variable.
    I assume this is simple, I just have not hit the right combination.
    Thanks -
    Dyer

    Use two points ..
    select * from &OWNER..TABLE_NAME

  • Drill down Report with Prompts

    I need to create a simple dashboard report in OBIEE analytics, which takes user inputs ( prompts )  for a YEAR , STATE ( & hierarchy) and displays Population
    State Hierarchy is ---> State -- City --Zip code
    Format of report is simple
    User Input    ( Section 1 )
    Year =  Year123   (  Mandatory)
    State = State 1  ( Optional )is
    City = City1 ( Optional )    ( State will be  mandatory as this drop down gets populated from State value
    Population Report  ( This should be initial view with a given Year input and any othe optional ones )                        Section 2
    Sate
    Population
         +State 1
    323222
         +State 2
    4343434
    And drill down on State should be feasible
    Questions & Issues I am facing
    1  Do i have to create a dimensional hierarchy  Column at Presentation layer to enbale drill down  . I have the related data  in 2 dimension tables ( Time  &  Region ) and the relation in Population Fact table
    2 )  If yes , how do i pass  user prompts to this report ... I was able to do using selection step  for the state ..But not able to pass the City and Year
    3 ) Year is not part of Report Display ..but an input ..How do i use the prompt for it .
    i was able to get the report in simple table format ( no drill down ) , with prompts using isPrompted ..But i am lost with the Dimensional Hierarchy + Prompt .
    4 )Is Dimensional Hierarchy needed for Drill Down  ? How do i pass all the user inputs ( as above )  to it
    Please suggest if there is any alternative

    The problem is with drill down . We need two types of drill down action link . One for 'All' to show all values and another is for 'Y','N' values. I can use go url for this scenario however, I am using chart and the column is a measure, I cannot make the data type html otherwise chart will be blank. I cannot use condition in the first drill down as it does not show 'All' values from union. only 'Y','N' .

  • Drill down report on Oracle R-Enterprise with OBIEE 11g

    Greeting Guru
    I see the demo that OBIEE can use the png graphic file produced by R.
    Is it possible to produce drill down report that way ?
    We are doing statistical analysis and we would like to do a drill down with some of our data visualization results.
    Is there demo/example code ??
    Thanks for the help

    http://www.oracle.com/technetwork/database/options/advanced-analytics/r-enterprise/ore-trng5-operatnlzgrscripts-1501640.…
    The link above shows a graphic generated by R got embedded in OBIEE11g dashboard
    e.g. on presentation p.42 there is a graphic of flight delays by airport.  top 36 busiest airport
    Is it possible that with a double clicks of  JFK, it opens up another reports that is related to JFK let say group it by different airline provider of group by different flight destination for the delay reports.

Maybe you are looking for

  • Dá prá instalar um aplicativo no Firefox OS a partir de um arquivo?

    Temos a opção de instalar aplicativos a partir de um arquivo em outras plataformas como por exemplo o Android (apk), WindowsPhone (xap) e Symbian (sis). É possível fazer isso a partir do Firefox OS? Outro detalhe, considerando que os aplicativos para

  • Error in Abap Application Program

    I am getting following dump . The current ABAP program SAPMSSY1 had to be terminated because it has come across a statement that unfortunately not executed. Error analysis: An RFC call (Remote Function Call) was sent with the invalid user ID "JLIANG

  • Data fetch from live cache

    How can I retrieve data from live cache?This is in Demand Planning : SCM APO. Please suggest ways. Thanks & Regards, Savitha

  • Multiplexer in LabVIEW 8.0

    Guten Tag. Kann mir jemand sagen ob, und wenn ja, wo es in LabVIEW 8.0 einen Multiplexer gibt der in seiner Kanalzahl variabel ist? Ich möchte damit einen digitalen Ausgangsport schalten dem ich nacheinander verschiedene Daten übergebe. Oder gibt es

  • I Clicked Icon On Desktop But Will Not Open Firefox!! 4.0

    I Have Uninstalled And Installed 4.0 Several Times But Will Not Do Anything When I Click Icon In Desk Top!