Disable a report link if no data found.

I have a link from my portal report on a field. I want to disable the link if no data will be found. How do I do this.
Rich

Hey Rich,
Using Portal links are easy but at times they can be very limiting. You actually have to go one step backwards and create the link yourself in the SQL statement. You would call a function in the sql statement to produce the link.
SELECT
display_link_update(asset_seq) as Update_Record,
column2,
column3,
from table
display_link_update is the function call and I'm passing one variable, asset_seq. Now the function can do the link creation.
CREATE OR REPLACE FUNCTION "PROPERTY"."DISPLAY_LINK_UPDATE"
(asset_seq1 in varchar2) return varchar2 is tag varchar2(4000);
begin
if asset_seq1 is not null
tag:='Update Link';
else
tag:='Update Link'
return tag;
end;
I hope this helps.
Tom Watts

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

  • Report Query returning "No Data Found" with bind variables

    I put a simple query into Report Query:
    Select "bluefish". "name" as "name",
    "bluefish"."primary_flag" as "primary_flag",
    "bluefish"."status" as "status",
    "bluefish"."ID" as "ID" from "bluefish" "bluefish" where "bluefish"."ID" = :P3_XPRINTID
    When I test the query, data is returned; however, when I try to run the query using "Test Report" button, I get an error 01403 No Data Found. If I replace the bind variable with an explicit value, the report works.
    Anyone have any ideas as to what is causing this problem? I am using the Generic Report Layout, with various output types. I AM editting the query and defining the bind variable before I test the report (otherwise, the query wouldn't run).
    Charles

    Sometimes if you create a form/report/whatever using the wizards, it will create an After Submit process called something like Reset Page - basically you want to make sure you don't have any After Submit processes that call a Clear Session state (it may say something like Clear Cache for Page).
    In your branch, there is also a box that says Clear Cache - you want to make sure that does not have page Number 8 in it or it will clear your session state.
    Put the page in Debug mode and read through it - check to make sure your value is getting saved and maybe you can see what is going wrong.

  • Bex report issue - no applicable data found when we drill down on free char

    Hi All,
    We are facing some strange issue  with one of the report.
    when user run the report for a week  (02/02/2009  - 02/08/2009) and then drill down on particular char  its working fine (first time).after that when he is trying to change and execute the report for other week on the same instence ( 02/09/2008 - 02/15/2009) by clicking on refresh and passing new values to the variable  its showing up correctly at the time of drill down on free char its showing as *no applicable data found.*
    when he logoff the system completey and run the report for the week( 02/09/2008 - 02/15/2009) values it is showing up with values even tough he drill down on free char.
    issue basically when he was trying to drill on free char by chaging different date values  in the same instance by clicking on refreh and by entering diffrent values  its showing up as not applicable data found.
    but when he enters the values for different weeks  each time by closing the system and relogin report is working fine and showing up data eventough he drill down on free char.
    Please help me out!

    Dear
    Please check if any condition or exception you have created for that query.
    Or still problem exists check SP level.
    Regds,
    Sachin J

  • Hiding table items in web report when "no applicable data found"

    Hi,
    i want to hide a complete web item from a web report using web table interface
    when i have the situation "no applicable data found".
    I cannot use javascript due to requirements in my solution.
    can i set some attributes in the START method in the class?
    i can see there is an attribute N_NO_DATA which tells if no data is found.
    Can i use this in the other methods to hide the complete table including table heading?
    Best regards,
    Jarle

    Hello,
    datas are available in the Cube, they are displayed when there is no filter or when only one single value is selected in the filter.
    The problem happens when two or more values are selected in the filter.
    Example :
    The field selected is Profit Center.
    Without filter the I can see :
    PC1
    PC2
    PC3
    etc...
    If I select in filter the value PC1, I can see :
    PC1
    If I select in filter the value PC2, I can see :
    PC2
    But If I select in filter the values PC1 and PC2, I can see :
    No Applicable Data Found.
    BR,
    Pedro.

  • Report Report Interface: No applicable data found

    Hi.
    I m using the Report Report Interface and getting:
    No applicable data found
    while calling in GoTo the second Report.
    While removeing  the filters threre is data .
    What conditions needs to be met that there is data displayed?
    Thank You
    Martin

    Hi,
    Please execute the second report separtely with the same filter with which you are getting 'No applicable data found'.
    Please check whether executing second report gives you any data with same filter or not.
    If it doesn't give , then it means there is no data available to be displayed for that particular filter combination in cube.
    In that case you will have to filter the data which is available in cube or need to load the data as required.
    Regards,
    Amit

  • Report Error: No Applicaple Data Found

    Hi All,
    Good Evening
    BI 7.0 Report I have simply Drag and drop some Char (rows) and some Key(colum) then Executed but, i am not able to see the report.
    It saying No Applicaple Data Found.
    What to do, Please provide solutions, please.
    Thanks & Regards,
    Vijaay.

    check whether data is loaded into target on which report is built....If data is there in the target then check the filters and restrictions in the query which is restricting the data to display..
    hope it helps

  • "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.

  • Listview Report: how to hide "no data found" message

    Good evening everybody,
    I use the "jquery mobile theme 50" and the "listview report" of it. The report always shows "no data found"-entry  if the source query doesn't return any row.
    Is there a way to suppress this entry in Apex? I can hide "no data found"-entry in html using CSS, but I don't want to have it in the html at all.
    Has someone an idea?
    Thanks a lot!
    Jewgenij

    Thank you very much for the answer!
    Unfortunately it works only for desktop themes but doesn't for jquery mobile Theme 50 :-)
    The help text for the listview's (jquery mobile Theme 50) property "No Data Found Message" is
    Defines the text message that displays when the query does not return any rows. If no value is specified the text of the system message APEX.REGION.NO_DATA_FOUND_MESSAGE is used.
    BR
    JeMo

  • BeginDDL is failing with no data found ORA-01403

    It appears to us that running the AlterVersionedTable command to drop an index has caused an issue for one of our tables that is versioned.
    begin
    dbms_wm.AlterVersionedTable(
    table_name=>'PAC_PMD.CURRENT_DMS',
    alter_option=>'DDL',
    parameter_options=>'ddl=drop index PAC_PMD.CURRENT_DMS_UK1, force=true', ignore_last_error=>true);
    end;
    After running this command and then trying to execute BeginDLL we are getting the error ORA-01403 – No Data Found.
    Also the state of the table in all_wm_versioned_tables is set to VERSIONED.
    Any ideas?

    Hi Ben,
    So how do we create the index again? AlterVersionedTable does not allow for creating an index and beginddl is failing. Oracle suggested to disable versioning but we are still getting no data found.
    Error starting at line 1 in command:
    exec dbms_wm.disableversioning('PAC_PMD.CURRENT_DMS', ignore_last_error=>true)
    Error report:
    ORA-01403: no data found
    ORA-06512: at "WMSYS.LT", line 9337
    ORA-06512: at line 1
    01403. 00000 - "no data found"
    *Cause:   
    *Action:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Purchase requisition report not showing any data R12.04

    when i run "Printed Requisitions Report". Report run without any information.
    EBS R12.04

    Please refer to Note: 472332.1 - R12: Printed Requisition Report Ends With "No Data Found"
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=472332.1

  • Print link on report shows 'no data found' when LOV has not been used

    Hi all,
    I have a simple standard report that queries data based on the value in a Select List. This Select List allows users to pick a year for the report. The LOV has a default of TO_CHAR(SYSDATE,'YYYY').
    If I open the page using the associated Tab everything wotks OK. However, if I open the page via a button on my home page, the prink links fails:
    The page opens OK, the select list defaults OK and the report shows the correct data. However, if I click on the 'Download as CSV' or 'Print' links I get 'no data found'.
    If I update the LOV to 2010 everything works. If I set it back to 2009 evenrything works. I just cant get it to work when I open the page.
    I have tried adding computations to get this to work, but this does not seem to help.
    Any ideas?
    Thanks,
    Martin

    Hi,
    It would depend on what has been added, if anything, to the redirect. The redirect should just function as though you had typed in a URL into the address bar and pressed Enter. The page doesn't get submitted, so any data entered onto the page itself is, unless it is already in session, lost. A button, however, should submit the page and Apex will store all values in the session. So, if the value you need for the LOV is from the previous page, then this is the preferred method - but, note, that the redirect can also store values provided the page item name and the value is included in the redirect's URL string
    Andy

  • IR (interactive report) Rows found: 1 + No data found on deep linking

    I am using a deep linking to a page with interactive report on it with following URL: http://...../f?p=my_app_id:target_page::::target_page:param1, param2:param1_value, param2_value
    After login, I arrive on the page wit "No data found" message in the report region.
    Clicking on "Session" link, I see that app/page variables are set. Passing in debug mode, I see"Printing rows. Row window: 1-15. Rows found: 1" right before "No data found" message.
    If I use the select with values, I get several lines of result.
    has anyone fell on this problem and solved it?
    Igor

    OK, solved :o)))
    Inside the package function returning URL to call, I insert a row into the table to query and I return its sequence number. The function is launched by an application outside APEX.
    So, if I don't make commit immediately before returning URL, APEX sees nothing.
    I have added a commit before returning from the function and now everything is OK.

  • Report export to csv - no data found in report

    Hi all,
    I've followed the steps to export my report to a csv file. In the Report Attributes, Report Export section I have:
    Enable CSV output: Yes           Separator: ,           Enclosed By:
    Link Label: Export
    Filename: Changes.xls
    But when I open it in excel, no data found is the only test showing in cell A1.
    Is there something else I need to do? I don't understand why it's not exporting my report - there is data on my screen in the report.
    Thanks,
    Dave

    Dave,
    Have a look in my blog:
    http://deneskubicek.blogspot.com/2007/03/csv-export-problem.html
    There is an explanation on how to avoid that.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Report shows "No data found" when validation fails

    Hi folks,
    I'm new to the OTN and have a short question regarding validations/report pagination.
    We are using Apex 4.0.2.00.07.
    I have a page containing a report with three columns.
    First column is a checkbox (f30), the second one a date picker and the third one is a value field (f34).
    I'm trying to build a validation for the value field (should only allow numeric values, but is varchar2) and used a validation with "Function Returning Boolean".
    The PL/SQL code is:
    DECLARE
    vrow BINARY_INTEGER;
    v_number FLOAT:=0;
    BEGIN
    FOR i IN 1 .. APEX_APPLICATION.g_f30.COUNT
    LOOP
    BEGIN
    vrow := APEX_APPLICATION.g_f30 (i);
    v_number := to_number(APEX_APPLICATION.g_f34(vrow));
    RETURN TRUE;
    EXCEPTION
    WHEN OTHERS THEN
    RETURN FALSE;
    END;
    END LOOP;
    END;
    The validation works fine, but every time I enter a non numeric value and the validation fails (error message is displayed correctly as notification) I get a "report error: ORA-01403: no data found" in the pagination area of the report.
    Tried to disable pagination completely, but the error still displays when the validation fails.
    Any help would be appreciated.
    Thanks in advance and regards
    Sandro

    Content of the checkboxes is ok, debugging showed
    1:7     
    2:8
    (records 7 and 8 where ticked)
    Debugging console also shows:
         0.10900     0.00000     Processing point: Before Box Body          
         0.10900     0.00000     Region: Shareclassinformation          
         0.10900     0.00000     Item: P59_IS     
         0.10900     0.00000     Item: P59_NA
         0.10900     0.00000     Item: P59_CO
         0.10900     0.00000     Region: Attribute Selection
         0.10900     0.00000     Item: P59_LO
         0.10900     0.00000     Item: P59_ID
         0.10900     0.00000     Item: P59_IDAH
         0.10900     0.00000     Item: P59_IDAT
         0.10900     0.00000     Item: P59_SHO
         0.10900     0.00000     Item: P59_UTD
         0.10900     0.00000     Item: P59_X NA
         0.12500     0.00000     Region: Attributes
         0.12500     0.23400     Item: P59_NOT
         0.12500     0.00000     show report
         0.12500     0.00000     determine column headings
         0.12500     0.00000     parse query as: DB
         0.35900     0.14100     binding: ":P59_LOV_AT"="P59_LOV_AT" value="64"
         0.35900     0.00000     binding: ":P59_IDT"="P59_IDT" value="51"
         0.50000     0.01500     print column headings
         0.50000     0.00000     rows loop: 20 row(s)
         *0.51500     0.01600     report error: ORA-01403: no data found*
         0.51500     0.00000     Computation point: After Box Body
    ...

Maybe you are looking for