Copy value from report to page item

Hi all,
Does anyone knows how to copy an item value from a report to a page item, each time the report runs??
thanks

Hi,
Take a look at this thread. column link - call java script & assign current report column value to item
Regards,

Similar Messages

  • Copy value from item - disabling

    Hello all,
    How can I programatically disable 'copy value from item' property of a text item.Pls help....
    With regards
    Jeneesh.

    very easy : Don't use it
    You have to create your own functionality in this case.
    e.g. for QUERY use a PRE-QUERY, where you fill the item in the same way like the "copy value from item"
    when INSERTING use the PRE-INSERT, and so on...
    why did you have to disable the "copy value ..." ?

  • Copy Value from Item in Property Palette

    I have created a button on my form so that the user can clear the form and requery another record. In this 'when_button_pressed' trigger, I have a go_block(block_1), then a clear_block(no_validate) and so on for each of the three blocks. I am finding that items that have the Copy value from item property set to copy information from the control block, those items don't clear, therefore, causing the requery to work improperly. I have tried to copy data down to the other blocks in other triggers and using the clear_form but for some reason the clear_form(no_commit) takes me out of the form completely.
    I have run this problem through metalink and they were able to get the problem to recreate and said it must have something to do with the Copy Value from Item property but cannot explain. Has anyone ran into this problem and have found they found an answer when using the copy value property?
    Any help would be appreciated.
    Thanks,
    Toni Kueffer

    Ali,
    If I understand your question properly, you want to denormalize an attribute from a master table into a detail table, correct? If so, I'd do that in the model layer, not in the UI.
    If you share what you are using at the model layer in terms of technology, perhaps someone can be able to show you how.
    John

  • Passing value from Report Column to Javascript

    Dear Apex wizards,
    I am a bit stuck right now with implementing a modal pop-up/iframe/javascript and this forum is my last hope to fix this issue.
    Anyway, will try to explain what I am trying to accomplish.
    What I need is: I want to have an SQL report, as a very first column I want to have an "ID" numbers from my table and I want this column to have a "Column Link" set in "Column Attributes" proper ties. The trick is, that when I click on the column link (when I run my report on Apex page) I need a JQuery modal window to pop-up where in IFrame will be another page and this page will use an "ID" from my column link URL to display data. So, basically I want to pass an "ID" value from my parent page to my child page which is displayed in iFrame of modal window.
    And here is what I have:
    1. I do have an SQL report:
    select SUBNET_ID,
           long2ip(NETWORK_ADDRESS),
           long2ip(SUBNET_MASK),
           long2ip(END_HOST),
           long2ip(START_HOST),
           MAX_HOSTS,
           long2ip(BROADCAST_IP),
           NETWORK_CLASS,
           NETWORK_SIZE,
           HOST_SIZE
    from   YC_CM_IP_SUBNETS 2. Then, in "Column Attributes" for "SUBNET_ID" a have set a "Column Link" to URL as : javascript:ViewNetworkDetails(#SUBNET_ID#); 3. Now, when I run my page and point my mice on any item in my "SUBNET_ID" column I can see that it is getting a "SUBNET_ID" number from my table and it shows it in the buttom of the browser as :javascript:ViewNetworkDetails(1);, or (2) or whatever "SUBNET_ID" is. So, that is good.
    4. And here I am getting confused, basically I have to pass a value of javascript:ViewNetworkDetails(#SUBNET_ID#);, which seems to work as it gives me correct numbers from my table, to my "ViewNetworkDetails" JavaScript function, so it can paste this value into "f?p=........." iFrame URL. Below is my Jquery Modal form script and Javascript to redirect me to my popup page (the script is in HTML Header):
    <script type="text/javascript">
    function ViewNetworkDetails(){
    var apexSession = $v('pInstance');
    var apexAppId = $v('pFlowId');
    var subnetIDNumber = document.getElementById(#SUBNET_ID#);
    $(function(){
    vRuleBox = '<div id="ViewNetworkDetailsBox" title="View Subnet Details">
    <iframe src="f?p='+apexAppId+':103:'+apexSession+'::NO:103:P103_SUBNET_ID:'+subnetIDNumber+'
    "width="875" height="500" title="View Subnet Details" frameborder="no"></iframe></div>'
    $(document.body).append(vRuleBox);
    $("#ViewNetworkDetailsBox").dialog({
                            buttons:{"Cancel":function(){$(this).dialog("close");}},
                            stack: true,
    modal: true,                            
                            width: 950,                    
    resizable: true,
    autoResize: true,
    draggable: true,
    close : function(){$("#ViewNetworkDetailsBox").remove();
                            location.reload(true); }
    </script> P.S. My assumption is, that there is a problem with this part of my scriptvar subnetIDNumber = document.getElementById(#SUBNET_ID#); where I cannot get my "SUBNET_ID" value from javascript:ViewNetworkDetails(#SUBNET_ID#); into "subnetIDNumber" variable and that is why I cannot pass it to my iFrame URL.
    P.S. P.S. the child page 103 has a "Automated Row Fetch", so it is not a problem. In addition, I did a simple test, where I had a page item "P102_Value" with some value and in my script I had instead var subnetIDNumber = document.getElementById(#SUBNET_ID#); this var subnetIDNumber = $v('P102_Value'); and it worked perfectly fine....but cannot make it working against SQL Select statement :-(
    HEEEEEEEEEEEEEELLLLLPPPP.
    Thanks

    Change your column link to send the subnet_id column's value to the function call (you mentioned it, but I m not sure if you actually did)
    javascript:ViewNetworkDetails(#SUBNET_ID#);<u>You are passing the parameter value to the function, but not defined any parameters in the function definition</u>(this is possible in JS, any extra parameters is ignored)
    So, modify the function to accept the subnet ID parameter(I am actually surprised how you missed this) and assign that parameter to variable.
    <script type="text/javascript">
    function ViewNetworkDetails(pSubnetId){
    var apexSession = $v('pInstance');
    var apexAppId = $v('pFlowId');
    var subnetIDNumber = pSubnetId;
    //rest of the code would be the same

  • Populate the URL for popupURL from a Table/Page Item?

    Dear all,
    Would someone please tell me if the URL to run a BIP report can be populated from a table/page item when using popupURL and if so, how?
    Background:
    I have a Table called TBL_LETTERS with a varchar2 column REPORT_URL
    I have a Page (Pg 303) which populates a Text Page Item (P303_REPORT_URL) with an appropriate URL string from the table.
    Here is my problem:
    I would like to replace my working javascript function (see below):
    run myLetter_40()
    popupURL('&BI_URL.Guest/DEV/TEST/FRM_40/MM_40/MM_40.xdo?_xpf=&_xpt=1&P_CASE_ID=&P303_CASE_ID.&P_PERSON_ID=&P303_PERSON_ID.&_xt=MM_40_xf=rtf');
    with something like:
    run myLetter_40()
    popupURL($x("P303_REPORT_URL").value);
    ...but this doesn't work.
    With my limited javascript knowledge I can only guess that the variables successfully assigned values in my first function example are not successful in my second, I am probably just passing the whole thing as a simple string (like this: +&BI_URL.Guest/DEV/TEST/FRM_40/MM_40/MM_40.xdo?_xpf=&_xpt=1&P_CASE_ID=&P303_CASE_ID.&P_PERSON_ID=&P303_PERSON_ID.&_xt=MM_40_xf=rtf+), but would very much welcome any advice.
    Do I need to
    a. Create the REPORT_URL string differently in the table so that when passed to the Page Item it includes the required variable data?
    b. Something completely different?
    c. Forget it, it's not possible!
    ps. I am using Apex 3.2.1
    Thank you in advance.
    Sue
    Edited by: smp245 on Aug 21, 2012 2:19 PM

    Thank you Erik-jan
    when I look at the parameter in de popupURL function I notice that you use substitution variables &P303_CASE_ID. and &P303_PERSON_ID.
    The value for these variables are filled in by Apex on page rendering.
    If you use this same URL in your column REPORT_URL Apex will not fill in the values for these substitution variables.
    Yes, this is exactly what is happening.
    I would suggest you use option A to build your URL with the desired values.
    If the values for &P303_CASE_ID. and &P303_PERSON_ID. are in the same table TBL_LETTERS you could use them to make a pseudo column for the URL string.
    &P303_CASE_ID. and &P303_PERSON_ID. are not in the same table. How would it be possible to build the string (to store in the table) so that when it is run javascript identifies the variables?
    I have tried building the string in various ways using syntax similar to below but nothing is working:
    '&BI_URL.Guest/DEV/TEST/FRM_40/MM_40/MM_40.xdo?_xpf=&_xpt=1&P_CASE_ID=' + &P303_CASE_ID. + '&P_PERSON_ID=' + &P303_PERSON_ID.' &_xt=MM_40_xf=rtf'
    Do you have any ideas?
    Thanks
    Sue

  • How to pass value from report to form?

    Dear,
    I built a report and I create button on report too. This
    button will show a form that I want it to automatically show
    receivable values from report so that user don't complete them.
    So I create a button on the report . I enter Javascript in
    PL/SQL Code tab in '...after displaying the footer' as follow :
    htp.formOpen
    (owa_util.get_owa_service_path||'portal30.wwa_app_module.link?
    p_arg_names=_moduleid&p_arg_values=1736929105&p_arg_names=_show_h
    eader&p_arg_values=YES&p_arg_names=GNO&p_arg_values=1&p_arg_names
    =QNO&p_arg_values=2');
    htp.formSubmit(null,'New Answer');
    htp.formClose;
    GNO , QNO is value which I want to pass
    As you can see, the above code can pass only static value.
    But I want to pass values that is the condition of this report.
    I mean,such as, this report show data that gno=1 and qno=2 and I
    want to pass these values to form. So both value will appear in
    gno and qno field.
    So please tell me what should I do. Please help me. I don't
    know how to do it. I look forward to hearing from all of you.
    Please!!!!!! Don't hesitate to answer.
                        Thank you very much
                   Sirin Kittichotpanich

    Hi Marc,
    Yes, you have it correct in what I am trying to do and if I put a default value in the hidden item on page 2 and run it then that works fine. I just can't get the value from the form passed to page 2 for some reason. There are actually 22 items on the form that can be filtered but just using COREID for simplicity. When I run the form I am just entering a value in the COREID field to try and return those records. Most of the other items on the form are displayed as Popup LOV(fetches first row). Would the values of all these be done the same in a comma delimited list for the items and values? I was trying to get at least one of them working first. Here is the search result that comes up in the debug window:
    Search Results
    0.01: Item: P2_COREID HIDDEN
    0.01: show report
    0.02: determine column headings
    0.02: parse query as: MOTEAMSAPEX
    0.02: binding: ":P2_COREID"="P2_COREID" value=""
    0.02: print column headings
    0.02: rows loop: 15 row(s)
    No data found.
    Here is the SQL statement:
    select coreid, serialnumber
    from MOTEAMS.V_ASSETS where
    instr(UPPER("COREID"), UPPER(:P2_COREID)) > 0
    The branch settings are:
    Set these items: P2_COREID
    With these values: &P1_COREID (also tried this with period at the end)
    I am new to this and not familiar with apex.oracle.com. How would I go about posting to that site?
    Thanks,
    Pam

  • Copy values from a filed to another in different blocks in same table

    Hi All,
    How to copy value from a filed to another field in different blocks in same form ?
    example if i change value in Field A of block 1 it should reflect in Field B block 2 and again if i change in Field B block 2 it should reflect in Field A of block 1.
    values will change twice or thrice then it will not change. It is happening like that.
    how to do this ?
    Regards

    Same table / different blocks
    I guess, both blocks will be marked for update, and when your user presses commit, the same table will be updated twice!
    Are you sure that this is what you want to do? Is the same record current in both blocks? If so, you better use 1 block (it can be spread over several canvases and windows) and synchronize the items with the "synchronize item" property.
    Anyway: If you can't apply the synchronize-property bcos the items are in different blocks, you can synchronize with 2 when-validate-item triggers.
    Wolfram

  • Copying value from one cursor to another

    Hi,
    I have a problem while copying values from one cursor to another cursor.
    The code looks like below.
    PROCEDURE XYZ
                TransactionResultSet OUT NOCOPY types.ref_cursor,
    IS
                temp_cursor types.ref_cursor;
                wip_rec types.ref_cursor;
    BEGIN
    DECLARE
                    CURSOR temp_cursor IS
                SELECT ...........
    END;
    BEGIN     
        FOR wip_rec IN temp_cursor
        LOOP
        update tinsagr set something
        where {the condition}
            IF SQL%ROWCOUNT = 0 THEN
      dbms_output.put_line('this is test ');
            Fetch wip_rec into TransactionResultSet;
         END IF;
       END LOOP;so basically i want to iterate the "temp_cursor" and depending on the values i get it from here i shall update a table. Actually i want to exclude few records from "temp_cursor" and add it/copy rest of the records to "TransactionResultSet"
    That means say initially " temp_cursor" has 100 records and i updated 5 records in a table and same number of records should be excluded and rest should be added to the output cursor TransactionResultSet.
    How do i achieve it?
    while saving i am getting
    (1): PLS-00456: item 'WIP_REC' is not a cursor.
    Do any one has any idea what to do in such scenario?

    There are options like....
    SQL> CREATE OR REPLACE TYPE emp_obj AS OBJECT (ename VARCHAR2(50), dept NUMBER);
      2  /
    Type created.
    SQL> CREATE OR REPLACE TYPE emp_tbl IS TABLE OF emp_obj;
      2  /
    Type created.
    SQL> set serverou on
    SP2-0158: unknown SET option "serverou"
    SQL> set serverout on
    SQL> DECLARE
      2    rc      sys_refcursor;
      3    v_ename emp.ename%TYPE;
      4    v_dept  emp.deptno%TYPE;
      5    ---End Of Local Varriable Declaration
      6    --Procedire declaration !
      7    PROCEDURE TEST_CUR(pi_out_ref_cur IN OUT sys_refcursor) IS
      8      emp_rec emp_tbl;
      9    BEGIN
    10      /* This BULK COLLECT can be done with explicit cursor,Ref Cursor
    11      with some simple modification, Here I have used implicit cursor! */
    12      SELECT emp_obj(ename, deptno) --Casting as the object
    13      BULK COLLECT
    14        INTO emp_rec
    15        FROM emp
    16       WHERE deptno = 10;
    17   
    18      dbms_output.put_line('Records selected are:');
    19      FOR i in 1 .. emp_rec.COUNT LOOP
    20        dbms_output.put_line(emp_rec(i).ename || '--' || emp_rec(i).dept);
    21      END LOOP;
    22      --Now we are filtering the record and may be doing some operation with each record.
    23      FOR i in 1 .. emp_rec.COUNT LOOP
    24        IF emp_rec(i).ename = 'KING' THEN
    25          --You can change this IF according to your need.
    26          emp_rec.DELETE(i);
    27        END IF;
    28      END LOOP;
    29      OPEN pi_out_ref_cur FOR
    30        SELECT * FROM TABLE(emp_rec); --Using the TYPE AS table.
    31    END TEST_CUR;
    32    /* Main execution or procedure calling section*/
    33  BEGIN
    34    --Actual calling
    35    TEST_CUR(rc);
    36    dbms_output.new_line;
    37    dbms_output.put_line('Now in Ref Cursor');
    38    dbms_output.put_line('****************');
    39    LOOP
    40      FETCH rc
    41        INTO v_ename, v_dept;
    42      dbms_output.put_line(v_ename || '--' || v_dept);
    43      EXIT WHEN rc%NOTFOUND;
    44    END LOOP;
    45 
    46  END;
    47  /
    Records selected are:
    CLARK--10
    KING--10
    MILLER--10
    Now in Ref Cursor
    CLARK--10
    MILLER--10
    MILLER--10
    PL/SQL procedure successfully completed.
    SQL>

  • Discoverer Viewer Report with Page Items Slow Performance

    I created a report in Discoverer User that has page items and parameters and runs fine (under 3 minutes) in Discoverer User, but when I try and run it in Discoverer Viewer it takes a long time. It took over 70 minutes before manually terminating it. I made a copy of the report and removed the page items and tried to run it again in Discoverer Viewer and now the report runs in under 3 minutes. Any idea why a report with page items would run in Discoverer user fine, but not discoverer viewer?
    I am using Oracle Business Intelligence Plus 10g (10.1.2.55.26)

    As long as you can access the middle-tier server where Discoverer Viewer is running, you should be able to run and view Discoverer worksheets.
    While it is difficult to even start guessing what the problem might be, if the machine you installed Discoverer on has DHCP addressing, you will run into problems.
    Thanks
    Abhinav
    Oracle Business Intelligence Product Management
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN : http://www.oracle.com/technology/products/bi/
    Discoverer : http://www.oracle.com/technology/products/discoverer/
    BI Software : http://www.oracle.com/technology/software/products/ias/devuse.html
    Documentation: http://www.oracle.com/technology/documentation/appserver1012.html
    BI Samples : http://www.oracle.com/technology/products/bi/samples/
    Blog : http://oraclebi.blogspot.com/

  • Retruning parameter/value from report to form - (Urgent)

    Hi ,
    I am calling a report (2.5) from a form using RUN_PRODUCT. I would like to know if there is any way to do the following.
    (a) Return a value from reports to calling form. For ex. I would like to know the last Item name (assuming the reports prints all items in inventory) printed. I am sending a from and to numbers of item id's (range) and I need to know the last item printed.
    (b). Check the success of report. For example, while printing the 5 items (the range that I passed) if there is any error in printing , this should be tracked either in the form or report. If this is not possible using run_product , If I need to use srw package, how to use it. Can I call the report as usual with run_product and in the after parameter trigger can, I call the report again and track error.
    Any help will be appreciated.
    Thanks

    Please repost your question in the reports forum

  • How can I copy tables from Numbers to Pages without formula?

    hi everyone
    i need help
    How can I copy tables from Numbers to Pages without formula in the cells?

    Ok... I see your problem... when pasting into Pages, the formulas from Numbers are included. Perhaps this is really more of a Pages question (in which case I'm far from expert). A couple of ideas:
    • In Pages, try "Edit"/"Paste and Match Style", which may insert tab delimited cell values (no formulas). Then, if you want the table format back, select these newly pasted tabbed values and use Page's "Format"/"Table"/"Convert Text to Table"/
    • In Numbers, before copying, make a temporary table of the plain values first, then copy and paste that into Pages. To do this, select the range of cells you desire in the Numbers and "Edit"/"Copy". Then "Edit"/"Deselect All" and "Edit"/"Paste Values" and "Edit"/"Cut". Now just a table of values is on the clipboard and you can head over to Pages to paste.

  • Master-detatil - copy value from

    Hello.
    I have a problem with master-detail relationship. I have one block with hidden item (item is id - id is generated with the sequence). In the second block i have one item (not hidden) which is connected (relationship) to the id from the first block. After i commit the record in the first block i want to see (immediately after commit)the value of the id from the first block in the item from the second block. I have relationship and copy value from but it doesn't work. I checked my other forms where that works and i don't see any differences. Thanks

    Hi!
    First block is Master, Second is Detail. It's TRUE?
    If it is true:
    Create PRE-INSERT trigger (Master block level)
    select <sequence_name>.nextval, <sequence_name>.currval
    into <Master_block>.<ID>, <Detail_Block>.<ID>
    from dual;

  • How do I pass input values from a html page to a jsf page

    hi,
    In my project,for front view we have used html pages.how can I get input values from that html page into my jsf page.for back end purpose we have used EJB3.0
    how can I write jsf managed bean for accessing these entities.we have used session facade design pattern and the IDE is netbeans5.5.
    pls,help me,very urgent
    thanx in advance

    Simplest way is to rewrite html page into jsf page.
    You can use session bean in your managed bean like this:
    import javax.naming.Context;
    import javax.naming.InitialContext;
    public class ManagedBean {
    private Context  ctx;
    private Object res;
    // session bean interface
    private Service service;
              public ManagedBean() {
                try{
                     ctx = new InitialContext();
                     res = ctx.lookup("Service");
                     service = (Service) res;
               catch(Exeption e){
    }Message was edited by:
    m00dy

  • How to return values from a BSP page to Javascript

    Hi All,
    I want to call a BSP page which reads a single value from a table and returns that value I want the Javascript in the HTML code to get the value from the BSP page.
    Can you kindly let me know how I can return the value from the BSP page to JavaScript.
    Kindly please provide me a simple code of a BSP page and the Javascript
    Thanks
    Karen

    Hi,
    you need 3 elements to make the javascript code read the value in any field in the table: table´s name, line and column. This is how your code could look like:
    script language="javascript>
       var row = 0;
       function display(){
          row = row + 1;
          campo = 'tabla1_' + row + '_4';                 " <-- table, line, column
          valor = document.getElementById(campo).value;
    </script>
    ROW works as a counter. You have in variable valor the value of the field and can do with it what you want, perhaps display it with ALERT. I am reading the values from field 1 to n in column 4 in table TABLA1. Pay attention to the '_' in the concatenation of field´s name. The table in my BSP is very simple:
    <htmlb:tableView id                = "tabla1"
                           table             = "<%= mytable %>"
                           width             = "100%"
                           allRowsEditable   = "X"/>
    and somewhere I must call function display in my javascript code:
    <htmlb:button  id="boton" text="Texto aqui" onClientClick="display()" />
    So, give it a try.

  • How to get the return values from a web page

    Hi all :
       how to get the return values from a web page ?  I mean how pass values betwen webflow and web page ?
    thank you very much
    Edited by: jingying Sony on Apr 15, 2010 6:15 AM
    Edited by: jingying Sony on Apr 15, 2010 6:18 AM

    Hi,
    What kind of web page do you have? Do you have possibility to for example make RFCs? Then you could trigger events (with parameters that could "return" the values) and the workflow could react to those events. For example your task can have terminating events.
    Regards,
    Karri

Maybe you are looking for

  • GR for a STO with SD delivery and Batches with split valuation X

    Hello, We have a problem with the Goods Receipts for Stock Transfer Orders between plants for materials subject to batch split and split valuation with valuation type X. The scenario is very similar to the one explained on this thread: STO:problem wi

  • N97 headset mode stuck

    Hi im a long time user of nokia phones and have a first major problem with my N97. Recently i have just occured that my n97 is stuck on headset mode with even anything being in the headset jack. This is very annoying as i cannot answer calls without

  • Why do web videos only play for a few seconds?

    Why do you tube videos play a few seconds and stop and start?

  • Search & Replace Question (Regex?)

    I downloaded a government website that I would like to modify and add to my website. (It's legal, copyright-free) But I'm finding it difficult to work with because the pages are packed with sloppy code - JavaScript and CSS outside the head seciton, t

  • Blank PDF Pages out of IDCS

    I have a document created by someone else. When I create a PDF, spread 1 comes out great. Spread 2blank. No idea. The only possible factor I see is that in the page icon palette, the first spread is shown with white icons and the second spread icon i