Date Range Interactive report

I have an interactive report
I want to include
where dte between to_date(:p38_from_date,'mm/dd/yyyy') and to_date(:p38_to_date,'mm/dd/yyyy')
I have 2 date pickers and they both format 'mm/dd/yyyy' I can not get this to work
Above what I am doing here is i want to include a NVL on each date parameter in the SQL statement.
nvl(:p38_from_date, '01/01/2009') and '12/31/2050'
I have looked at this forum extensively and I may be a little thick when it comes to dates in apex.

I've had something similar and found it was a problem with the date strings. In my case, I wasn't handling a month that didn't have a leading zero properly, so it was an easy fix.
Another thought is, what if you put a SELECT * FROM () around your UNIONed query and did the field comparison on the outer field? I'm guessing something's messing up in one of the UNIONed SELECTs.
Feuerstein had sample code for taking in a string that supposedly held a date and matching it to multiple possible format strings, returning a date. Maybe you could try that?
Good luck,
Stew

Similar Messages

  • Download data from interactive report

    Hi all. I'm on apex 3.1.1.00.09.
    I have this problem: when I download data from interactive report I can download only in CSV and PDF. If I try to download into pdf it creates a file of only 1 KB.
    I would know if I must configure my apex in order to download correctly in pdf and if I must configure it in order to download in doc and xls format.
    Thanks all for collaboration,
    Fabrizio

    Thank you for your reply.
    I am able to download the csv file, but my problem is: I don't want the column headings to show.
    Is it possible to download only the data, not the column headings?

  • Automatically delete row data on interactive report

    Hi All,
    I would like to know it's possible to automatically delete row data on interactive report when the check box is checked.
    I'm appreciating if you all can share your opinion or solution.
    Thanks a lot in advance!
    Best regards,
    Liz

    Hi,
    Why you like have checkbox ?
    Is it more clear for user have image/button like my example ?
    This is just example you need modify according your needs. Example do not have confirmation dialog.
    Page HTML header
    <script>
    function delIRRow(p_pk_val){
    var a = new htmldb_Get(null,null,'APPLICATION_PROCESS=DELETE_ROW');
    a.addParam('x01',p_pk_val);
    var r=a.get();
    if(!r=='1'){alert('Delete operation failed!');}else{gReport.search('SEARCH');}
    </script>On Demand process DELETE_ROW
    BEGIN
    delete from your_table where pk_col = APEX_APPLICATION.G_x01;
    htp.p('1');
    EXCEPTION WHEN OTHERS THEN
    htp.p('0');
    END;Change your_table and pk_col according your table name and pk column name.
    Call javascript from image/button (IR column link) or checkbox, and send primary key value as parametter
    Br,Jari
    Edited by: jarola on Jul 5, 2010 11:58 AM

  • How to achieve the from and to date range in report builder 3.

    I AM TRYING TO CREATE ONE REPORT FROM REPORT BUILDER 3.
    WHERE I AM UNABLE TO DEFINE THE DATE RANGE.
    HOW TO ACHIEVE THE DATE RANGE IN REPORT BUILDER.
    NEED FROM DATE AND TO DATE FILTER IN REPORT BUILDER FOR PK DATE.

    Hi Ganesh,
    According to your description, you create a report in Report Builder 3.0, and create two parameters FromDate and EndDate, now you want to use the parameters in your MDX query, right?
    If in this case, here is a sample query for your reference.
    select
    {[Measures].[Internet Sales Amount]
    } on columns,
    {[Date].[Date].members} on rows
    from(
    select
    STRTOMEMBER("[Date].[Date].&["+@StartDate+"]"):STRTOMEMBER("[Date].[Date].&["+@EndDate+"]")
    ) on columns
    from [Adventure Works]
    Reference:STRTOMEMBER
    Regards,
    Charlie Liao
    TechNet Community Support

  • Problem with DATE in Interactive Report

    Hello,
    In Interactive Report when I click on the header of any column with DATE datatype, nothing happens due to Javascript error:
    Line: 2
    Char: 14838
    Error: Expected identifier, string or number
    Code: 0
    Click on any other column works perfectly as well as sorting by DATE column from Action Menu.
    I tried to set different format masks for my DATE column and for Application Date Format, but it didn't help.
    Finally I found out that this error disappeared when in properties of my DATE column in "List of Values" section I set "Report Filter Date Ranges" = 'Past' instead of 'All'. In this case I get the list with values "Last 5 Years", "Last 2 Years", etc, but not with "Next Hour", "Next 2 Hours", etc...
    Can someone help me on this issue, because this functionality might be usefull and also it's not very convinient to change this property for all date columns in all Interactive Report.
    By the way, my database version is 9.2.0.5 - maybe it can cause such problem?
    Best regards,
    Vladimir

    Hi Marco,
    1) French Canada (fr-ca)
    2) This filter works
    More informations about the error when I call the function gReport.controls.widget():
    &lth;div id="apexir_DT" style="text-align: center;" onclick="gReport.controls.widget(this.id)"&gth;Date de naissance&lth;/div&gth;
    *************POST*************
    flowid     48579
    p_flow_step_id     5
    p_instance     1412541985987586
    p_request     APXWGT
    p_widget_action     SORT_WIDGET
    p_widget_mod     CONTROL
    p_widget_name     worksheet
    x01     5775894815382747091
    x02     5775899227924757464
    x03     apexir_DT
    *************RESPONSE*************
    {"dialog":{"id":"1966481623126322611","hide":["apexir_info","apexir_computation"],"coltype":"DATE","filter"
    :false,"uv":true,{"dialog":{"uv":true,"row":[{"V":"Failure<br />ORA-20001: get_dbms_sql_cursor error
    ORA-00923: FROM keyword not found where expected"}]}}
    Louis-Guillaume
    Homepage: http://www.insum.ca
    Blog: http://insum-apex.blogspot.com

  • Subscriptions - prevent from sending when no data in interactive report?

    Hello,
    I am wondering if it is possible to prevent a notification from being sent if there is no data in the interactive report on the day specified in the subscription?
    eg. I receive a private report Isabelle's Open Issues every Friday, but last Friday there were no open issues.
    We have another request for a weekly subscription but the requirement is that the report should only be sent when there are open issues.
    Thank you for advising.
    Kind regards,
    Isabelle Fallon

    I think there is no condition like that.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • How to display data in interactive report column without colons (:)

    Dear Apex gurus,
    I'm a newbie and have just created an Apex application from a spreadsheet. I've created a named list of values and used it in a checkbox against a field in the default page 3 Create form.
    When I've selected multiple values in my check box in the form, the data in the interactive report appears as one line with colons separating the selected values like this: Dog:Cat:Bird
    What I would like is to have the data appear in the interactive report column as a multi-line list like this:
    Dog
    Cat
    Bird
    I can work around this by modifying the SQL code in the Region Source of the Region Definition of the report (Default Page 1 interactive report) to replace the colons with <br>
    SELECT replace("PETS_CHOSEN",':','<br>') "PETS_CHOSEN", FROM "MYAPP" Note: this doesn't format properly in the posting. I replace the colon with a html br
    This works, but seems to be a hack to me. I am guessing that I've missed a simple option setting somewhere, but I can't find it.
    The other problem with this solution is that when I export the report to Excel, what is exported is Dog<br>Cat<br>Bird, which is seems worse than colons.
    Thanks,
    - Morgan
    Edited by: mnrussel on 16-Feb-2009 04:13

    Hi Morgan,
    I think you have at least two choices:
    1 - Replace the colons with ', ' (comma and space) - sort of reasonable on screen and in an export
    2 - Create a second page that has the same report but uses the "export: csv" template. Create a manual link to this page to replace the standard Export link. When such report pages are requested, they download immediately instead of displaying. You can, therefore, use commas in this one and &lt;br&gt; tags in the on-screen report version
    Andy
    ps - To display tags in a post, use &amp;lt; for &lt; and &amp;gt; for &gt;

  • How to get .oce to talk to DAS & bring back data in Interactive Reporting?

    Hi Hyperion Experts,
    This is also a fairly basic question, I use Hyperion 9.3.1 and I have Shared Services, Workspace and Interactive Reporting Studio running on our Windows 2003 Server.
    My goal is to import a .bqy document I created in Interactive Reporting Studio into workspace, and be able to click on the "refresh" button and see it refreshes the data from the backend Oracle 10g database.
    I have completed the following steps so far,
    1. I have created a DSN. This DSN, named "Oracle 10g Data Source", when I clicked on "Test Connection" button, It ran successfully.
    2. I have created a new Datasource entry in the DAS service. If I double click on the newly created Datasource entry, the screen would display the following details.
    Connectivity Type = Oracle Net
    Database Type = Oracle
    Enter the name of the Data source = Oracle 10g Data Source
    Select the name of the Data source (it is grayed out, nothing selected)
    Server/File (it is grayed out, nothing entered)
    then, followed by some default connection parameters.
    3. I have created a "Oracle 10g Data Source.oce" file using the Interactive Reporting Studio. I saved the .oce file at
    C:\Hyperion\BIPlus\data\Open Catalog Extensions\Oracle 10g Data Source.oce
    4. I created a new constrProj_Oracle10gOCE.bqy, during the creation, I chose
    "Create a new document with Recent Database Connection File" option, then I chose the Oracle 10g Data Source.oce that I have created in step 3. After I log in with host user/password, I have created a data model and I see that it brings back a data set when I clicked on the "process" button. I saved this .bqy document.
    5.
    I imported the Oracle 10g Data Source.oce and constrProj_Oracle10gOCE.bqy into the workspace under a folder called
    Root/MYBI/Test
    6. I right click on the constrProj_Oracle10gOCE.bqy document, and chose "Open". It opened with Results section highlighted on the left hand side, and with data showing on the right hand side. However, when I clicked on the "refresh" button, I'd get a message box with a red X. It says,
    An Interactive Reporting Service error has occurred -
    Failed to acquire requested service.
    (2001)
    I guess the data I see in this constrProj_Oracle10gOCE.bqy was just the cached data that was brought back when I hit the process button of this .bqy when it was first created in the Studio, and that it never established any connection via the DAS service to the backend.
    Could someone please show me what I have done wrong here?
    thanks,
    hypuser1010

    EricaHarris,
    Yes, the issue is still open. Obviously, I have gone down the path of "Scenario One".
    Based on your reply, I have done the following.
    There are three things I am configuring here: DSN, DAS and OCE.
    1) When I created the DSN,
    I started the ODBC Data Source Administrator, Click on second tab "System DSN". I added a new ODBC Data Source.
    Data Source Name = Oracle 10g Data Source
    TNS Service Name = //146-abc.xyz.com:1521/MYORCL0617
    2) I re-created the DAS entry, per your suggestion, I made sure that "the name of the data source will be the host name you specified in your OCE".
    Connectivity Type = Oracle Net
    Database Type = Oracle
    Enter the name of the data source= //146-abc.xyz.com:1521/MYORCL0617
    3) for my OCE, I specified
    Connection Software = Oracle Net
    type of Database = Oracle
    on the first screen.
    then, on the next screen, I specified
    Host = //146-abc.xyz.com:1521/MYORCL0617
    I reployed the OCE, the .bqy document and restarted DAS. Yes, my .bqy document does refresh its data successfully from the backend.
    However, I am not 100% convinced that the .bqy uses the OCE which talks to the DAS, which talks to the DSN entry and brings data back to the .bqy document.
    Here is what I did,
    I opened up the DSN entry, changed the TNS Service Name from //146-abc.xyz.com:1521/MYORCL0617 to
    //146-abc.xyz.com:1521/NONSENSE. I then restarted DAS and redeployed the .bqy document. the .bqy document is still able to refresh its data. So, I have just proven that the .bqy document does not need a valid DSN entry to work, how come??
    Can you (or anyone) please explain the phenomenon that I see?
    Also, a very basic question. you know that when you create a .bqy in the Studio, you "import" an OCE into the .bqy document so that the .bqy knows that it should use this OCE to talk to the backend data source. but, when you deploy this .bqy in workspace, how does the .bqy know that it is supposed to go through DAS (and DSN) to interact with the database, rather than the "internal" OCE that was pre-built with this .bqy?
    thanks,
    hypuser1010

  • Date range in report output

    Hi Abaper,
    I have a requirment to display range of date in report output . I have fixed output to 7 days.
    when ever i input date range 7 days its display fine but when i input 3 days the report output date is display upto 3 is fine but in 5th to 7th column date should not display correct format.
    below is my code.
    date = p_date-low.
    wa_date-dat = date.
    APPEND wa_date TO it_date.
    CLEAR  wa_date.
    IF date LT p_date-high.
      date1 = p_date-low + 1.
      wa_date-dat = date1.
      APPEND wa_date TO it_date.
      CLEAR  wa_date.
    ENDIF.
    IF date1 LT p_date-high.
      date2 = date1 + 1.
      wa_date-dat = date2.
      APPEND wa_date TO it_date.
      CLEAR  wa_date.
    ENDIF.
    IF date2 LT p_date-high.
      date3 = date2 + 1.
      wa_date-dat = date3.
      APPEND wa_date TO it_date.
      CLEAR  wa_date.
    ENDIF.
    IF date3 LT p_date-high.
      date4 = date3 + 1.
      wa_date-dat = date4.
      APPEND wa_date TO it_date.
      CLEAR  wa_date.
    ENDIF.
    IF date4 LT p_date-high.
      date5 = date4 + 1.
      wa_date-dat = date5.
      APPEND wa_date TO it_date.
      CLEAR  wa_date.
    ENDIF.
    IF date5 LT p_date-high.
      date6 = date5 + 1.
      wa_date-dat = date6.
      APPEND wa_date TO it_date.
      CLEAR  wa_date.
    ENDIF.
    Can any one help me on this issue.
    Thanks in Advance.
    Thanks & Regards,
    Amit

    Hi Amit,
    pls see the code below:
    date = p_date-low.
    wa_date-dat = date.
    APPEND wa_date TO it_date.
    CLEAR wa_date.
    IF date LT p_date-high AND date is not initial.
    date1 = p_date-low + 1.
    wa_date-dat = date1.
    APPEND wa_date TO it_date.
    CLEAR wa_date.
    ENDIF.
    IF date1 LT p_date-high AND date1 is not initial.
    date2 = date1 + 1.
    wa_date-dat = date2.
    APPEND wa_date TO it_date.
    CLEAR wa_date.
    ENDIF.
    IF date2 LT p_date-high AND date2 is not initial.
    date3 = date2 + 1.
    wa_date-dat = date3.
    APPEND wa_date TO it_date.
    CLEAR wa_date.
    ENDIF.
    IF date3 LT p_date-high.
    date4 = date3 + 1.
    wa_date-dat = date4.
    APPEND wa_date TO it_date.
    CLEAR wa_date.
    ENDIF.
    Pls add the condition also in ur check for all the IF conditions..and just see if it works...
    Keerthi

  • Empty CSV exports of data from interactive reports.

    Currently using version 4.2.1.00.08 of APEX. My application has interactive reports; when I try to export data to CSV file, it is empty. Tried HTML, that just has the control widget for the report. I could swear this used to work. Thanks for any help.
    -jg-

    Hi!
    Check that the RFC is set as a trusted connection and it uses the current user for the connection.
    Check that you use the same user in RSCUSTV3 as in the source system you have set up in RSA1 for the REP and the BI client.
    Check that the user you use for this is configured as follow
    - On the tab Logon data select System as User Type, SUPER as User group and also enter an initial password; use password welcome.
    - On the tab Roles assign the roles SAP_BC_USR_CUA_CLIENT and SAP_BC_USR_CUA_SETUP_CLIENT (Valid From and Valid to should be left empty). In addition, assign the profiles S_BI-WHM_RFC and S_BI-WX_RFC on the tab Profiles.
    rollo

  • XL Reporter - Selection of date range for report templates

    Dear All,
    I want to create a report using XL reporter and attach it to the main SAP B1 reports module . For this I have created the template using report composer .
    Issue:
    I have only one sub-period (ie,year wise in the posting periods)
    how i can select the date range in the Composer and attach it to the main menu.
    Regards,
    Suresh Kannan.P.

    Suresh,
                1. Goto Report Designer
                2. there u can find "Advanced Report Builder" on left side of the window
                3. At the below u can find three buttons like "Parameters", "Properties","Apply"
                4. Click on "Parameters"
                5. then Parameters window will populate
                6. Click the new Button
                7. Name: give as u like
                    Category: Literal
                    Type: Date
                    Attribute: Leave blank
                    Default Vale: Leave Blank
                    Prompt: From Date
             This is the process to create the parameters.
    create two parameters. one is fdate and ldate.

  • Changing date range in Report...

    Hi all,
    in report i have to change date range ..it is presently 1.1.2006 to 31.12.2006. i need to change year to 2007....
    can anyone please suggest me how to do that?

    Hi,
    In query Designer,select your date Char. expand u find Char. Variables.
    Select your Char. Varaible(the variable which is used to restrict the Values). right click ->edit,where u can change defalut date values or make it as blank.

  • YTD summaries in date range param report

    The notion is simple enough:  I need running YTD totals (not really YTD, but Year to a specific date) to display next to total fields selected via a date range parameter.  For instance:
    For 5/1/2008 to 5/31/2008
    Driver--Fund1--
    Total
    name      Trips    10               10
                    YTD Trips  50        50
    The date range parameter is used in the record selection formula using: table.Datefield >= Min parameter and table.Datefield <= Max parameter.
    The YTD formula I'm using is:
    NumberVAR YTDtrips;
    IF {table.Datefield} >= Date(Year(Maximum{?parameter})),01,01) and {table.Datefield} <= Maximum({?Parameter}) Then YTDTrips := {table.Trips}
    Unfortunately, the YTD totals equal the totals for the date range specified, so I'm doing something wrong--and I strongly suspect it's my YTDTrips formula approach.
    I'd appreciate any help.

    What you can do is :-
    1.)  Get all the records from FirstMonth of the Year to Maximum Data Range. So filter the records in the record selection formula like this:
    {table.Datefield} >= Date(Year(Maximum{?parameter})),01,01) and {table.Datefield} <= Maximum({?Parameter})
    2.) Doing Summary for {table.Trips} in the report will give u YTD Totals.
    3.) For summary related to data range parameter, create one running total and in the Evaluate option . Select formula and write the below code.
    table.Datefield >= Min parameter and table.Datefield <= Max parameter.
    This will give u total for the date range parameter..
    Hope this is useful to you..
    Bye
    kanak

  • Date Range at Reports Section

    Hi,
    I am doing some Reports and my requirement is to put a Date Range with default operator as Is Between.  This functionality works in Query Groups in dynamic filters where it shows From Date to End Date. I just wanted to know if this funcationlity works in Reports Section if so How ? For me it is not working.

    Hello,
    Unfortunately, this will not work in the Reports section.
    I was struggling with this and then I found out that the documentation states:
    "Range and List are only supported in the UI for filters in queries which are used in list page query groups and on the report scheduled task page."
    Regards,
    Bogdan

  • Date management in SAP CRM Interactive reports (CRM 7.0 EHp 2)

    Hi, all!
    I need some help with dates in interactive reports.
    My case: I need to add some new Z-dates in interactive report
    1. I've create some customer Date types and date rules via Date management.
    2, I've add it to screen on wui
    Question:
    How i can add this dates to interactive report? Does it possible?

    Hi Christophe,
    Facebook and Twitter are officially integrated into SAP CRM 7.0 EHP 3. Not LinkedIn though.
    You can use a custom solution in EHP2. Example is provided in SAPPress book SAP CRM: Techical Principles and Programming.
    Regards,
    Pavel

Maybe you are looking for