Sort the results of interactive report in no data found message

Hello

I have an interactive report that returns results based on the: bind variable QUERY - I have a list of navigation on the side where all the elements to link to the current page with different values of request. The IR works fine until I try to sort the columns by clicking on the heading and selecting increasing / decreasing, how it returns no data available.

It starts to work again if I change the last line of GOLD: REQUEST IS NOT NULL but this breaks the functionality of the report, I would like to return only selected articles or all if no query variable is present. I'm guessing that sort sets: ASK something temporarily and divides. 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 NULL
Thank you

There are problems with interactive reports referencing known: DEMAND value, probably due to an internal logic that manages also simultaneously - potentially cause a malfunction or blockages.

A workaround that I learned is to create a calculation to assign: APPLICATION to a temporary element (a PXX_REQUEST, for example) and reference it in the query, instead of: ASK. This has worked well for me in my experience.

I would like to know if this helps - pls sign the thread as 'Useful' or 'Correct' if so, so more people can benefit.

TKS,
Kléber

Tags: Database

Similar Questions

  • APEX 4.2 classic report when more data found message

    Hello

    Has anyone used report classic message "Times more data found" APEX 4.2?

    I did not get this message illustrated using any report model or any report parameter.

    Need to add a few report template substitution strings?

    It would be great if someone could share example how this message should be used.

    Kind regards
    Jari

    Hi kvlek,

    Thank you

    Could you please share steps how you did it in apex.oracle.com?

    Kind regards
    Jari

  • Nested no uid in result of server really not necessary to sort the results. What does that mean?

    When I try to access my Inbox for outitgoes webmail, I get a message saying nested no uid in result of server really not necessary to sort the results. I can connect fine and records, sent access etc, but not my Inbox, what someone has any ideas how to solve this problem? Thank you.

    If the webmail, it cannot not be IMAP.  Webmail, by definition, is accessible using a web browser like Internet Explorer, Firefox, Chrome, Safari or Mozilla.  If you use a like WIndows Live Mail, Windows Mail, Thunderbird, Eudora mail client or another, then you will need to say that in your post, since how webmail and e-mail client/server operation are completely different.

    Like you say, if you use outitgoes like webmail, any errors that you see on your mailbox should be past on the server.  Thus, this isn't a problem, you can send, since it does not go on your computer and is not an error in your browser.  This is a problem on the server itself.  You will need to contact the technical support of outitgoes.

    References to an outitgoes SMTP server appear when you search for "outitgoes smtp.  This means that they offer client/server access to the letters.  If that's what you use, you must always contact outitgoes support because your email client tells you that it receives information from the mail server that it does not understand.  Outitgoes support should be able to help find the cause.

  • Add columns in the area of interactive reports

    Hello Experts,

    I will add a column more in the interactive area, but is not thinking about the main screen of the report...

    I only add a column in my query and set the position in the report area but still its not shown on main screen...

    Please help me...



    Thank you

    Xandot wrote:

    I will add a column more in the interactive area, but is not thinking about the main screen of the report...

    I only add a column in my query and set the position in the report area but still its not shown on main screen...

    After adding new columns to existing NPA, you must select them for display as developer and Save the new report as the default main.

    Please see the documentation for interactive report.

  • How to move the form of interactive report on the left side to the right?

    the Apex 4:
    I write application in Hebrew, so I need to put in the page template dir = "RTL".
    all report and button and point moving to the right, but
    the stay of interactive report on the left side of the page (instead of right).

    Does anyone have an idea how to change the location?

    Thank you
    Return on investment

    Hello

    For the research on the copy of the side section right hand following the report in your HTML page header is on.

    
    

    Graham

  • Using elements of the application of interactive report filters

    Hello

    Can we use elements of application in interactive report filters? If so, how?

    Thank you
    Machaan

    Take a look at the creation of a link to the section of interactive reports in the Application Guide of the user for example generator

    This example binds, resets and clears the saved report parameters 12345. It also creates an ENAME = 'KING' filter on saved report 12345.

    f? p = 100: 1: & SESSION. : I have R_REPORT_12345::RIR, CIR::RIR, CIR:IR_ENAME:KING

    If you have an element of the application P1_ENAME the following apply to the example above

    f? p = 100: 1: & SESSION. : I have R_REPORT_12345::RIR, CIR::RIR, CIR:IR_ENAME: & P1_ENAME.

    If you want a permament for all filter saved reports on the value of point of application, it is best to use the: APP_ITEM_NAME bind variables in your SQL syntax, it really depends on how you define the value of your item and how you interact with it. AFAIK does not request point directly bind variables syntax in the filters, IR etc...

  • How to sort the videos Sony's AVCHD cam by DATE.

    How to sort the videos Sony's AVCHD cam by DATE.  500 clips in media browser PP are not ordained.  A little more of the FCP where appears the ingestation list, you check what you want and import.  It looks different in PP.  I dragged all the AVCHD folder on the camera (via the copy on the desktop Mac) media victory on PP.  He broke them in 500. Video clips of MTS which cannot be classified by date.  What should do?

    Hi Pup8888,

    pup8888 wrote:

    Here is what I could not say.  He pulls of a Sony 520 in ACVHD and somehow that the data CLEARLY arranged the clips in FCP do not appear in PP.  Maybe it's the issue.

    If you do not ingest the files through their structure to map intact complete with media browser and makes your entire organization in another application, Yes, I can see why some of the metadata is missing.

    pup8888 wrote:

    I also get a DEVICE NOT DETECTED in PP when the camera is clearly working in the new IMAC.

    The remote control is not available for file based devices, so I don't think you need to worry about this.

    pup8888 wrote:

    So I do drag the AVCHD HD folder and import all in PP and yes it in busts. MTS files and works very well but unsortable by date.  They are randomly dumped inn the media browser.  Thoughts?

    Can arrange you by date when they are ingested and in the project Panel? Arrange by date in the media browser would be a feature request. What to do here: http://www.adobe.com/go/wish

    Thank you
    Kevin

  • Apex reported no data found message

    Is it possible to update all THE data found message? I would like to change to no records returned on all reports? Is it a setting in globalization?

    Concerning

    Spam says:

    Is it possible to update all THE data found message? I would like to change to no records returned on all reports? Is it a setting in globalization?

    Assuming a recent version of APEX (always specify what version you use when you ask a question): Home > Application Builder > Application > utilities > utility area > grid edit all Messages to find data no..

    Change them all to refer to a static text substitution string (e.g. & NO_DATA_FOUND_MSG) defined in the application definition, if the message must only be maintained in one place.

  • Interactive report returns misleading data because of the limit ROWNUM

    Hi, we have relied on the internal decision-making interactive reports widespread in our society, and they have been very popular. However, a user has found an inconsistency of data when sorting to a report because the ROWNUM limit: APXWS_MAX_ROW_CNT is applied before the user requested the ORDER BY clause. We run Apex version 3.2.0.00.27 on a 10.2.0.4 database.

    Request quotes from our application IR returns citing custom and the number of lines by default is 100 (and is editable by the user). The user wants to see the most recent citations, so he chose the column heading "Date of creation" and simply applied a descending filter. The last quote returned was dated last week. However, if he has applied an additional filter of "date of creation last week", he sees today date and for most of the current quotation lines.

    When I ran on its IR application debugging, I see that the ROWNUM limit is applied first, followed in ORDER BY. This means that the database retrieves the x first lines that match the provided parameters and then orders the result set. However, this isn't what the user meant, he wanted the first lines of an ordered set.

    This is the result of the query to debug (deleted community because it is long):
    select 
           "QUOTE_NUMBER",
           "CUSTOMER",
           "CUST_CONTACT",
           "QUOTE_STATUS",
           "TOTAL_PRICE",
           "TOTAL_WEIGHT",
           "WHSE",
           "SHIP_DATE",
           "PO_NUMBER",
           "ORACLE_REFERENCE",
           "INSIDE_SALESREP",
           "OUTSIDE_SALESREP",
           "CREATION_DATE",
           "ID",
           "ORA_CUST_ID",
           "CUST_CONTACT_ID",
           count(*) over () as apxws_row_cnt
     from (
    select  *  from (
    SELECT 
      kh.id,
      kh.ora_cust_id,
      kh.quote_number quote_number ,
      kh.cust_contact_id,
      k2_customers_pkg.get_contact(cust_contact_id) cust_contact ,
      k2_customers_pkg.get_cust_name(kh.ora_cust_id)customer,
      k2_customers_pkg.get_cust_number(ora_cust_id)
    
     ( ......... more sql goes here )
    
    AND k2_customers_pkg.get_outside_salesrep_number(kh.ora_site_id)||'%' LIKE :P64_OUTSIDE_SALES||'%'
    AND kh.whse_code like :P64_WAREHOUSES||'%'
    AND ((1=
        CASE WHEN :P64_ITEM_ID IS NULL THEN
            1
        ELSE
            (SELECT 1
               FROM k2_quote_lines kl
               JOIN k2_ingredients ki
                 ON ki.quote_line_id=kl.id
              WHERE (1=1
                AND kh.id=kl.quote_id
                AND ki.ora_item_id=:P64_ITEM_ID AND ROWNUM=1))
        END)
        OR 1=(
            SELECT 1 FROM k2_quote_lines kl WHERE kl.quote_id=kh.id AND kl.part_id=:P64_ITEM_ID AND ROWNUM=1
        ))
    )  r
    ) r where rownum <= to_number(:APXWS_MAX_ROW_CNT) 
     order by "CREATION_DATE" DESC,"QUOTE_NUMBER" DESC
    However, what the user must have the ORDER BY applied first, then the limit. I realize performance can be affected, but users are now alarmed that they cannot trust these reports. I'm tempted to connect a SR with Oracle on it.

    Any ideas on that? What is this problem fixed in 4.0?

    Thank you, Moritz Wolf

    Hi Wolf,

    I don't think that the problem is with the number of rows displayed. I think that it is a function of the attribute of the ratio "number of lines". And as assistance at the level of the elements of this attribute indicates "defines the maximum number of rows in the query. Note that this attribute impact on performance. Get fewer lines can improve performance and get thousands of lines can adversely affect performance. »

    You can set the maximum number of rows to an artificially high - greater number that we'll never be your total number of lines. But this does not alter the fact that the ORDER BY still apply on the outer part of your query.

    Joel

  • Do we not have option to deselect ascendant and descendant of the options in interactive reports 4.2

    Hi all

    I've created an interactive report in my application and the required headers, I had used options for sorting as shown below

    Option selected now ranking ascending or descending sort, then report will appear as

    But the small icon will be kept in the report, or we can choose alphabetical, have we not option Select United Nations this option so that the option will not appear in the header part.

    Version 4.2 of the apex

    Theme-Light blue-100

    Kind regards

    Sruthitamiri.

    Sruthi Tamiri wrote:

    I've created an interactive report in my application and the required headers, I had used options for sorting as shown below

    Option selected now ranking ascending or descending sort, then report will appear as

    But the small icon will be kept in the report, or we can choose alphabetical, have we not option Select United Nations this option so that the option will not appear in the header part.

    The option is in the Actions of IR menu. Go to Actions > Format > sorting and deselect the current sort columns by setting - Select the column - column .

  • Apex 4.0 has even 100 column limit on the attributes of interactive report

    We are on Apex 3.2 and one of our applications widely used interactive reports, most having more than 100 columns. The report attributes tab shows only the 100 first columns, which can be moved upwards or downwards to order. Additional columns are accessible by selecting the 100 column and use the > button to get the rest. However, these columns cannot be moved to another location.

    This isn't a major problem when first create reports as SQL put them in the right order, but all fields may need some sort of setting in shape.

    The problem comes when a request arrives to add an additional column to the report. No matter where I put it in the SQL, the field always ends by at the bottom of the list of attributes. If this field is required to be in the 32 column, I can't move it. I can get around this by running the interactive report, move the column to the correct position and re-record the master report.
    However, the list drop-down "Filter" will always have the new column, at the bottom, which I suppose is using the report attributes list, that I can't change.

    Anyway, my question is to those on Apex 4.0 - this limitation of 100 columns has been increased or is it still in place.
    If someone had the same problem and found a better solution.

    Thank you
    Daron

    Hi Daron and blabla,

    Yes, it seems that this limitation is still in place and I will file a bug, if there isn't one already. But I think in APEX 4.0 is less a problem, because if you use the "tree" to edit your page, you will see all the columns in the report below the IR region. There is no limit of 100 column here. And better yet, you can use drag and drop to move the column where you want to make or change directly with a double click or the menu shortcut "Edit" option.

    Hope that helps
    Patrick

  • Get the ROWID of interactive report

    Hello

    I use an interactive report, but I would use the rows returned in a process so is it possible to get the rowsids that have been selected and filtered report


    Thanks Andy

    Hello

    I'm not sure that the results of the international registration is stored somewhere (if anyone knows if this is the case, maybe they can update this thread with accuracy?). You can try looking at the views following sql:

    APEX_APPLICATION_PAGE_IR
    APEX_APPLICATION_PAGE_IR_CAT
    APEX_APPLICATION_PAGE_IR_CGRPS
    APEX_APPLICATION_PAGE_IR_COL
    APEX_APPLICATION_PAGE_IR_COND
    APEX_APPLICATION_PAGE_IR_RPT

    APEX_APPLICATION_PAGE_IR_COND must identify the filters that have been applied.

    Andy

  • Include the results in "Batch report" instead of "report USE".

    Hi all

    I modified the ProcessSetup TS 4.0 reminder to perform a test of the preliminary material before testing 8 DUT using batch processing model. Since this is a reminder, the results are not registered by default, so I store it in a global table of results. Then I copy this table of results into my results MainSequence table.

    The problem is that this means that these preliminary results will be saved for UUT0 (if I use "A thread only" synchronization") or to the DUT (if I use the synchronization of batch processing model). How can I add my ProcessSetup test results to the "Results of the batch" section of the results page rather than the sections "USE results? The test checks the shared material and is thus applied to the DUT. I prefer not repeated it for each USE or make it look like, it applies only to WEAR it first.

    Thank you

    Chris

    Tomahawk,

    Al is correct that is whether you use HTML or ASCII report formats, you can override the ModifyReport... Reminders to get what you want. Unfortunately, with the XML declaration, you can use the ModifyReport... Reminders. In order to accomplish the functionality that you want to see everything and still use the report XML form, you will need to change the BatchReport reminder, as well as the XML style sheet you use.

    TestStand 4.2, we have created tutorials and provided better material for our XML Style sheets. With a little effort, I am convinced that with TestStand 4.2, you would be able to reach your goal.

    I suggest to take a look at customization of Style TestStand sheets of TestStand 4.2 help (available online). Unfortunately, Style XML TestStand 4.0 sheets do not have the same quality of literature as the TestStand 4.2 Style sheets, so you don't will not commented sections in the leaves of Style 4.0 as explained in the help.

    For this particular case, you do not want to change the reminder of BatchReport to store the data that you want to place in your report batch section. Then, you change the section batch report of the Style XML with XPath map appropriate to display these data in the batch report.

  • Problem with the cascading for interactive report selection list

    Hi all.

    I'm trying to implement the solution of cascading to the tabular presentation list.

    https://Apex.Oracle.com/pls/Apex/f?p=31517:176:103661090335568:

    But instead of the form of paintings, I use interactive report. After executing the query, I get the error:

    ORA-06550: line 1, column 147: PL/SQL: ORA-00936: lack of expression ORA-06550: line 1, column 13: PL/SQL: statement ignored


    My Sql query for the report:

    select 
    apex_item.hidden(1, a."DATA_ID")DATA_ID,
    apex_item.select_list_from_query(10,
      b.WAVE_GROUP,
     'select GROUP_DISPLAY, GROUP_RETURN from dwd_wave_group',
     'onchange="f_set_casc_sel_list_item(this,f11_'||LPAD (a.DATA_ID, 4,'0')||')"',
     'YES',
     '',
     '- Select Group -',
     'f10_' || LPAD (a.DATA_ID, 4, '0'),
      NULL,
     'NO'
     )WAVE_GROUP,
    apex_item.select_list_from_query(11, b."WAVE_USER",
    'SELECT username d, '
    ||'username r FROM dwd_user where groups = '||b."WAVE_GROUP",
    '',
    'YES',
    '', 
    '- Select User -',
    'f11_' || LPAD (a.DATA_ID, 4, '0'),
     NULL,
    'NO'
    )WAVE_USER
    from "DWD_WAVE_MASTER" a, dwd_wave_assignment b
    where a.data_id = b.data_id
    and b.wave_id = 'wave_1'
    

    If I exclude the condition 2nd selection list query and change as below then everything works fine. Query does not give error on sql developer.

    Use: APEX 4.2.6 with Database 11g.

    apex_item.select_list_from_query(11, b."WAVE_USER",
    'SELECT username d, '
    ||'username r FROM dwd_user',
    '',
    'YES',
    '', 
    '- Select User -',
    'f11_' || LPAD (a.DATA_ID, 4, '0'),
     NULL,
    'NO'
    )
    

    Can someone please help!

    Thank you

    Nabila

    The nabila Islam wrote:

    I'm trying to implement the solution of cascading to the tabular presentation list.

    https://Apex.Oracle.com/pls/Apex/f?p=31517:176:103661090335568:

    But instead of the form of paintings, I use interactive report. After executing the query, I get the error:

    ORA-06550: line 1, column 147: PL/SQL: ORA-00936: lack of expression ORA-06550: line 1, column 13: PL/SQL: statement ignored

    My Sql query for the report:

    1. Select
    2. apex_item. Hidden (' 1, a. "DATA_ID DATA_ID").
    3. apex_item.select_list_from_query (10,
    4. b.WAVE_GROUP,
    5. "select GROUP_DISPLAY, GROUP_RETURN from dwd_wave_group,"
    6. "onchange =" f_set_casc_sel_list_item (this, f11_'|) LPAD (a.DATA_ID, 4, '0'). ") » ',
    7. '' YES. ''
    8. '',
    9. -Select Group «-»,
    10. "f10_" | LPAD (a.DATA_ID, 4, '0'),
    11. NULL,
    12. 'NO '.
    13. ) WAVE_GROUP,.
    14. apex_item.select_list_from_query ("11, b.") WAVE_USER,"
    15. "SELECT user name d.
    16. |' username r FROM dwd_user where group = ' | b."WAVE_GROUP."
    17. '',
    18. '' YES. ''
    19. '',
    20. "- Select user -",
    21. "f11_" | LPAD (a.DATA_ID, 4, '0'),
    22. NULL,
    23. 'NO '.
    24. ) WAVE_USER
    25. of 'DWD_WAVE_MASTER' a, b dwd_wave_assignment
    26. where a.data_id = b.data_id
    27. and b.wave_id = 'wave_1. '

    If I exclude the condition 2nd selection list query and change as below then everything works fine. Query does not give error on sql developer.

    Use: APEX 4.2.6 with Database 11g.

    1. apex_item.select_list_from_query ("11, b.") WAVE_USER,"
    2. "SELECT user name d.
    3. |' username r FROM dwd_user ",
    4. '',
    5. '' YES. ''
    6. '',
    7. "- Select user -",
    8. "f11_" | LPAD (a.DATA_ID, 4, '0'),
    9. NULL,
    10. 'NO '.
    11. )

    What is the data type of DWD_WAVE_ASSIGNMENT. WAVE_GROUP? If it is not a number, then it must be enclosed in quotes when it is used as a literal:

    apex_item.select_list_from_query(11, b."WAVE_USER",
    'SELECT username d, '
    
    ||'username r FROM dwd_user where groups = ' || dbms_assert.enquote_literal(b."WAVE_GROUP"),  
    
    '',
    'YES',
    '',
    '- Select User -',
    'f11_' || LPAD (a.DATA_ID, 4, '0'),
    NULL,
    'NO'
    )
    
  • Effect of Zebra in the rows of interactive report

    Hello, I have a question about the interactive report. Is it possible to put lines in the display of the report with zebra effect. I know that highlight line will bring closer the colors in the rows. But I need color alternating lines with no strings attached. Help, please!

    Thanks in advance.

    Emilie S

    Sinduja Sivasailam wrote:

    I am attaching the CSS file for the cat. I'm not sure where to add in the CSS file. Can you help me with this.

    And I'm not quite sure what you're talking about now. What joint? Where?

    Add these rules at the end of the custom style sheet/c/cummins/cummins_oracle_apex.css

    /*
      Zebra stripe effect on interactive report rows.
    */
    #apexir_DATA_PANEL>table .apexir_WORKSHEET_DATA tbody tr:nth-child(even) td {
      background: #ffffff;
    }
    #apexir_DATA_PANEL>table .apexir_WORKSHEET_DATA tbody tr:nth-child(odd)  td {
      background: #f8f8f8;
    }
    

Maybe you are looking for