Link column in report

Hello,
How can I create a link column in a report region (not in an interactive report region).
Link Column configuration section is not available for a report region.
APEX version: 4.0.1.00.03
Thanks.

Dave,
Do you not see a section labeled
"Column Link"
when you drill down on a particular report column??? I see this section for both Interactive and Classic reports.
-Joe

Similar Messages

  • How to send single id value in apex url on clik of link column in report

    Hi,
    Im using the following code to generate a report, in which BP_NAME is a link coloumn ,So I want to send the id(best_attachment table column ie bpa_id) to the next page(6) when I click on the link.If I hoover my mouse on the link it is showing the url like
    ..../f?p=114:31:5954054962330632:REQ:NO:P6_BP_ID:6,12,14(for the record 30 and if it is a two name it will pass two id)
    But i need to pass only one id on click of a link ,but in the url it showing three id.
    ===code====
    select bp_id,
    (select LISTAGG(BP_NAME, ';') WITHIN GROUP (order by BP_NAME) from best_attachment bpa where bpa.bpa_bp_id = bp.bp_id ) BP_NAME
    from best_practices bp
    ===========
    Ex
         Link column<br>
    10 Whalen
    20 Hartstein
    30 Raphaely;
         Khoo;
         Tobias;
    40 Mavris
    If I click any name on 30 record that is Raphaely, Khoo,Tobias It is showing the three id in the url and passing the same. Pls tell me how to pass single id(bpa_id) on clik of a link.And how to alter the above code to achive the same.
    Regards
    Balaji

    No One :(

  • Interactive report run pl/sql by clicking on link column

    Hi!
    How can I run pl/sql script by clicking on a link column of an interactive report?
    Andras

    EDIT : Oh sorry don't saw the date, I'm a little late...
    Hi,
    if you want a link for each row, an other solution is to include the link column in your query, which would be more customizable, ie :
    select
    COLUMN1,
    COLUMN2,     
    '<ahref="f?p=&APP_ID.:6:&APP_SESSION.::NO::" onclick="your_function('||YOUR_ID_COLUMN||');return false;">link or picture</a>' as "link",
    COLUMN3;
    from
    ...As you see, you will have to include the ID (primary key) column to your report ("hidden") to identify the row clicked when calling your function.
    If you want to use the Link Column property in the report attributes, you will have to call you js function in the "URL" field like that :
    javascript:your_function('#YOUR_ID_COLUMN#');
    Yann.
    Edited by: Yann39 on 17 sept. 2010 02:41

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

  • Column link in interactive report to run procedure and refresh

    I have an interactive report which displays a report based on a table. This is a summary table populated overnight from some complex spatial analysis, which takes a few hours to run. I have a requirement to allow the user to refresh one row in this table - they would do this during the day if they needed to see the most up-to-date values.
    I have a package with two stored procedures - one which does the full refresh of the table, and one which refreshes one row when PK is passed in.
    One of the columns in the table is 'last_refreshed' which is a date - this is shown in the interactive report including minutes.
    I was thinking that maybe I could include a hyperlink on this 'last_refreshed' date column in the report. When a user clicked on it, it would run the stored procedure for that row and would refresh the report.
    Any ideas on how I could do this? I've hit a bit of a dead end for now.
    Thanks

    OK, I worked it out.
    I created an application item to store a global variable.
    Then in the column attributes of the report, I set the 'last_refreshed' to be a linked column, setting target to the current page and then setting the application item global variable to be the row PK.
    Then I have a Process which runs the required stored procedure reading the application item global variable, set to run on page load.
    Sorted.

  • Interactive report conditional display of link column - apex 4

    I create an interactive report
    select object_id,
           object_name,
           case
            when mod(rownum, 2) = 0
            then 'block'
            else 'none'
           end  display_link
    from user_objects
    where rownum <= 10in the Link Column for the report I selected one of the edit icons and put the following in the link attributes
    style="display:#DISPLAY_LINK#"I also edited the object_id and set the Column Link and selected an edit icon and put the same style in the link attributes.
    The link under the column displays correctly but the link for the report does not seem to substitute the #DISPLAY_LINK# from the report. Any Ideas?

    Here's how I've done this:
    SELECT ORG_ID,
           CLEARER_NAME,
           LEGAL_NAME,
           MARGINING_ACCOUNT,
           RULE_GROUP_DESCR,
           VIOLATION_COLOR,
           VIOLATION_LEVEL,
           CASE MARGIN_IND
            WHEN 'Y' THEN '&nbsp'
            ELSE '<a href="#" title="Ignore This Alert"><img src="/i/ice/images/hide.png" alt="Ignore"></a>'
           END AS IGNORE_LINK,
           ....This takes care of either showing (or not showing) the link.
    IN order to process when it is present, not that the address is "#" This will cause your cursor to change to a hand (or whatever your pointer is) when the mouse floats over the link. The actual transfer to the next page, I handle with jQuery/JavaScript.
    Create a Dynamic Action.
    Event: Click
    Selector Type: jQuery Selector
    jQuery Selector: 'aalt'
    Event Scope: Live
    (note that the jQuery Selector is finding the alt attribute that I set on my link in the SELECT above . Tweak as needed.
    This "Action" for this DA will be to "execute JavaScript code"
    Normally, I would set some values into Page Items and then create a branch to pass this values to the next page. I am doing the same thing in the following code. I am getting the values off of the row wherein the user clicked on the link. I am setting these values from the row into the page item values. Then, I am submitting the page. All the "htmldb_Get" business is just stuff that I have to do to get the page item values into the session (so that I can pass them to the next page).
    var clickedRow = this.triggeringElement.parentNode.parentNode.parentNode;
    var ruleGroupDescr = $(clickedRow).children('td[headers="RULE_GROUP_DESCR"]').html();
    var ajaxRequest = new htmldb_Get(null, $x('pFlowId').value, null, 0); 
    gReturn = ajaxRequest.get();
    $s('P31_RULE_GROUP_DESCR', ruleGroupDescr );
    ajaxRequest = null; 
    var clearerName = $(clickedRow).children('td[headers="CLEARER_NAME"]').html();
    var ajaxRequest = new htmldb_Get(null, $x('pFlowId').value, null, 0); 
    gReturn = ajaxRequest.get();
    $s('P31_CLEARER_NAME', clearerName );
    ajaxRequest = null; 
    apex.submit("IGNORE");Finally, just create a branch to the next page and set the items on the next page to the ones on this page that are being set in the above script. Note that in my example, I have set the request to "Ignore" when I submitted; so, I set the condition of my branch to be Request = IGNORE.
    Hope this helps,
    -Joe

  • Link column from an interactive report to insert a row in a tabular form

    Hi, I need your help, i'm new on APEX and i really need to make a "link column" from an "interactive report" to insert a row into a "tabular form".
    I mean that when you click the "link column" instantly create a new row in the Tabular form with the information of the linked row on the interactive report. Its something like that.
    I really appreciate your help.
    Ricardo Capuz

    Hi Ricardo,
    You can use the following code as per your requirement (this is just an example),
    (In this case IR report is in Page#1 and Tabular form is in Page#2),
    On Page#1, Create a hidden item (i.e 'P1_ID')
    IR Report query as like the below,
    select empno,
    ename,
    job,
    mgr,
    hiredate,
    sal,
    comm,
    deptno,
    empno "copy"
    from empUse the below JS code in Page HTML Header section,
    function f_insert_row(pSub)
        $s('P1_ID',pSub);
        doSubmit('ADD');
    Edit  Report Attribute -> copy column -> Under Column Link
    Link Text: Select your column name (i.e. #EMPNO#)
    Target: URL
    URL: javascript:f_insert_row(#EMPNO#);
    Then create a process to insert like below,
    BEGIN
    insert into emp_test (select * from emp where empno=:P1_ID);
    END;Process condition as * Request=Expression1* in Expression1 as 'ADD'.
    At last, create a branch to Page#2, Check 'include process success message' and with the same condition as * Request=Expression1* in Expression1 as 'ADD'.
    Thanks,
    Lakshmi

  • Download Link as a Column of Report

    Hi All,
    I really tried from my side to somehow implement this requirement but couldn't find a way.
    Requirement: A report with two main columns - One has unique value and the other has a download link. This download link need to be used to fetch a set of data from the database table using the other column's (unique) value. Then, user should get a popup on his screen to download the fetched data in csv format.
    Please give some guidance or pointers to resolve this issue.
    Regards,
    Mangal

    Hi Mangal
    I've done this before actually. You can create a dummy page with a process (on load before header) as a PL/SQL anonymous block. I got code from Denes Kubicek's site which has details of how to generate CSV output using the htp.prn funtion. Then I created the 'download' link in a report column to go to that page passing a value into a hidden field with the unique id of the row.
    The code on the new page looks something like this but I would refer to Denes' work for full information (most of this is copied from him).
    BEGIN
    -- Set the MIME type
    owa_util.mime_header( 'application/octet', FALSE );
    -- Set the name of the file
    htp.p('Content-Disposition: attachment; filename="download.csv"');
    -- Close the HTTP Header
    owa_util.http_header_close;
    htp.prn('Header Name,');
    FOR x IN   (SELECT field1, field2, field3...
                  FROM my_table
                  WHERE my_id = :PX_HIDDEN_ID)
    LOOP
    -- Print out a portion of a row,
    -- separated by commas and ended by a CR
    htp.prn(chr(34)||x.field1   || chr(34) ||','|| chr(34) || x.field2   || chr(34) ||',' ||
             chr(34)||x.field3..... || chr(34) ||chr(13));
    END LOOP;
    -- Send an error code so that the
    -- rest of the HTML does not render
    htmldb_application.g_unrecoverable_error := true;
    END;Hope this helps.
    Cheers
    Ben

  • How to add a "custom" link to a report column

    I have a "Tasks" report that is based on a view. the view is a union of 2 tables: "Project tasks" and "Non-project tasks", each one of them has its own form to enter the data.
    I need to add a link from my report to to either form of the mentioned tables. So, if the task is project related, it should go to the "Projects Task" form, but if the task is no related to projects, the link should point to the second form.
    How can I accomplish that in Apex 4.0 ?
    Thanks

    The view has a column for project name, if it was a non-project task, the column is defaulted to "Non-Project"Add another column to the report query (or to the view if it's a Wizard report), based on that column:
    case project_name
      when 'Non-Project' then '201' /* Page ID of non-project task form */
      else '202' /* Page ID of project task form */
    end form_page
    ...Then add a link to the required report column as described above by Alan, setting the target Page attribute to <tt>#FORM_PAGE#</tt>, the Name attribute of the task ID parameter to <tt>P#FORM_PAGE#_TASK_ID</tt> (the form pages will need to take task ID parameters following this naming convention), and the Value attribute to the task ID column from the view.

  • Interactive Report Link Column HELP FROM GURUS requested

    Hi,
    I have an interactive report the data of which returns a file name for an image. I would like to use the Link Column (Link to Custom Target) option. The column in my underlying query has the image file name #ILINK#.
    The Target URL is correctly formed using the #ILINK# bind variable http://myserver.mycompany.com/cgi-bin/oracle/img.cgi?img_file=#ILINK#;size=full
    However, for the Link Icon (which I wanted to be a dynamic thumbnail of the linked image). The #ILINK# bind variable is not read. Is this because the Link Icon cannot be dynamically determined and must always be the same image?
    I can get this working as a regular report using HTML expression, but I really wanted to harness the power of an interactive report.
    Thanks

    Hi,
    in this case you could build the required html-tags in your SELECT statement, like this:
    SELECT EMPNO
         , ENAME
         , '<a href="blablabla/index"><img src="'||ENAME||'.gif">'||ENAME||'</a>' AS ENAME_LINK
      FROM EMP
    ;brgds,
    Peter
    Blog: http://www.oracle-and-apex.com

  • Interactive Report : Conditional Link Column

    Hi,
    I want my interactive report Link Column (Link to single row view) will be visible/active only when for the logged in current user.
    I am keeping the current user data in an "application_item".
    When ever I am trying to put Condition type as "Value of Iten in Expression1 = Expression 2" with
    Expression1 = CURR_USER (application item) and
    Expression2 = First_user (user_Name)
    the link column becomes invisible for the entire report.
    Please Please Please help.
    Thanks
    Neetu

    Hi,
    See if condition type "User is Authenticated (not public)" is what you looking for.
    Br,Jari

  • Column Links in Apex Reports

    I am using version 4.0 of APEX.  My question concerns linking to other APEX pages from a report.  In APEX we link to another page, which may be a form or another report, by using a column in the report as a link column.  Any column may be used to transfer values from any other column.  This works fine, but the disadvantage is that whichever column is used as the link column has a heading which identifies the column's purpose but may not identify the purpose of the transition to another page.  In Oracle Forms, we could use buttons as a column of the multi-row screen (i.e. same as APEX report), and the button's label identified the purpose for the transition.
    Is there any way to create a column in an APEX report  to serve the same purpose as the button in Oracle Forms?

    Doug wrote:
    I am using version 4.0 of APEX.  My question concerns linking to other APEX pages from a report.  In APEX we link to another page, which may be a form or another report, by using a column in the report as a link column.  Any column may be used to transfer values from any other column.  This works fine, but the disadvantage is that whichever column is used as the link column has a heading which identifies the column's purpose but may not identify the purpose of the transition to another page.  In Oracle Forms, we could use buttons as a column of the multi-row screen (i.e. same as APEX report), and the button's label identified the purpose for the transition.
    Is there any way to create a column in an APEX report  to serve the same purpose as the button in Oracle Forms?
    When discussing "reports" it is essential to indicate whether this means a standard report or an interactive report in order to receive an appropriate response.
    It is possible to create a link column that is distinct from report data columns. In standard reports, this is done using the Add Column Link option from the Tasks menu in the right sidebar of the Report Attributes page. In interactive reports, define a Link Column on the Report Attributes page.
    To provide further information about links to users in both cases, specify an HTML title attribute for the link in the Link Attributes property of the link definition. This will be rendered as a tooltip when the cursor hovers over the link in visual browsers, and as an audio cue on navigation to the link when using a screen reader.

  • Link column - populating a form from an interactive report?

    Hi
    I have an interactive report which works great. I have now added a link column which leads to a form in my application,
    How can I link the records in the interactive report with the form, so when a user clicks on the link column the form is populated with the details of that record from the interactive report?
    Hope this makes sense

    Hi,
    The easiest way is to create it using wizard when you create a page:
    Create Page -> Form -> Form on a Table with Report
    The link will be created automaticaly on the base of the table Primary key or Rowid.
    Otherwise: On the created Form there should be a page process called similar "Fetch Row from TABLE" (it is automated row fetch process)
    There should be defined the primary key Item.
    Now you can fill this item in report link attribute:
    Link to Page -> your Form
    Set the item Name and Item Value parameters:
    FORM_ITEM_PK #REPORT_ITEM_PK#
    If the Form is based on another table -> just use
    Link to Page -> your Form
    Set the item Name and Item Value parameters(here you can populate more fields - but there will be good to use some dynamic action instead):
    FORM_ITEM_1 #REPORT_ITEM_1#
    FORM_ITEM_2 #REPORT_ITEM_5#
    FORM_ITEM_3 #REPORT_ITEM_3#
    Regards
    J :D
    Edited by: jozef_SVK on 16.7.2012 4:22

  • Interactive Report, Link Column, Link Icon problem.....

    APEX v3.2.000.27.
    I have an interactive report and in the "Link Column" section there is a "Link Icon", if I try to substitute using one of the Columns, #IMAGETOUSE#, it does not do the substitution....
    Has anyone ever seen this happen before? It does the substitution for #IMAGE_PREFIX#, but not for any column, no matter which column I use...

    Hi,
    The subsitute #IMAGE_PREFIX# is just the path of the image stored in apex installed directory. If you are trying to access the image that you have manually uploaded try using #WORKSPACE_IMAGES#. If you have a column name "COL1" substituting #COL1# in link text will display the value of the col1 in the report and it will have the url defined in URL section.
    Thanks,
    Manish

  • Set report radio group row selector when a link column is clicked.

    Hi can anyone help?
    I have a sql report with a radio group record selector on the left, this is used on click to populate some extra fields on the page. I also have a link column on the right of the report that is used to display another popup page. What I want is to synchronize the radio group selector when the link is clicked (that is select and click the radio group of the current row when the link column is selected).
    Page layout
    rg1 row details link pen icon
    rg2 row details link pen icon
    rg3 row details link pen icon
    extra field 1
    extra field 2
    Report attributes - link column URL.
    JAVASCRIPT: modalWin2('f?p=&APP_ID.:#SHOW#:&SESSION.::::SAVE_STATUS:N');
    I’m assuming I can call another javascript function from the link URL above and somehow I get the number of the row of the link selected . I think if I can get that I can use the code below where n is the row number of the link selected.
    Javascript :-
    var l_check = $x_FormItems($x('EVENT_HIST1'), 'radio');
    l_check[n].checked=true;
    var l_click = l_check[n].click();
    Thanks Pete

    Pete:
    One way to solve your requirement is as below
    Change the report query to be something similar to
    select
    apex_item.radiogroup(40,empno,null,null,'id=rg_'||rownum) rad,
    ename,
    '<a href=javascript:fx('|| empno ||',' || '"rg_'|| rownum ||'")><img src="#WORKSPACE_IMAGES#delete.gif"></a>' link_column
    from empAnd the JS function fx as function fx(emp,rgId) {
    $x(rgId).checked=true;     // checks radio on this row
    modalWin2('f?p=&APP_ID.:' + emp + ':&SESSION.::::SAVE_STATUS:N'); // popup page call
    }varad

Maybe you are looking for