Can we disable link in a classic report according to row content?

Hi, guys:
I have a question: I have a classic report, which has a column of link to another page in the same application; the link shows icon of Google map, user can see a Google map of the address listed in the same row of this report by clicking this link. However, some addresses are empty, so we want to disable the link in the column whenever the address in the same row is empty. We tried with all of APEX settings regarding column, but not successful. Could anyone help us on this problem?
so I have a further question is: is there anyway that we can manipulate APEX report content in PL/SQL code?
Thanks.
Sam

Hi,Paul:
I tried with your query:
select distinct
(case when (to_char(sl.ADDRESS1_LATITUDE) is null) and (to_char(sl.physical_address_latitude) is null) then null
else '<img src="#WORKSPACE_IMAGES#location.png"\'
end) MAP_link,
......and I set this column with column link text:
#MAP_LINK#
but it shows not the image icon (link is working though), but the text itself as
<a href="f?p=2001:3006:1633012192639501::NO:RP:YES:28F8F2C91B88<a href="f?p=2001:3006:1633012192639501::NO:RP:YES:4B58FD640A235491C077B36E20B0409A">&lt;img src="wwv_flow_file_mgr.get_file?p_security_group_id=18568811800631432&amp;p_fname=location.png"\</a>
{code}
if  I use query
{code}
select distinct
(case when (to_char(sl.ADDRESS1_LATITUDE) is null) and (to_char(sl.physical_address_latitude) is null) then null
else '<img src="#WORKSPACE_IMAGES#location.png"\image>'
end) MAP_link,
{code}
the column map_link is empty. I guess I do not know how to escape characters in javascript. Could you help me on this?
Thanks.
Sam                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How to create a dynamic action from link column in classic report

    I Have an apex page that display a modal window utilizing jquery. In the modal window I have a classic report with a link column that I want to capture its click event.
    I was thinking I could create a dynamic action with selection type=jquery selector. Not for sure if I need to do anything on link column and do not know the syntax
    for jquery selector. Would appreciate any help or direction???

    Thank you for your response. I am very new to Jquery so don't understand all that well.
    What I did:
    I created a dynamic action
    Event: Click
    Selection Type: jQuery Selector
    jQuery Selector: tdheaders
    Created True Actions
    I created an alert to see if this is being executed.
    Alert 'I made it here'
    What I have:
    I created a report region with the following query:
    Select empno, ename, 'SELECT' from emp
    where (ename like '%'||ltrim(rtrim(:P2_SEARCHPU))||'%'
    or :P2_SEARCHPU is null)
    I created 'SELECT' column as Link Column
    Report Attributes
    Link Text Select
    Target Page in this Application
    Page 2
    Region Header
    <div id="ModalForm2" title="Employee List" style="display:none">
    Region Footer
    </div>
    This report is displayed in a modal form when a button is clicked.
    Code for modal window in Page Header
    <script type="text/javascript">
    $( function() {
    $('#ModalForm2').dialog(
    { modal : true ,
    autoOpen : false ,
    buttons : {
    Cancel : function() {
    closeForm2();
    function openForm2()
    $('#ModalForm2').dialog('open');
    function closeForm2()
    $('#ModalForm2 input[type="text"]').val('');
    $('#ModalForm2').dialog('close');
    </script>
    I am trying to capture the click event on the link column of the report in the modal form. I want to pass a couple of column values
    back to the main form and close the modal window. I do not want to do the submit that happens if I click on the link column and link back to the main page(2)
    If I let the submit to happen, all other entered fields are cleared on my main form.
    Just don't understand the jQuery selector. I have no problem catching the button clicks on the modal form.

  • Where can I find link to purchase Crystal Reports 8.5 Developer Edition?

    Need to purchase and reinstall Crystal Reports 8.5 Developer Edition for legacy systems written in VB 6.0.
    Seems like I saw a SAP link for "emergency" purchase but cannot find again.
    gb inTN

    SAP has removed all legacy versions of Crystal Reports. Ido's suggestion is your only option now.
    Thank you
    Don

  • How to get add/edit button in classic report

    Hi,
    Iam trying to built a classic report,but here i need to have add/edit button.How can i achieve this in classic reports?
    I know this add/edit button with a pencil on note will come through the interactive report.
    But here iam trying to build a page same as the sample application Orders tab i.e. My Orders page.Here he created a classic report with alternating rows but has an add/edit button to it.How could that be achieved??
    Can Anyone help me in this regard to built the My orders page including the add/edit navigation getting to order for items.How can tat sample application of My orders built?
    TIA,
    Regards,
    Kranthi.
    Edited by: Kranthi.K on Sep 29, 2009 12:38 AM

    One more doubt is
    But here iam trying to build a page same as the sample application Orders tab i.e. My Orders page and when we hit add/edit image it directs us to the My orders info and order items.
    How can we build that page of My orders info and order items.Can anyone guide me through the steps the sample is created.
    I tried many times with master detail,but dint achieve what the default Sample Application has been done.
    Thanks in Advance
    Edited by: Kranthi.K on Sep 29, 2009 4:54 AM

  • Can I disable an "edit link" that is a column in a report?

    Hi -- I have a report page whose first column is a link -- it links to a form to edit the selected row.
    When the user's privileges are insufficient for editing, I want to display the link column, but disable
    it. I can completely NOT display it (using conditions) but don't like this option.
    I've tried setting both the item attribute and the link attribute to: id='EditRow', and then using
    a conditional region to disable it: document.getElementById("EditRow").disabled = true;
    This approach is working for HTML buttons, but not for this report column. How can I do this?
    Thanks,
    Carol

    Carol-
    I think that I had a similar requirement of a report where the user wanted links to display on certain records and on on others. I got this to work by putting the link HTML code in my SQL query. Here is a simplified version of my SQL:
    SELECT id
         , description
         , CASE WHEN nvl(l.letter_seq,0) = 1 then
                  '<a href="f?p=&APP_ID.:<APEX_PAGE_TO_NAVIGATE_TO>:&SESSION.::&DEBUG.::<Page Item Parameters>:<Parameter Values>"'
                ELSE
                  NULL
           END my_link
      FROM my_table
    WHERE ...
    So, if my LETTTER_SEQ=1, then I display a link, else I don't have a link. This way, you can also have links to different pages, based on the CASE statement. You don't need the double-quotes around the "f?p=" stuff, I couldn't get the string to display correctly without the double-quotes. Sorry for all of the editing and re-posting.
    Hope this helps.
    Dan
    Edited by: DTP on Sep 13, 2008 10:57 PM

  • Show / Hide DOWMLOAD link in classical report based on user rights

    Hi,
    using apex 4.1.
    How i can display or hide download link in classical report based on user rights .
    The User who has download rights ,can download the data from classical report Otherwise it should hide.
    I have passed the code in authorization scheme in shared component as named "VIEW"
    DECLARE
    VNAME VARCHAR2(1000);
    BEGIN
    SELECT PAGE_NAME INTO VNAME FROM APEX_APPLICATION_PAGES WHERE PAGE_ID = :APP_PAGE_ID AND APPLICATION_ID = :APP_ID;
    return GET_ADMIN_STATUS_VIEW_NEW(:APP_USER,VNAME);
    END;How i can call "VIEW'' name in download link.

    Right click on the export link, select copy url. Create a button with redirect to URL. Use that URL (or at least everything with and after f?p). Bind rights to the button.
    Or create a second identical report with different rights, give one export enabled and one disabled. The first is better, the second is easier :)
    Edited by: Joni Vandenberghe on 8-feb-2013 5:08

  • Classical Report for linking/applying the goods receipts transaction

    Classical Report for linking/applying the goods receipts transaction quantities against oldest schedule line item dates and then downloading the file to Excel.
    o        Classical Interactive Reports for calculating average Day Payable Outstanding. Option 1) in summary by company code, vendor, currency. (w/ DPO calc) Option 2) in detail (w/o DPO calc) Option 3) special summary by vendor and roughly convert different currency into one currency of choice, using current YEARLY rate.
    thow to do these objects
    plz assist me
    and how to transfer the data from from one server to other like 3.1 to 5.0
    plz assist me
    Edited by: Alvaro Tejada Galindo on Feb 21, 2008 5:28 PM

    Hi,
    You can use Call Transcation tcode
    for calling the transaction u can pass values to the transaction by using SET PARAMETER ID and GET PARAMETER ID
    technique.
    For downloading use function module LIST_DOWNLOAD
    or GUI_DOWNLOAD.

  • No data found when adding column link to classic report

    Hi,
    Oracle 11g r2, APEX 4.1.1.00.23.
    I have some classic reports.
    I go to Report Attributes, then I click Add Column Link in the "Tasks" right menu, it adds me a column link, I just add some text for the link and a page to go to.
    Then I run the report and I get :
    report error:
    ORA-01403: no data foundTested with several classic reports on multiple pages.
    Debug mode shows me :
    0.43816     0.00240     ...Execute Statement: select distinct [...] order by 3,11 ,4
    0.44056     0.00162     print column headings
    0.44218     0.04816     rows loop: 25 row(s)
    0.49037     0.00141     report error: ORA-01403: aucune donnée trouvée
    0.49175     0.00078     Computation point: After Box BodyWhen I run the query in my favorite tool, I get expected results.
    Did I missed something ?
    Thank you.
    Yann.

    Yann39 wrote:
    <font size="4">Is it an APEX bug ?</font>
    - Create a new Region of type Classic Report, then set Region source as :
    begin
    return test_return_query;
    end;- Run the page, the report works as expected
    - Go to Report Attributes and click Add Column Link (and just specify a text for the link and a page to go to).
    - Run the page, you should get the error !This might be unorthodox but try wrapping your returned query within an SQL statement, like so:
       begin
          return 'SELECT t.* FROM ('||test_return_query||') t';
       end;
    I can reproduce it on oracle.apex.com if needed...If my suggestion doesn't work, I think this might be the only option. You could create a new forum posting with the word "BUG" in the title, along with a link to this thread and the relevant workspace details (with guest developer credentials).

  • How to Link column header only in classic Report in APEX 4.1

    Hello Everybody,
    Probably there is a simpler way to do this, but I am not sure. I want a link on column header in Report on a specific column. The link will take me to new region or a page.
    How to achieve this in APEX 4.1
    Theme : Blue 2
    Database 11g
    I see there is a column link opiton, but that creates link for every row in that column on a specific icon, I just want link on a title of the column in Classic Report.
    For Example,
    if there are two columns Name and Client ID, which has 10 records to display on a classic report. I wan the link on Client ID on header only not on the records.
    Can anybody provide some simple solution for this.
    Thanks,
    --CP
    Edited by: cpora007 on Jun 22, 2012 10:38 AM

    Hello,
    I didn't understand, what do you mean by default it is going to sort popup. I have a classic report based on SQL, which generates a report with static header, there is no sort or any other link on that.
    I added a link in column header name with an anchor. It works and takes to the new page.
    But it is not a proper solution. A solution based on Jquery dynamic action is preferable. Also the preferred option is that the link opens a hidden region of the same page at the same location of the report and the report gets hidden. after the procession on the form region and submitting the update/ insert process. the report region shows up with the change data.
    Moving on to new page is 2nd option, if the first do not work.
    In the JavaScript, put: apex.submit("GO_TO_MY_OTHER_PAGE");
    On the page, create a Branch to the Second page. Set the condition to Request=Expression 1. Set the request to "GO_TO_MY_OTHER_PAGE"
    On which page I need to create a branch?, Is it on the report page or the form page.
    Thanks a lot for the response. I appreciate your kind efforts in this regard.
    --CP                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How can a classic report be filtered using one select item and dynamic action?

    APEX 4.2.1
    DB 11g
    I have a page with 4 reports on it.  The top report is an interactive report and the following 3 are classic reports.  The users would like to be able to use a select list to filter the 3rd report by PO line number without refreshing the entire page.
    After verifying that the report is set to allow partial refreshes, I took the following steps
    1.  Created a PO Line select item (p_po_line_select) in the same report region
    2.  Added p_po_line_select to the report query
    3.  Created a dynamic action on p_po_line_select with 2 true actions
         1.  Set value (p_po_line_select)
         2.  Refresh report region.
    The Set Value dynamic step was not working; I would get an out of memory error at line 2, memory stack error, or the value did not get saved to session state depending on the settings I selected.  I was able to get it working with the following set:
    1.  Action = Set Value
    2.  Set type = PL/SQL Expression
    3.  PL/SQL Expression = :p_field_does_not_exist
    4.   Page items to submit = blank
    5.  Selection Type = Item(s)
    6.  Item(s) = p_field_does_not_exist
    p_field_does_not_exist does not exist as a page or application item which leads me to believe that this is a bug and I am just lucky that it worked.  I would rather know how to do this properly.  Can someone please provide a link to a working example of how this should be done or state which settings are wrong?
    I was able to reproduce the issue in the following app
    http://apex.oracle.com/pls/apex/f?p=4500:1000
    workspace = occam
    user  test/apex1
    Thanks,

    STOP POSTING DUPLICATE THREADS.
    If you have additional information, continue the discussion by posting it as a follow-up on the original thread: What is the proper way to filter classic report using just an LOV select field with dynamic action?

  • Can we pass values when hyperlinking a classic report column?

    Version 4.2.1 (builder blue)
    Hi there,
    I have a classic report in which I have hyperlinked a column, using the standard link option in the report settings. In that we can also pass on values to to page that the linked report opens. However, I notice when I pop up the window for the value to be passed, it only lists the #XY# contents of the report. Lets say, I have created the link on page1 which when clicked opens Page 2,
    I want to pass the value of :P1_PERIOD to :P2_PERIOD
    Can we not do that through the link? If I just put the value in Item1 as P2_PERIOD and populate it with :P1_PERIOD, wouldn't that work?
    Thanks,
    Ryan

    ryansun wrote:
    Version 4.2.1 (builder blue)
    Hi there,
    I have a classic report in which I have hyperlinked a column, using the standard link option in the report settings. In that we can also pass on values to to page that the linked report opens. However, I notice when I pop up the window for the value to be passed, it only lists the #XY# contents of the report. Lets say, I have created the link on page1 which when clicked opens Page 2,
    I want to pass the value of :P1_PERIOD to :P2_PERIOD
    Can we not do that through the link?Yes, you can, but not using that syntax.
    If I just put the value in Item1 as P2_PERIOD and populate it with :P1_PERIOD, wouldn't that work?No, <tt>:P1_PERIOD</tt> is referencing the item using bind variable notation. That's only for use in SQL and PL/SQL contexts within APEX. Elsewhere in APEX (HTML source, links and branches etc) you need to reference item values using static text substitution:
    &P1_PERIOD.(Note the terminating dot.)
    Put <tt>P2_PERIOD</tt> in Item 1 Name and <tt>&P1_PERIOD.</tt> in Value.

  • Disable standard print option in the classical report

    Hi,
      I want to disable the standard print option in my classical report. How can i do that? Thanks in Advance.

    Yes it will come.
    Go to SE41. Create a Status say ZSTAT. In that assing some function code
    to print icon in menu bar say 'ZPRINT'.
    When you are done with this. Go to your program and insert following line after START-OF-SELECTION.
      SET PF-STATUS 'ZSTAT' EXCLUDING 'ZPRINT'.
    Then you will get disable icon for printer icon.
    hope this helps you.
    Enjoy SAP.
    Pankaj Singh

  • How can i disable Sharepoint 2010 xlviewer link

    Hi,
    I Prepare a report in excel 2010 file and uploaded in the Sharepoint 2010. And i see the report in the xlviewer.
    In the Viewer window top i see the link like this
    ServerName >FolderName > ReportName.xlsx
    How can i disable this link.

    Hi,
    If you want hide the breadcrumb in the xlviewer.aspx page, you can edit the xlviewer.aspx page in
    \14\TEMPLATE\LAYOUTS(backup the page before editing):
    Open the page using SharePoint Designer, under <asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" id="m_TitleContent"
    runat="server">, add the following css code:
    <style type=”text/css”>
    .s4-mini-header
    { display:none; }
    </style>
    Xue-Mei Chang

  • How can I disable a hover link in the phone view size?

    Hola
    How can I disable a hover link in the phone view size?
    I got this site where I got a gallery page,
    the pics have a hover/link state (?) where as you click in them
    they will open a bigger pic. (Prettyphoto)
    Thanks good.
    What I want to do, is that the hover state (?)
    won't show in the phone size.
    I know that I will need a media queries, but I'm not sure
    where or how to tackle this problem.
    This is the code where I have the pics
    <div class="grid_3 project-item bar">
                                             <figure class="project-img">
                                                 <img src="../images/gallery_pics/memos_bar_s5.jpg" alt="Memo's Cocina & Tequila Bar" />
                                                    <div class="overlay"></div>
                                                    <div class="mask">
                                                       <a class="icon-image"
                                                            href="../images/gallery_pics/memos_bar_b5.jpg"
                                                            rel="prettyphoto[gallery]"
                                                            title="The Bar">
                                                            <i class="icon-search"></i>
                                                     </a></div>
                                           </figure>
                                          </div>
    Thanks for your help

    If you don't want a :hover state to show in the phone css of a fluid grid layout, you would remove it from the global settings and only include it in the tablet and desktop media queries.
    Or are you trying to do something else?

  • Problem with download link for a BLOB Column in a "Classic report"

    I am having a problem where I cannot make a download link for a blob column function in a "classic" (non-interactive) report. I went through the tutorial on this topic and it was great help it working out the minor bugs, but I get a 404 error (apex_util.get_BLOB not found). For testing purposes I went ahead and created a an identical report on the same page that is an "Interactive report" and it works like a charm. Same query, same BLOB formatting Mask, pulling data from the same table. So, it really doesn't seem like an issue with the grants, since both reports should be executing as the same user.
    I know it sounds like the obvious answer is to just go with the interactive report and my problem is solved, but the rest of this site uses classic reports, and I don't need the sort features of an interactive report, and the slightly different style of the the report really stands out even if I turn off all the bells and whistles. I don't want to change the css to make them look identical, I just want a regular report to work.

    I eventually found another post: APEX_UTIL.GET_BLOB was not found on this server
    In this post there is the suggestion of putting "dbms_lob.getlength("var")" after the date field in your select. So I changed my query to have it at the end, and now my format mask (DOWNLOAD:table_name:ATTACHED_FILE:FILE_ID::FILE_MIME_TYPE:FILE_NAME:::attachment:Download) works like a charm, in a classic report.

Maybe you are looking for

  • Searching for a Certain iPhone App on Apple iTunes AppStore???

    ok i need to know if Apple AppStore has an iPhone App that Detects Rats & Mice??? why i ask??? Last night I Was Sleeping in My Room ok so there are times I Get up in the middile of the night & Have Very Bad Habits of Rocking back & Fourth at night so

  • IIS 6.0 proxy on Win 2003  - "Page cannot be displayed"

    Hi, I have 2 Win 2003 Server machines with IIS 6.0. I am using the IISProxy for IIS to SAP WebAS on both IIS 6.0 setups. The same files with the same proxy configuration are being used on both the machines. While on one setup it is working fine, on t

  • How do i get the music on my phone onto a new itunes account

    I need help getting the songs on my phone onto my new computer and onto itunes

  • Having trouble writing to a database although SQL query is correct

    Hi there. I am trying to write an sql query to a database but I am failing to understand what is going wrong in terms of executing the query. I have the following code. static public int writeToStockTable (String suppIn, String nameIn, String typeIn,

  • Transport system problem

    Hi, After upgrading my BY 3.0b kernel version from version 139 to 155 i noticed that i can't move transports from my bw dev system to my bw pruduction.in transaction stms when i try to get to import overview i get the following error - error while re