Refreshing interactive report on change of dates

Hi,
I have a IR where the source contains the query WHERE from_date = to_char(:P3_FROM_DATE) AND to_date = to_char(:P3_TO_DATE) , now when I change the item value in P3_FROM_DATE and P3_TO_DATE , I want the IR to change according the selected values .
I tried with dynamic action ,but it didnt work , may be I gave the wrong code ...
How can I achieve this ?
Thanks & Regards
Umer

Nice1 wrote:
Hi,
I have a IR where the source contains the query WHERE from_date = to_char(:P3_FROM_DATE) AND to_date = to_char(:P3_TO_DATE) , now when I change the item value in P3_FROM_DATE and P3_TO_DATE , I want the IR to change according the selected values . Use <tt>\</tt> not <tt>\{quote}</tt> when posting code.
What is the data type of the FROM_DATE and TO_DATE columns? (You should not use TO_DATE as an identifier as it is the name of a built-in function.)
If it's DATE, do they store time as well as date information?
As APEX items, P3_FROM_DATE and P3_TO_DATE are character strings and <tt>to_char</tt> should not be used. If the database columns are DATEs, then <tt>to_date</tt> should be used:WHERE from_date = to_date(:P3_FROM_DATE, '<format mask of P3_FROM_DATE item>') AND to_date = to_date(:P3_TO_DATE, '<format mask of P3_TO_DATE item>')
I tried with dynamic action ,but it didnt work , may be I gave the wrong code ...
What did you try with Dynamic Action? How can we know if it's the wrong code if you don't show what you did?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Sorting Interactive Report results in no data found message

    Hi,
    I've got an interactive report which returns results based on the :REQUEST bind variable - I've got a navigation list at the side where all the items link to the current page with different Request values. The IR works fine until I try to sort any of the columns by clicking the header and choosing ascending / descending, at which point it returns no data found.
    It starts working again if I change the last line to OR :REQUEST IS NOT NULL but this breaks the functionality of the report, I want to return only the selected statuses, or all if no request variable is present. I'm guessing that sorting sets :REQUEST to something temporarily and breaks it. My query is below, any ideas?
    SELECT   id,
             job_number,
             appt_start,
             domain,
             pwa,
             status,
             tstamp_created
      FROM   fail_jobs
      WHERE  (status = 'NEW' AND userid_created != 'SYSTEM' AND :REQUEST = 'ARD')
         OR  (status = 'ATR' AND :REQUEST = 'ATR')
         OR  (status IN ('ERR','REV') AND :REQUEST = 'REV')
         OR  (status = 'COM' AND :REQUEST = 'COM')
         OR  (status IN ('PCD','PCA') AND :REQUEST = 'PCD')
         OR  :REQUEST IS NULLThanks

    There are known issues with Interactive Reports referencing :REQUEST value, probably due to some inner logic that also handles it simultaneously - potentially causing malfunction or deadlocks.
    One workaround I've learned is to create a computation to assign :REQUEST to a temporary item (a PXX_REQUEST, for instance) and reference it in the query, instead of :REQUEST. This has worked fine for me in my experience.
    Let me know if that helps - pls sign the thread as 'Useful' or 'Correct' if so, hence more people can benefit.
    tks,
    Kleber

  • CRM Interactive reports not loading any data on WEB UI

    CRM BI client is setup properly by following CRM IR config guide C41.
    /CRMBW/CONFIG_WIZARD doesn't show any major errors. I am able to create
    the custom interactive reports but when these reports are executed no
    data shows up in the report.For example ,we are building interactive
    reports under opportunities area for a user, who has opportunities in
    the system.
    Our CRM Sytem is on CRM7.0 EHP1 SPS3.
    Thanks
    Thirumala

    Hi Thirumala,
    if still relevant (sorry for the late reply): check if the user is assigned to a business partner (employee), which is assignet to a correct position in the CRM Org model, and that this business partner is the employee responsible of the sales documents you want him to see in the reports.
    Alternatively, the user's business partner can be a manager of such an employee.
    Best regards

  • APEX_ITEM on Interactive Report losing all the data.

    Hi!
    I'm having some troubles with some apex_items on interactive report.
    The problem happens when i save the interactive report with apex_items and a validation in some of the items fail then i lose all the data entered.
    I made i test application to you guys see the problem and try to solve it.
    URL: http://apex.oracle.com/pls/apex/
    The scheme is Sn4k8
    User: guest
    Password: 123654g
    To see the application: http://apex.oracle.com/pls/apex/f?p=20135:1:
    The application is Interactive Report Example / Page number 1
    A example to test is type on the fields values and then type a start date bigger then the end date this is cause a validation error and you will see all your data entered lost.
    I tryed to find something on the web but i could not find nothing if you guys know something to help post it.
    Regards,
    Ismael Filipe
    Edited by: Sn4k8 on 25/03/2010 12:26

    I think there is a solution with java or pl/sql.
    Try to use the example application and type values in the fields and then type "d" at some date. This will cause a exception and will redirect to a apex erro page, if you click at "ok link", you will come back to the interactive report page and you will see that all your data remains intact.
    I think there is a solution...
    Regard,
    Ismael Filipe

  • Interactive Report with html tags --- Data saved in Excel with html tags

    Hello,
    I am using APEX 4.0. I have an interactive report that displays some of the columns bold and / or colors using html tags. As an example,
    SELECT
    '''<font color="green"><b>'' || SERIAL_NUMBER || ''</b></font>'' SERIAL_NUMBER,'||chr(10)||
    'PRODUCT_NAME,'||chr(10)||
    '''<font color="teal"><b>'' || PRODUCT_DESC || ''</b></font>'' DESC,'||chr(10)||
    'QUANTITY,'||chr(10)||
    FROM
    <Table name>
    At runtime, the Interactive Report displays the fonts, colors correctly; however, when I save the data of the Interactive Report in an Excel format, it saves the Html tags along in the EXCEL spreadsheet. For example, the column serial number from the above SELECT statement is extracted in an Excel column as ---
    <font color="green"><b>123456789</b></font>
    Is there another way to render the column data so that extracted data will not display the HTML tags or is removing the html font color tags from the SELECT statement the only option?
    Thanks in advance.
    Ed

    Hello,
    I have a feeling all your problems are related take a look at this thread. I found it in 10 seconds of searching the forum.
    strange tags
    It's always best to do a quick search first most likely you are not the first person to have this problem.
    Carl

  • Refresh Interactive Report Definition via PLSQL

    Hello!
    I am currently working on set of generic database-apex applications.
    That means I have two applications. The first is the admin apex application used to define columns and tables.
    The second application is the one for the end users, where they can view and edit the values.
    My problem now is: Every time the admin adds or removes a column I need to edit the user-apex application, open the region definition of all interactive reports and switch to the report attributes to add/remove the columns of the report.
    I would like to automate this step via plsql. How can I achieve this?
    I guess the first step would be to load a list of all IRs...
    select * from apex_application_page_ir where application_id = 133;
    But I don't know how to reload the columns...
    Can anyone help?
    Thanks in advance!
    BR Mike

    Hello Andre, Hello Mimi!
    Thank you for your messages.
    First to your idea Mimi, i think you brought me on the right track. Using your update statement doesn't works for me.
    There are some missing permissions I couldn't grant and in addition I think this would hardly work because apex_application_page_ir is a complex view.
    But I am currently working on a solution using the wwv_flow_worksheet_standard.synch_report_columns function. Code like this:
    DECLARE
    l_flow_id NUMBER (20);
    l_region_id NUMBER (20);
    l_query VARCHAR2 (4000);
    l_result VARCHAR2 (4000);
    BEGIN
    SELECT application_id, region_id, sql_query
    INTO l_flow_id, l_region_id, l_query
    FROM apex_application_page_ir
    WHERE page_id = 9 AND application_id = 133;
    APEX_040100.wwv_flow_worksheet_standard.synch_report_columns (p_flow_id => l_flow_id,
    p_region_id => l_region_id,
    p_query => l_query,
    p_add_new_cols_to_default_rpt => 'Y');
    COMMIT;
    END;
    Unfortunately it doesn't work. When executing the synch_report_columns procedure the following error raises.
    ORA-01003: no statement parsed
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 1685
    ORA-06512: at "SYS.DBMS_SQL", line 629
    ORA-06512: at "APEX_040100.WWV_FLOW_WIZARD_API", line 840
    ORA-06512: at "APEX_040100.WWV_FLOW_WORKSHEET_STANDARD", line 2735
    ORA-06512: at line 23
    Maybe you or someone else can reproduce the error?
    Therefor you simply need an interactive report on a page, based on a view. Remove some column of the view definition-the IR will display an error like this:
    ORA-20001: get_dbms_sql_cursor error ORA-00904: "DUV_FOCUS_OFFSET": invalid identifier
    Then execute the code above (use your page and app_id).
    After the execution the IR should work again. In my opinion...
    @Andre: The application I am working on is a critical pice of software used in a highly sophisticated semiconducter fab.
    It is simply impossible to train some of the shift leaders or operators on apex, in fact it is a great thread if someone else can change the application and produces a downtime.
    So for me it is necessary to script everything as far as possible. I finished nearly everything, simply the synch of the report columns is missing...
    BR Mike

  • Refresh Webi reports automatically after BI data loads ?

    Hello,
    We are about to install BOE X.1 on top of BI 701.
    The idea would be that the users would perform their WebI daily reporting, but obviously only after SAP BI night batch scheduling is finished, and the BI infoproviders filled.
    I've read that BOE ofers you the ability to refresh the reports upfront.
    We were wondering if there is a way to easily implement this logical dependance : to refresh the Webi Report only after the end of BI data loads.
    There is off course, the possibility to use an external scheduler, but we have checked the licencing and it's quite expensive.
    Is there another way to do so ?
    Many thanks for your attention.
    Best Regards.
    Raoul

    Hi Alan,
    Thank you very much for your quick answer.
    I would like to make sure that I understand you since I'm not very familliar with BOE :
    First , we create an event in the CMC and connect it to a file location
    Then we schedule the document and add the file event : do you mean schedule the webi report  ?
    Finally create the file  as part of the Bex query refresh process : how exactly do we do that, in the BI process chains ?
    Thank you very in advance for your help.
    Best Regards.
    Raoul

  • Refresh Interactive Report based on Flash Pie Chart selection

    I have an Interactive Report:
    select ename "Employee Name",
    mgr "Manager
    from     emp e, dept d
    where e.deptno = d.deptno ;
    That i'd like to have filtered by MGR when a Flash Pie Chart is clicked:
    select null link,
    mgr label,
    count(emp_id) value
    from     emp e, dept d
    where e.deptno = d.deptno
    group by mgr ;
    Can someone indicate how i'd do this?
    Thanks in advance!
    John

    Hi,
    This post might help
    Re: Navigable pie-chart
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

  • Refresh APEX_ITEM.TEXT Value when Interactive Report Page Changes

    I use an APEX_ITEM.TEXT column in an IR where the user can enter some number date.
    to make this data persistent while paginating the ir, i use some DA . Via ajaxthis DA call an onDemandProcess to save the entered data in a collection.
    works great; the input is stored in the collection.
    To show the already entered data, the ir sql statement joins the collection.
    select  APEX_ITEM.hidden(2,artikelnr)||
            APEX_ITEM.TEXT(1
              ,COL_artikel.preis
              ,3
              ,3
              ,'autocomplete="off" onfocus="javascript:f_set_last_val(this);" onchange="javascript:f_validate_integer(this);"'
              ,'INPUTBESTELLEN'
             ) Inputbestellen,
    article.*
    from article
    left outer join COL_artikel on COL_artikel.nummer = artikelnr where col_artikel is a view for better access on the collection
    Now the issue:
    On the first Page i add some data, then i go head to page 2 and 3 of the ir. The collection is filled withe the entered data.
    But when i navigate back to page 1 the entered data is not shown in the input field unless i relload the whole page . I guess because the query is not re-executed when paginating foreward/backward.
    ist there any way to overcome this tiny small issue?
    regards
    peter

    It looks like you are trying to combine apex_item function with a standard tabular form and as far as I know this won't work. You will need to create a manual tabular form in that case. See this and other examples as a refference:
    http://htmldb.oracle.com/pls/otn/f?p=31517:170
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • Refreshing Word Reports after changes made in Publisher.

    I am runing the word to publisher to bi answers chain. I made a change to the reports in bi answers by adding a column. The new column does not show up as a selection in Word Insert>Field Menu.
    When I view the publisher Xml of the report the columns for the report are there. But the word add-on does not seem to find them.
    Also because the default columns names are conversions of the formulas from BI Answers just typing them out is not to convient. (I could still copy and paste from xml). Is there sometype of cache keeping old versions of the reports in the word add-on.

    It is a shame I can't get answers points for my own questions but here seems to be the problem.
    The word add-on is the problem and the inability to change the field/element names of the reports in publisher. The two go together because the word add on has a hick-up when handling long report element names. These names are long because publisher constructs it's dataxml from the formula field of BI Answers reports. Not the header field or some other alias. So if the formula field of a data metric, combines multiple pieces of data, then does some math, and divides itself by another hodge podge of fields you have a chance that the word add on will not find the field in its "insert>Field>Menu box". I have a feeling that it is there but not in the menu box I just haven't had a chance to check. I will update the post when I do.
    Short Answer the word add on is buggy.
    Side note to get the field list to reload you have log off and log on in the word add on. If not the field list will not reload.

  • Download Interactive Report data does not match on-screen data

    Hi,
    I have a page which has a process which runs a query and returns a random % of rows from a table, and saves this into a collection.
    Then, based on the random rows, I want to select data from another table, where the rows match certain columns in the collection.
    I have created a query to select the data I want, and have it displayed in an Interactive Report region.
    The data on the screen is fine, but when I go to 'Dowload' the data to csv or excel from the Interactive report, the data is different.
    I have also created a normal report region with the same query, and when I download it from here, it works fine, so I know it has nothing to do with the query.
    Any ideas?
    Amanda.
    The process details are:
    Process Point: On Load - Before Regions
    Run Process: Once per page visit
    Then in the Interactive report query is something like:
    Select ..
    from
    DATA_TABLE c
    select
    c001 User_Id,
    c002 Account_No,
    c003 Transaction_Date
    from htmldb_collections where collection_name='PX_COLLECTION'
    *) d*
    where
    c.user_id = d.user_id AND
    c.account_no = d.account_no AND
    c.transaction_date = d.transaction_date

    Hi,
    This is because of web caching. You should invalidate the page caching in the access tab of page properties or you just change the page url with a dummy paramater like this
    http://domain/portal/page?_pageid=6,1,6_11&_dad=<dad>&_schema=<schema>&1=1
    Here &1=1 is a dummy parameter
    This will invalidate the cache and the page will be refreshed.
    Thanks,
    Sharmila

  • "no data found" message wrapping in interactive report

    I've looked around and can't figure out what's going on. Any help would be greatly appreciated.
    I have an interactive report which, when no data is found, displays the "no data found" message wrapping very tight. I have uploaded a screenshot of it to TinyPic for you to see what I see.
    The HTML generated around the "no data found" text is the following.
    >
    <DIV id="apexir_DATA_PANEL">
    <TABLE summary="">
    <TBODY>
    <TR>
    <TD>
    <TABLE id="12352007490697832" class="apexir_WORKSHEET_DATA" border="0" cellSpacing="0" summary="" cellPadding="0">
    <SPAN class="fielddata">
    No submissions were found in the system.
    </SPAN>
    </TABLE>
    </TD>
    </TR>
    </TD>
    </TR>
    </TBODY>
    </TABLE>
    </DIV>
    >
    I've looked through the HTML code that is generated for that page, but can't figure out why the words are wrapping. Any thoughts?
    Shane.

    Well, my problem is back again. It is only doing this in IE 8, not FF. When I run IE 8 in "IE 7" mode, the error message shows up fine, all on one line. I actually have two span tags now so I can have some spacing around the "no data found" message. I cannot get the "span" tags to show up in the HTML code. The software for this discussion forum seems to be filtering it out or the web browser is interpreting it when it should not. I will replace the SPAN tags with square brackets so you can see them. I also had to change "style" to "st_yle" so the software did not filter it out. It sure looks like a jumbled mess now.
    >
    <DIV id="apexir_DATA_PANEL">
    <TABLE summary="">
    <TBODY>
    <TR>
    <TD>
    <TABLE id="12352007490697832" class="apexir_WORKSHEET_DATA" border="0" cellSpacing="0" summary="" cellPadding="0">
    [SPAN class="fielddata"][span st_yle="padding: 15px;"]No submissions were found in the system.[span][SPAN]
    </TABLE>
    </TD>
    </TR>
    </TD>
    </TR>
    </TBODY>
    </TABLE>
    </DIV>
    >
    Since I am using an interactive report, I do not believe I have any report template I can alter to adjust how the report and/or "no data found" message are being drawn up. I do have the region of the interactive report set to "Reports Region 100% Width", but the HTML in question is not being generated by that template.
    I wonder if the problem is specific to how IE 8 might be interpreting the inside TABLE tags when it does not have any TR or TD tags within it. Any further thoughts on the matter?
    Shane.

  • Showing current Date (Date Column) in the the filter of Interactive Reports

    Hi,
    I created a filter for the date column in my report (table column name is Process_Date). I have created a filter in the Interactive reports which populates the data from , a particular time perieod. (From_date - To_Date). How can I change the SQL query or the Report settings, so that when the user open a report it should poulate the data for the previous_day or sysdate-1 by default.
    Thanks in advance for your help.
    James

    christine275 wrote:
    ... (this is a time worked by date and not always entered on the date worked)--
    "Time" in Numbers is always "Time of Day", and is always part of a Date and Time value. "Amount of Time" is a Duration value, which may be displayed in a similar format to "Time of Day," but is a different type of value.
    If you are entering the number of hours and minutes worked, format the column as Duration, set the units and the format in which you want to have the value appear.
    The Date column will still contain a Date and Time value (Jan 1, 2011 00:00:00 in the cell shown in the example), but the "Time Worked" cells will contain only a Duration value.
    Incidently, the Date in A2 was entered as "jan 1" (without the quotes). Numbers automatically adds the current year and the default time value, then displays the result in the closest format to what you've entered, or in the Date and Time format you have chosen.
    The Duration value in B2 was entered as 3:15 (as displayed). Note that in the entry bar the duration is displayed as 3h 15m, probably to distinguish it from a similarly formatted (Date and) Time value.
    Regards,
    Barry

  • Interactive Report with Date Filter

    Hi out there,
    I created an interactive report which contains a date column. The default filter-options just work fine. But my users need to filter with the data which is contained in the report e.g. if a row contains 21.06.2000 they want to see this value in the filter-list of this date column and not the predefined defaults (last five years, last day and so on).
    I already tried to specify the date as a string and did a select ... to_char ( date_column, 'dd.mm.yyyy' ) which broke the sorting but gave me the filter-options my users wanted. Specifing the date as yyyy.mm.dd is not an option for my users.
    Is it possible to get a filter which shows the "real" data and keeps the right sort order ?
    Regards and thanks
    Markus

    Markus,
    I've come up against this too. A varchar column gives you the selection list but no filtering using <,>,between etc., but a date column doesn't show the discrete data values. Users tend to ask for both, and putting both date and varchar columns in the report or using an LOV isn't very elegant.
    Is there anything significant about the dates the users want to search directly on? Judging from your 21.06.2000 example I'd guess not, but if so you can build your own column in the SELECT statement and use that for filtering/creating default reports.
    regards,
    Malcolm.
    Edited by: MalcA on Feb 16, 2012 11:39 AM

  • Custom jQuery overlay tool in Interactive Reports not rendering

    As the subject says, I got a problem in rendering jQuery on an Interactive Report. It is working on a non-paginated pages, like forms, and also in Interactive Reports, but whenever the data is getting paginated, after you go to the next page, the jQuery won't work.
    Here is the scenario:
    I have an Interactive Reports page that displays the Files in my table (all of it are images.)
    SELECT
    ('<img src="#OWNER#.DISPLAY_IMAGE_PROC?image_id='
    ||f.image_id
    ||'" width="64" height="48" rel="#img'||f.image_ID||'" />') AS IMAGE
    FROM TABLE_NAME
    The rel attribute of the image is the one that I am using to get the jQuery to work.
    The src of the image is a procedure to get the path of the image. (Based in Denes Demo Application)
    On the Interactive Reports Page, it displays the image correctly.
    When you click the Image it will display an overlay image with the size of 640x480.
    But when you go to the next page, the function will not work, and there are no errors given (javascript / oracle error / any other).
    If you don't know how to implement a simple overlay tool in jQuery go here: http://jquerytools.org/demos/overlay/index.html
    anybody experience something like this?
    -Philip
    Edited by: 942717 on Jun 25, 2012 2:44 PM

    You need to enable overlay on after refresh event of the report
    Create a dynamic action
    Event: After Refresh
    Selection Type: Region > and select your IR region
    Action: Execute JavaScript Code
    Code: add your overlay code something like below
    $("img[rel]").overlay();

Maybe you are looking for

  • End-Of-Page in ALV's ?

    how to use End-Of-Page  event in  ALV's ?

  • Display Document in Portal (WD)

    Hi, i have created a Container filled with Documents and after double clicking on one of them, i want it to be displayed (document) , would somebody tell me how can do this, with double click and which method shall i call , to display that document?

  • Configuration problem, error: 1

    I installed a PS CS6 trial on my computer but get an error: 1 message. I am pretty sure the problem is the way my computer is set up: I am running Windows 7 64-bit on a SSD, C drive. Default location of program files is changed to a separate hard dri

  • Macros in Office 2011

    I'm using a template with macros in Microsoft Office. I recently had to have my computer reimaged by my new school, so I had to reinstall office for mac 2011. It opens the macros in the template and the macros in any document I created in the templat

  • Can't connect to MySQL Community Server 5.6 from CF11

    I'm trying to connect to MySQL Community Server version 5.6 from Cold Fusion 11. If I choose the DataDirect driver, I get an error message stating that the driver does not support Community Server. So I choose the MySQL5 driver and I am able to verif