PL/SQL Interactive Report issues - Piped function or Collections

Hi,
I have a report where I either want to limit the return by date or return all. PL/SQL didn't work in the Interactive Report (is it available in 3.2?) then my second idea (2 reports; one for each option) didn't work as you can't have more than one IR on a page. Searching here I found people guiding others to here for collections and here for piped functions.
Ok I finally understood the collections thing (didn't realise that "function_returning_query" would be replaced with your code) but I'm not sure it can be used in my situation? I want it to be dependent upon a LOV on the page with my predicted code like:DECLARE
q VARCHAR2(30000);
BEGIN
q := 'select UPD_ID, PROJECT,DATABASE,REF,DESCRIP,STATUS,PERSON,
TO_CHAR(INS_DATE, ''HH24:MI DD-MON-YY'') AS INS_DATE
from TBL_ENV_LOG';
IF :P5_DAYS != 1337 THEN
q := q || ' where TBL_ENV_LOG.INS_DATE >= TO_TIMESTAMP(SYSDATE - :P5_DAYS)';
END IF;
q := q || ' order by TBL_ENV_LOG.INS_DATE desc';
return(q);
END;So the value of :P5_DAYS would need to go there somehow, can it be passed as a parameter?
Is there another way to do this? Making lots of hidden fields is annoying :/
Edit: I used a CASE statement for a column before, could I use that for entire queries?
Mike
Edited by: Dird on Oct 14, 2009 10:45 AM

Hi,
CREATE OR REPLACE FUNCTION BLOG_FUNC RETURN VARCHAR2 IS
q VARCHAR2(30000);
BEGIN
q := 'select UPD_ID, PROJECT,DATABASE,REF,DESCRIP,STATUS,PERSON,
TO_CHAR(INS_DATE, ''HH24:MI DD-MON-YY'') AS INS_DATE
from TBL_ENV_LOG';
IF :P5_DAYS != 1337 THEN
q := q || ' where TBL_ENV_LOG.INS_DATE >= TO_TIMESTAMP(SYSDATE -' || :P5_RAD|| ')';
END IF;
q := q || ' order by TBL_ENV_LOG.INS_DATE desc';
return(q);
END;Error at line 8: PLS-00049: bad bind variable 'P5_RAD'
I assume I need to pass parameter values like P5_RAD but how do I relate it to:Select *
From apex_collections
Where collection_name = ‘IR_TEST’;
is it...
Select *
From apex_collections(:P5_RAD)
Where collection_name = ‘IR_TEST’;
??Edit: The IR query changes to BLOG_FUNC(:P5_RAD) right?
Edit 2: Nope that doesn't work :/
Mike
Edited by: Dird on Oct 15, 2009 8:35 AM
Edited by: Dird on Oct 15, 2009 8:38 AM

Similar Messages

  • Interactive report Group By functions support Number

    Dear All,
    I developed an interactive report that retrives its data from a package. Now i want to use a group by and use Max function.Since my columns' types are STRING, I cant use Max function.Does anyone know any solution for that?
    MAny thanks in advance.
    Best regards,
    Zahra

    john2013 wrote:
    Anybody installed the latest APEX? i believe it's 4.2.3.
    You can find out for yourself by requesting a workspace on apex.oracle.com, which always runs the latest production release.
    Could you please tell me
    is the limitation for interactive report "group by" action increased?  (3 columns max for my 4.2 version)
    No. Patch releases like 4.2.3 are never likely to include significant changes in functionality. They only provide bug fixes.
    I consider this is a major drawback...
    Interactive reports follow the 80/20 rule. They satisfy 80% of the requirements of 80% of users 80% of the time. If your requirements fall into any of the remaining 20% categories then you have to build something yourself. APEX is a development tool after all...

  • Interactive Report issue ( hw to come 5th list to back 2nd list directly )

    Hi Experts,
                      I have one issue regarding Interactive report.
    -->  I am in 5th list , and i want go directly to the 2nd list .
    --> Hw we select multiple line of data in one list and pass to another list.
    Helpful answers will reward.
    Regards,
    Vinai.

    JUST HARD CODE
    SY-LSIND = 2. IN YOUR FN CODE WHERE YOU HAVE TO GO.
    i.e.
    if sy-ucomm = 'BACK' and Sy-lsind = 5.
    sy-lsind = 2.
    endif.
    regards
    shiba dutta

  • Interactive Reporting issue on Windows Server 64 Bit

    Hi All,
    I am facing on Interactive reporting couldn't run on workspace, here are my Hyperion enviroment.
    1. Hyperion version 11.1.2.1
    2. All Hyperion component are running on Windows Server 2008 64 Bit
    3. Installed Essbase client on the server that Workspace running.
    Do you have any solution on this? Could you please help me on this issue?
    Regards,
    Nick

    Hi All,
    I am facing on Interactive reporting couldn't run on workspace, here are my Hyperion enviroment.
    1. Hyperion version 11.1.2.1
    2. All Hyperion component are running on Windows Server 2008 64 Bit
    3. Installed Essbase client on the server that Workspace running.
    Do you have any solution on this? Could you please help me on this issue?
    Regards,
    Nick

  • Interactive Report, issue with backgroud color of Column Heading.

    Hi,
    I am using Theme -16
    and there is a Interactive Report with the following columns Headings
    Employee Name   Employee No  DOB
    Now, the label of the first column is changed from Employee Name to Employee<br>name.
    The column heading is now displayed as follows.
    Employee   Employee No   DOB
    Name         problem is when I add a break in any of the column heading..the background color of the column headings is different than the first one (little bit darker).
    Why the background ground of the column heading is different in both these cases??.
    Thanks,
    Deepak

    Why the background ground of the column heading is different in both these cases??.The report heading background is controlled by the CSS rule
    .apexir_WORKSHEET_DATA th {
      background: #4e4e4e;
      font-weight: bold;
      color: #fff;
      border-top: 1px #ccc solid;
      border-bottom: 1px #aaa solid;
      white-space: nowrap;
      vertical-align: center;
      letter-spacing: 1;
      font-size: 8pt;
      background-image: url(../ws/report_bg.gif);
      background-repeat: repeat-x;
    }This uses a [gradient image|http://apex.oracle.com/i/ws/report_bg.gif] that is repeated horizontally to provide a shaded background from light to dark grey. As the background image doesn't repeat vertically, when the height of the heading is more than the height of the image the gradient is replaced by the underlying background colour (#4e4e4e). This is what's happening when the break is inserted into the header text: the height of the heading increases, causing more of the darker area of the background image/underlying colour to be visible.

  • Interactive report : issue with french special characters

    Hi,
    We have many interactive reports and we can't use any french special characters in the filter clauses. For example, Montréal becomes montréal.
    What parameters do we have to change to make it work?
    Thanks.

    I found the answer in this thread : Interactive Report Character Set Issue

  • Interactive Report Issue - Control Brake for Group By

    Hi all,
    is it possible to create "Control Brake" for the Group By view of the interactive report?
    I have the following IR with group by (Take a look at the GROUP BY View!!!): https://apex.oracle.com/pls/otn/f?p=2071:212
    Now I would like disable the lines with repetitive values. The report should be the following:
    CPU Type    CPU Speed    Count (CPU Types)
    ==========  =========    =================
    Celeron           366                    1
    Pentium I         100                    1
                      166                    1
                      200                    2
                     1200                    1
                     1700                    1
    Pentium II        366                    1
                      667                    1
    .Is it possible to realize it with interactive reports?
    Regards

    S-Max wrote:
    Perhaps any way using Javascript, jQuery, and s.o?
    Any Ideas?Use a standard report with break formatting or a custom row template.

  • Interactive Reports Issue Quality System

    Hi experts,
    This is regarding Interactive reporting fucntionality available in SAP CRM 7.0
    I have configured this fucntionality in our DEV environment & actually created the various types of reports by assigning 10 custom fields which have z extensions.
    Now, i have transported every custom field to Quality System but while creating a report, & while selecting the fields, i am unable to see those custom fields which i use to see in DEV box. I can only see the standard field
    I would appreciate if someone can suggest or give some solution on this in order to fix in our Quality box.
    Thanks & Regards,

    >
    SAPRPT wrote:
    > Now, i have transported every custom field to Quality System but while creating a report, & while selecting the fields, i am unable to see those custom fields which i use to see in DEV box. I can only see the standard field
    Hi!
    Provided you created the extension fields with the Application Enhancement Tool, you will have to transport the enhancement into your target system first. Then generate it locally with report AXT_EXT_ACTIVATE_LOCAL.
    Regards,
    Sven Kriebel

  • Interactive report issue

    Hello,
    I have develop an APEX intereactive report but by default, the report does not display anything. In Order to display contents, I explicitly have to go to search bar, click on select columns and then display all columns to display it.
    How can I by default, display entire content as soon as the page is run?
    Thanks,
    R

    Hi,
    This generally happens if you change the query after creating interactive report.
    1) Select all the columns which u want to display , then click on the menu and select SAVE REPORT and save as default.
    2) Copy the interactive report query.. delete the current report and re-create.
    Regards,
    Shijesh

  • Cascading Interactive Reports - issues

    Hello,
    i am trying to make Cascading IRs, because i need master-detail table/table UI for some of my pages. I found this previous thread :
    Re: Cascading interactive reports
    and i am following the advices of Hari_639. I have made the detail IR/form pages and also the master IR. Now in Link Column of the master, that should target the IR of the detail, it says "pass the FK and PK" values. But there are no items brought if press the Find Item of Name1 and Name2 button, since this is an IR and not a Form. Any idea how to do this ?
    TIA

    Hello,
    atm i have managed to create the detail IR below the master IR and succeeded in synchronizing them by using the "edit" link in the master IR.
    http://i48.tinypic.com/2ed8cj4.jpg
    What i would like to do now is:
    1. The detail IR, although in Printer Friendly mode, still displays the elements that i have in Page 0 (logos etc). How do i hide/not display these elements also ?
    2. The detal IR, does have an edit link too. This edit link redirects to the edit page (Form) of the detail item. That page though is displayed in that Frame. Is it
    possible to display that page without the master IR (as if the IR was not master detail) and return to master after cancel/save ?
    3. The master IR does have pagination. So, when i navigate to next set of records the master is updated but not the detail. Is it possible to achieve this and
    detail displays the records that correspond to first record in master displayed ?
    TIA

  • Hyperion Interactive Reports issue

    Hi,
    We have designed an IR report with Scenario, Version, Currency, Period and Year will be selectable from drop down and the grid will contain Account and Entity dimensions. The query result is showing correct but, in the dashboard, we can not see the version members in the drop down list. One member is selected for all other dimenaions, but not for the Version dimension. Please advise how this issue can be resolved.
    Thanks.

    Hi,
    I have changed the order of the distribution list and waiting for a confirmation from the users but we are having a new issue.
    One of the scheduled job is not sending out the emails to anyone. I tried to run the report manually and it runs perfectly. Right now we are exporting the file in the format 'Microsoft Office Web Archive.'
    The scheduler was running perfectly untill 5/18 but didnt sendout after 5/18. I have ran report manually and exported as Web Archive and observed that the file size is 17MB. I have checked the previous outputs and all were under 11MB from the time since it was scheduled.
    I suspect this is because of the file size. I have also did a trail run by changing the export option from Web Archive to Excel and it did send out the report and excel file size was 3MB.
    Any ideas on this limitation? We are on version 11.1.2.1.
    .

  • Interactive Reporting Issue

    We are changing the table definition, lets say a column name. And that column is referenced in a BQY. Is there a way that we can identify that changing a table definition impacts which BQY's

    I am not 100% sure but there is a utility called Impact management.You should check the documentation for the same.

  • Interactive report from PL/SQL function

    Hello All,
    i have a pl/sql function that dynamically builds up a sql query and returns it as a varchar2.
    when i create a new report then i can use this function in the report like
    return f_function(param1,param2,v('APP_ID'), v('APP_SESSION'));
    and this works fine.
    Except i cannot create an interactive report for this function, because it is not allowed !!!!
    So how can i use the function in an interactive report ?
    Thanks in advance,
    Marco

    Marco,
    Another rather extreme approach would be to go all the way and make your function pipelined (that is not only build but also execute the query) and then select from it in your interactive report.
    The disadvantage here would be that any supplementary filtering would act on the result set of the function (not as an addition to the where clause of the original query). But if you can live with that...
    The advantage would be that there's less fiddling with column headers.
    Regards,
    Iulian

  • Question on Interactive Report feature sorting

    Hi,
    I have about over 10,000 records and used the interactive report feature on Apex. For some reason, on the timestamp column, I tried to resort in the latest date and it only shows the latest date of last year and didn't show the latest date of 2010. I tried changing the timestamp column to sort by descending, and it doesn't show any latest date in 2010, only 2009.
    Could this be an issue with the interactive report issue.
    Thanks,
    Michael

    Hi,
    If you have default 10,000 row limit in interactive report , sorting work only for that record set.
    Increase rows that report show, or you can use ORDER BY in report select to get e.g. 10,000 latest row.
    Br,Jari

  • Interactive Reporting since EHP3

    We've recently upgraded to Ehp3 and some interactive reports are not function returning errors such as the list below when you try and run them (the example below is for open activities report), other reports such as the Campaign effectiveness report work correctly and produce results.
    Checks in ORDYWB and /CRMBW/CONFIG_WIZARD appear OK. Presumably as some of the reports are working we shouldn't be too far from getting them all to work - can anyone make some suggestions of what to check next?
    Thanks
    David
    System error: Type conflict during a function module call (field
    Messages for DataSource /CRMBW/OLTP_ACTIVITY from source system CRDCLNT100
    System error: The ASSERT condition was violated.
    Details Error reading the data of InfoProvider /CRMBW/CSAL_C01
    Details Error while reading data; navigation is possible
    Online analytical processing; query execution aborted
    Messages for DataSource /CRMBW/ACT_STATUSC_TEXT from source system

    Hi David,
    Type conflict dump at function call is due to difference in data type of a parameter between what system is expecting and what is actually passed. Since you have had an upgrade, please check -
    1. Whether the dictionary object causing dump was captured and adjusted using SPDD or not. May be it was missed
    2. If a Z type then whether it was changed.
    Simply check the data type of the field causing dump. It must be same as what your FM is expecting.
    Cheers
    Niraj

Maybe you are looking for

  • Second battery does not report status correct - probably BIOS bug

    Hi, I have a T61 laptop and recently bought a second battery (for the CD drive slot). The problem is, the status of the second battery is not properly reported. Sometimes it doesn't show the status (charging, discharging etc.), sometimes even not the

  • SBR for RADIUS Authentication

    Hi Everyone, Does anybody know if Steel Belt Radius would be able to authenticate both the telnet and enable passwords for RADIUS authentication? I have tried IAS, but apparently IAS does not have any understanding of the enable password and therefor

  • DnD JButton from JToolBar

    Hello, Can some one help me with source code for Drag n Drop of JButton(contains an image) from JToolBar to JPanel within the same JApplet please? Its Urgent Thanks

  • Is it possible to create a 2-page spread in Pages?

    Hi All, I've been tasked with creating a newsletter for a local non-profit. It is 11 pages in length, and I created it using Pages. However, now that I think about it, the printer will probably need the file in layout form - that is, exactly as it sh

  • How to stop junk mail entering my email

    How do I stop junk email from entering my email?