Apex 4.2: changing link column from ROWID to ID

Hello
I have a report linked to a form. The link column is currently ROWID and I want to change it to the Primary Key of the DB table, which is called ID.
I have done this before on a previous report/form where that ID was a display column and it works fine. Now I'm trying to copy what I did, which is this:
On the report page, go to Interactive Report attributes, scroll down to Link Column, and for Item 1, change the Name and Value.
The problem is that Name does not list P52_ID. If I type it in, it throws an error when I run the page.
I think I added ID, which is also a Display column, later on, so I wonder whether Apex has a refresh issue and can't "see" P52_ID.
Does anyone know how I refresh my list, or whether in fact something else is causing this?
Thanks
Emma

>
It's not very clear from this what you're trying to do/have done. (Creating examples on apex.oracle.com is a good way to avoid misunderstandings in conveying the nature of your problems.)
I have a report linked to a form.Which page contains the report and which the form?
The link column is currently ROWID and I want to change it to the Primary Key of the DB table, which is called ID."Link Column" refers to the Link Column section in the IR attributes, rather than the Column Link section of the ID column attributes?
I have done this before on a previous report/form where that ID was a display column and it works fine. Now I'm trying to copy what I did, which is this:
On the report page, go to Interactive Report attributes, scroll down to Link Column, and for Item 1, change the Name and Value.
The problem is that Name does not list P52_ID. If I type it in, it throws an error when I run the page.What is the error?
What are the values of the Link Column, Target and Page properties?
Is P52_ID an item on the target page?
What are the Source: Automatic Row Processing (DML) properties of the ARF process on the form page?
I think I added ID, which is also a Display column, later on, so I wonder whether Apex has a refresh issue and can't "see" P52_ID. Added ID where? To the table? The IR query? The form page?

Similar Messages

  • 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

  • Change download columns from report

    Hi! I have a report, with some columns and I'd like to change the columns when downloading as csv file.
    Let's say that I have a report with col1,col2, col3,col4 and some hidden columns: col5, col6, col7. When I download the file I'd like to have only
    col2, col3, col6, col7.
    How can I do this?
    Thanks!

    Currently there is no way to do this. The CSV export function just re-runs the exact same report as you see it on the screen and transforms it to CSV format.
    Another option is to create a report with the columns you want in the CSV on another page, and use the export:CSV template as in
    http://tinypic.com/jzya2t.jpg
    and provide a link to that page. This will run that page and instead of showing the page it will popup the File download box.
    Hope this helps.

  • 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

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

  • 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

  • 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

  • How to change the column value which is coming from DO by a calculated field?

    Hi all,
    I want to change a column value based on my calculated field value. I have a column which is coming from DO which is based on External Data Source. I have a calculated field in my report. When there is any change in the calculated field then the column which is coming from DO needs to be changed. It means the DO needs to get updated when there is a change in the calculated field. Or like if the calculated field meets some condition then I need to change/update the same in the DO. This has to be done on the fly. the report should not submitted for this. when there is a change in the calculated column the DO column needs to get updated.
    Thanks,
    Venky.

    Ok, I've been a customer for very many years, I'm on a fixed retirement
    income.  I need to reduce my bills, my contract ends in  Dec. I will be
    pursuing other options unless I can get some concessions from Verizon.  My
    future son-in-law was given this loyalty plan, so I know this is a
    reasonable request.  My phone number is (removed)  acct number
    (removed)
    >> Personal information removed to comply with the Verizon Wireless Terms of Service <<
    Edited by:  Verizon Moderator

  • 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 :(

  • Need to change the column constrain from NOT NULL to NULL

    Hi,
    My requriment is I have to change the column constraint (NOT NULL) to NULLable (column having data), I used below query for that
    alter table table_name modify transaction_cost2 default null
    even command is successfull, but column constrain is still NOT NULL.
    can you any one help on this.. ( steps to change column constain from not null to null)
    Thanks,

    ALTER TABLE table_name
      MODIFY( transaction_cost2 NUMBER NULL )That assumes that the data type of the TRANSACTION_COST2 column is NUMBER-- you'll want to use the current data type if it is something else. I'm hoping that the fact that you have a column named TRANSACTION_COST2 doesn't imply that you have an incorrectly normalized data model. But the name of the column certainly implies that you do.
    Justin

  • IR : Change value in row after link column click?

    Hi
    I have an interactive report where I'm trying to create 2 link columns.
    The first is the report's default and has an "edit" icon.
    I've added a 2nd link column "Retry" where when it is clicked I'd like to change the value in the 3rd column to "Y".
    Is this possible?
    Thanks,
    Steve

    Hi
    I have an interactive report where I'm trying to create 2 link columns.
    The first is the report's default and has an "edit" icon.
    I've added a 2nd link column "Retry" where when it is clicked I'd like to change the value in the 3rd column to "Y".
    Is this possible?
    Thanks,
    Steve

  • CWB-Need to change the eligible salary column from yearly to monthly

    Hi All,
    I need to change the eligible salary column from yearly to monthly at Employee Allocation from Compensation Workbench.
    Kindly help me guys
    Regards,
    Sajid

    You can change the activity reference period in the Plan Form - > Not In Program tab from annually to monthly. However, it will impact all the calcuations as it will use monthly values for everything. Please be careful of this. I would suggest testing this (along with posting back the increases to ensure they are annual amounts) before proceeding with this.

  • Changing a column postion from say 5th to 1st

    Hi there,
    i need some help on changing a column position to a preferred
    position.
    Can an 'Alter' statement do it. Whether yes or no, how?
    ---My table
    create table new_employee(
    empno number(4),
    ename varchar2(25),
    job varchar2(15),
    deptno number(2),
    title varchar2(2)'
    sex varchar(1)'
    constraint pk_new_employee primary key (empno),
    constraint fk_new_employee foreign key (deptno) references dept);
    How can I make 'title' column become the first column.
    Much appreciation in advance.
    Ayo

    The only way to physically change the order of columns in a
    table is to drop the table and re-create it with the order you
    want. This is, however, completely unneccessary. The physical
    order of the columns is meaningless in Oracle. You can index on
    any column or set of columns in any order regardless of where
    they are in the physical order.
    If you want to get title as the first column, you simply select
    it first when you query the table.
    SELECT title, empno, ename
    FROM new_employee
    The only time that the physical order of the columns matters is
    when you do an insert statement without a column list. For
    example, given your table, and the following data:
    empno        123
    ename        SMITH
    job          CLERK
    deptno       20
    TITLE        SR. CLERK
    SEX          M
    This insert statement will work:
    INSERT INTO new_employee
    VALUES (123,'SMITH','CLERK',20,
            'SR. CLERK','M')
    This one will not:
    INSERT INTO new_employee
    VALUES ('SR. CLERK',123,'SMITH','CLERK',
            20,'M')
    This one will:
    INSERT INTO new_employees
        (title,empno,ename,job,deptno,sex)
    VALUES ('SR. CLERK',123,'SMITH','CLERK',
            20,'M')As long as you tell Oracle in which order the column values are
    passed, you can populate the columns in any order.

  • Changing columns from english to Mandarian Language

    Hi,
    As of now i created a script form in english and now my requirement was to change those column headings to Mandarian language.Could anyone please help me on  how to work on this?
    Thanks,
    Priya.

    use the transaction SE63
    http://help.sap.com/saphelp_sm310/helpdata/en/b4/54601d77f38e429ffad9e3e11c1b25/content.htm
    http://help.sap.com/saphelp_sm310/helpdata/en/41/71601b3ab0f34a8e00aa01338c68f3/content.htm
    http://sap.ittoolbox.com/groups/technical-functional/sap-basis/transport-of-translations-se63-383226
    http://sap.ittoolbox.com/groups/technical-functional/sap-abap/se63-generate-change-request-for-translations-2253377

  • Instead of using image in a link column can we have button with name?

    Hi,
    In Apex , in report region instead of using image in a link column can we have button with name?
    Thanks,
    Anoo..

    From your wording, it sounds like you used the built-in column link within APEX. You will need to edit your column and remove that so that the column is only containing the definition that is coming from the query (you can also just change the alias used for the column and then the old column with the link will be removed and the new alias will be added against your new button column).
    -- Sharon

Maybe you are looking for

  • Problem in installing Oracle 8.0.5 in RedHat 6.1

    Hi there, Did any body installed Oracle 8.0.5 in RedHat linux 6.1. successfully Its hell man. 1. I am not able to visit Oracle Web site, however I could able to visit all other web site 2. at the time of oracle installation, it gives error message un

  • Screen goes black during boot

    Hi guys, I've just finished installing Arch for the first time after using Ubuntu until now. My problem is the when grub starts the boot process the screen goes blank and I can do nothing but restart. The only way the system boot up is when I add "no

  • Report from Single Dimention

    Hi Friends, i want to generate report from single dimension table with out using alias.is it possible?.If it is possible Please answer me.

  • Error while calling applet in HTML in SAP NWDS

    Hi, We have written a java code with Main method and we are trying to run it on web. So we have written another piece of HTML code where we are calling the othe program with applet. But getting below error. Below is exce[ption I am getting while runn

  • Don't see other person in Face Time

    I am unable to see the other person while using FaceTime, since iOS 7 update.  Any suggestions?