Copy value from Preceding doc to follow up during creation

HI All,
Requirement is :
Service order is created as follow up document to the interaction record. During follow up document creation two fields 'Summary' and 'Priority' need to be copied to the Service order from the Interaction record. Hence when the follow up document is created before SAVE is done these values are to be copied/visible there. Also these fields are to be editable as well.
Problem:
Though i could get the values of these fields i could not set them using 'set_property_as_string' method to the service order as the entity created was having null attribute reference. Kindly let me know how then i may copy these values?
Looking forward for your support.
Regards,
Harish

Hi,
i am also required same functionality.
Could you please provide the solution to sorted out this problem.
Regards,
Babu

Similar Messages

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

  • Copy values from one Parent node to other Parent Node

    Hi all,
    I have a 2 Parent node each having 3 child nodes. I want to copy the values of all the attributes of all the child nodes of one Parent Node to corresponding other node.
    Both the Parent Nodes as well as their Child Nodes have different name but their attributes have same name.For ex:
    Parent Node -A
    Child Nodes - a, b,c
    Child Node "a" has attributes "x" and "y"
    Parent Node -B
    Child Nodes - d,e,f
    Child Node "d" has attributes "x" and "y" .
    Now I want to copy the values od attributes "x" and "y" from one Parent Node to other Parent node.
    Please help me out.
    Helpful answers will be rewarded.
    Thanxs in advance...

    Hi Jin,
    To use copy service API, u need to satisfy 2 condition for the attributes of source node and target node:
    1. The name of the attribute should be same (including the case of the name)- Abc is different from ABC
    2. Type of the attribute should also be the same.
    copy elements works for copying values from Model node to context and does not work vice-versa. To enable the copying of context node to model node, use copycorresponding API.
    Eg:
    int contextNodeSize = wdContext().node<contextNodeName>().size();
    for(int i = 0; i < contextNodeSize; i++)
         <modelNodeName> modelObject = new <modelNodeName>();
         <contextNodeName>Element contextObject = wdContext().node<contextNodeName>().get<contextNodeName>ElementAt(i);
         WDCopyService.copyCorresponding(contextObject, modelObject);
    This will copy the values from Context Node to Model Node.
    Hope this helps you.
    Regards,
    Poojith MV

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

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

  • 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

  • Copying values from a row to a current row

    hi all, i have a complex scenario here. i have a table that has the following data.
    WITH table1 AS
      SELECT 111 the_id,  To_Date('6/30/2009','mm/dd/yyyy') dt,  93 src, 'A-C' the_name, 'AA' cod, 'BB' pad, ' CC' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('10/1/2009','mm/dd/yyyy') dt,  93 src, 'B-L' the_name, 'AA' cod, 'NN' pad, ' TT' tek FROM dual UNION all
      SELECT 111 the_id,  To_Date('10/2/2009','mm/dd/yyyy') dt,  93 src, 'C-H' the_name, 'BA' cod, 'RR' pad, ' BAN' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('10/5/2009','mm/dd/yyyy') dt,  93 src, 'D-R' the_name, 'HH' cod, 'FCY' pad, ' BANW' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('10/6/2009','mm/dd/yyyy') dt,  93 src, 'E-C' the_name, 'JJ' cod, 'EE' pad, ' JJ' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('10/7/2009','mm/dd/yyyy') dt,  93 src, 'F-L' the_name, 'DD' cod,  null pad, ' BAN' tek FROM dual UNION all
      SELECT 111 the_id,  To_Date('10/8/2009','mm/dd/yyyy') dt,  93 src, 'G-H' the_name, 'HG' cod, 'YY' pad, ' BAN' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('10/9/2009','mm/dd/yyyy') dt,  93 src, 'K-R' the_name, 'EE' cod, 'FCY' pad, ' BANW' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('7/31/2009','mm/dd/yyyy') dt,  93 src, 'G-H' the_name, 'HG' cod, 'YY' pad, ' BAN' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('8/3/2009','mm/dd/yyyy') dt,  93 src, 'K-R' the_name, 'EE' cod, 'FCY' pad, ' BANW' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('8/4/2009','mm/dd/yyyy') dt,  93 src, 'K-R' the_name, 'EE' cod, 'FCY' pad, ' BANW' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('8/5/2009','mm/dd/yyyy') dt,  93 src, 'K-R' the_name, 'EE' cod, 'FCY' pad, ' BANW' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('8/6/2009','mm/dd/yyyy') dt,  93 src, 'K-R' the_name, 'EE' cod, 'FCY' pad, ' BANW' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('8/7/2009','mm/dd/yyyy') dt,  93 src, 'K-R' the_name, 'EE' cod, 'FCY' pad,  null tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('6/30/2009','mm/dd/yyyy') dt,  22 src, 'A-C' the_name, 'AA' cod, 'BB' pad, ' CC' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('10/1/2009','mm/dd/yyyy') dt,  22 src, 'B-L' the_name, 'AA' cod, 'NN' pad, ' TT' tek FROM dual UNION all
      SELECT 111 the_id,  To_Date('10/2/2009','mm/dd/yyyy') dt,  22 src, 'C-H' the_name, 'BA' cod, 'RR' pad, ' BAN' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('10/5/2009','mm/dd/yyyy') dt,  22 src, 'D-R' the_name, 'HH' cod, 'FCY' pad, ' BANW' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('10/6/2009','mm/dd/yyyy') dt,  22 src, 'E-C' the_name, 'JJ' cod, 'EE' pad, ' JJ' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('10/7/2009','mm/dd/yyyy') dt,  22 src, 'F-L' the_name, 'DD' cod, 'FIC' pad, ' BAN' tek FROM dual UNION all
      SELECT 111 the_id,  To_Date('10/8/2009','mm/dd/yyyy') dt,  22 src, 'G-H' the_name, 'HG' cod, 'YY' pad, ' BAN' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('10/9/2009','mm/dd/yyyy') dt,  22 src, 'K-R' the_name, 'EE' cod, 'FCY' pad, ' BANW' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('10/30/2009','mm/dd/yyyy') dt, 168 src, 'T-C' the_name, 'WW' cod, 'AA' pad, ' NN' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('11/2/2009','mm/dd/yyyy') dt,  168 src, 'Y-L' the_name, 'HH' cod, 'AA' pad, ' BAN' tek FROM dual UNION all
      SELECT 111 the_id,  To_Date('11/3/2009','mm/dd/yyyy') dt,  168 src, 'G-H' the_name, 'BA' cod, 'WW' pad, ' BAN' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('11/4/2009','mm/dd/yyyy') dt,  168 src, 'E-R' the_name, 'JJ' cod, 'XX' pad, ' DD' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('11/5/2009','mm/dd/yyyy') dt,  168 src, 'T-C' the_name, 'TT' cod, 'JJ' pad, ' WW' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('11/6/2009','mm/dd/yyyy') dt,  168 src, 'H-L' the_name, 'EE' cod, 'DD' pad, ' BAN' tek FROM dual UNION all
      SELECT 111 the_id,  To_Date('11/9/2009','mm/dd/yyyy') dt,  168 src, 'S-H' the_name, 'BA' cod, 'WW' pad, ' BAN' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('11/10/2009','mm/dd/yyyy') dt, 168 src, 'H-R' the_name, 'VV' cod, 'FCY' pad, ' YY' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('11/30/2009','mm/dd/yyyy') dt,  90 src, 'V-C' the_name, 'GG' cod, 'FCS' pad, ' BAN' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('12/1/2009','mm/dd/yyyy') dt,  90 src, 'B-L' the_name, 'QQ' cod, 'GG' pad, ' BAN' tek FROM dual UNION all
      SELECT 111 the_id,  To_Date('12/2/2009','mm/dd/yyyy') dt,  90 src, 'A-H' the_name, 'BA' cod, 'WW' pad, ' BAN' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('12/3/2009','mm/dd/yyyy') dt,  90 src, 'N-R' the_name, 'TT' cod, 'JJ' pad, ' TT' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('12/7/2009','mm/dd/yyyy') dt,  90 src, 'C-C' the_name, 'YY' cod, 'QQ' pad, ' WE' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('12/8/2009','mm/dd/yyyy') dt,  90 src, 'X-L' the_name, 'UU' cod, 'JJ' pad, ' BAN' tek FROM dual UNION all
      SELECT 111 the_id,  To_Date('12/9/2009','mm/dd/yyyy') dt,  90 src, 'V-H' the_name, 'BA' cod, 'PP' pad, ' YR' tek FROM dual UNION ALL
      SELECT 111 the_id,  To_Date('12/10/2009','mm/dd/yyyy') dt,  90 src, 'E-R' the_name, 'FIN2' cod, 'FCY' pad, ' RE' tek FROM dual UNION ALL
      SELECT 112 the_id,  To_Date('2/28/2009','mm/dd/yyyy') dt,  93 src, 'V-C' the_name, 'EE' cod, 'FCS' pad, ' BAN' tek FROM dual UNION ALL
      SELECT 112 the_id,  To_Date('3/2/2009','mm/dd/yyyy') dt,  93 src, 'A-S' the_name, 'BA' cod, 'WW' pad, ' TT' tek FROM dual UNION ALL
      SELECT 112 the_id,  To_Date('3/3/2009','mm/dd/yyyy') dt,  93 src, 'N-R' the_name, 'TT' cod, 'JJ' pad, ' TT' tek FROM dual UNION ALL
      SELECT 112 the_id,  To_Date('3/4/2009','mm/dd/yyyy') dt,  93 src, 'C-C' the_name, 'YY' cod, 'QQ' pad, ' WE' tek FROM dual UNION ALL
      SELECT 112 the_id,  To_Date('3/5/2009','mm/dd/yyyy') dt,  93 src, 'X-L' the_name, 'SS' cod, 'JJ' pad, ' BAN' tek FROM dual UNION all
      SELECT 112 the_id,  To_Date('3/6/2009','mm/dd/yyyy') dt,  93 src, 'V-H' the_name, 'BA' cod, 'PP' pad, ' YR' tek FROM dual UNION ALL
      SELECT 112 the_id,  To_Date('3/9/2009','mm/dd/yyyy') dt,  93 src, 'E-R' the_name, 'HH' cod, 'KK' pad, ' RE' tek FROM dual
    )so as you can see, there are month end dates and well and daily dates. the daily are basically business days. what i want to do is the following
    for a particular id, i would like to take the month end date, look forward 5 business day and copy the column values from the 5th business day
    to the current row.
    there is two exceptions:
    1. i am only interested on those src=93 and 168.
    2. the_name column will not be copy, but the rest will
    so lets take an example, id = 111 src = 93. since i am only interested in src=93 and 168, this data fall in that category.
    the month end dates for id=111 and src=93 are 6/30/09 and 7/31/2009.
    in this case i want to look forward 5 business days. in the case of 6/30/09, the 5th business day is 10/7/2009 and for 7/31/2009 is 8/7/2009.
    i want to take all the column values except the_name column and display those values for 6/30/09. same thing with 7/31/2009, take column values from 8/7/2009
    and display those values.
    so the output for 6/30/2009 should look like this
    THE_ID     DT            SRC     THE_NAME     COD       PAD      TEK
    111         6/30/2009     93     A-C           DD               BANif ou notice here 6/30/2009 retain the value for the_name column but took the values for the remaining column from 10/7/2009 (even the null values got copy)
    the same logic should apply to 7/31/2009 and value should be taking from 8/7/2009
    if the src is not equal to 93 or 168. then just display the data and no logic apply, for id=111 and src=90
    no logic apply, the data should just be display.
    i would like to write a query tha give me the output below.
    i tried using last_value function but i am using oracle 9i and ignore null is not supported in oracle 9i. i need to copy null if the 5th day contain null in the columns
    the final ouput for the data above should be this
    THE_ID     DT             SRC     THE_NAME     COD     PAD     TEK
    111         6/30/2009       93     A-C           DD            BAN
    111         10/1/2009       93     B-L           AA     NN      TT
    111         10/2/2009       93     C-H           BA     RR      BAN
    111         10/5/2009       93     D-R           HH     FCY      BANW
    111         10/6/2009       93     E-C           JJ     EE      JJ
    111         10/7/2009       93     F-L           DD     FIC      BAN
    111         10/8/2009       93     G-H           HG     YY      BAN
    111         10/9/2009       93     K-R           EE     FCY      BANW
    111         7/31/2009       93     G-H           EE     FCY
    111         8/3/2009       93     K-R          EE     FCY      BANW
    111         8/4/2009       93     K-R           EE     FCY      BANW
    111         8/5/2009       93     K-R           EE     FCY      BANW
    111         8/6/2009       93     K-R          EE     FCY      BANW
    111         8/7/2009       93     K-R           EE     FCY
    111         6/30/2009       22     A-C           AA     BB      CC
    111         10/1/2009       22     B-L           AA     NN      TT
    111         10/2/2009       22     C-H           BA     RR      BAN
    111         10/5/2009       22     D-R           HH     FCY      BANW
    111         10/6/2009       22     E-C           JJ     EE      JJ
    111         10/7/2009       22     F-L          DD     FIC      BAN
    111         10/8/2009       22     G-H          HG     YY      BAN
    111         10/9/2009       22     K-R           EE     FCY      BANW
    111         10/30/2009     168     T-C           EE     DD      BAN
    111         11/2/2009       168     Y-L           HH     AA      BAN
    111         11/3/2009       168     G-H           BA     WW      BAN
    111         11/4/2009       168     E-R           JJ     XX      DD
    111         11/5/2009       168     T-C           TT     JJ      WW
    111         11/6/2009       168     H-L          EE     DD      BAN
    111         11/9/2009       168     S-H          BA     WW      BAN
    111         11/10/2009     168     H-R           VV     FCY      YY
    111         11/30/2009     90     V-C           GG     FCS      BAN
    111         12/1/2009       90     B-L           QQ     GG      BAN
    111         12/2/2009       90     A-H           BA     WW      BAN
    111         12/3/2009       90     N-R           TT     JJ      TT
    111         12/7/2009       90     C-C           YY     QQ      WE
    111         12/8/2009       90     X-L           UU     JJ      BAN
    111         12/9/2009       90     V-H           BA     PP      YR
    111         12/10/2009     90     E-R           FIN2 FCY      RE
    112         2/28/2009     93       V-C           BA     PP      YR
    112         3/2/2009     93       A-S           BA     WW      TT
    112         3/3/2009     93       N-R           TT     JJ      TT
    112         3/4/2009     93       C-C           YY     QQ      WE
    112         3/5/2009     93       X-L           SS     JJ      BAN
    112         3/6/2009     93       V-H           BA     PP      YR
    112         3/9/2009     93       E-R           HH     KK      RE

    hi i am using oracle 9i 9.2.0.7.0
    you are right about the 5th business day, for 6/30/2010 it should have been 8/7/2010. 7/31/2010 is a month end so it doesnt count when you go down the list of business days. and for 7/31/2010 the 5th business day should have been 10/7/2010.
    sorry for the mistake, i got both of them backwards. so for the output, 6/30/2010 should copy from 8/7/2010 and 7/31/2010 from 10/7/2010
    THE_ID     DT             SRC     THE_NAME     COD     PAD     TEK
    111         6/30/2009       93     A-C           EE    FCY
    111         8/3/2009       93     K-R          EE     FCY      BANW
    111         8/4/2009       93     K-R           EE     FCY      BANW
    111         8/5/2009       93     K-R           EE     FCY      BANW
    111         8/6/2009       93     K-R          EE     FCY      BANW
    111         8/7/2009       93     K-R           EE     FCY
    111         7/31/2009       93     G-H           DD              BAN
    111         10/1/2009       93     B-L           AA     NN      TT
    111         10/2/2009       93     C-H           BA     RR      BAN
    111         10/5/2009       93     D-R           HH     FCY      BANW
    111         10/6/2009       93     E-C           JJ     EE      JJ
    111         10/7/2009       93     F-L           DD             BAN
    111         10/8/2009       93     G-H           HG     YY      BAN
    111         10/9/2009       93     K-R           EE     FCY      BANWEdited by: elmasduro on May 10, 2010 11:53 AM

  • How to copy value from one field to another in a Apex Form

    Hello guys,
    There are 2 addresses one is shipping and other is billing. I do not want the customer to re-enter all the details if it is the same address. So based upon an action, it should take the live values from one address field and populate the other address field. I know in JS you can do it, but how to implement that in Apex?
    I guess using Dynamic Actions to achieve this in Version 4 but do not know how. Read quite some info but no luck.
    Thanks in advance!

    Hi,
    I have assumed that you have your shipping address at the top of the page, and then further down the page you have your billing address that you want to enable the users to copy (if this is in reverese, you will need to switch the js variables in the code following).
    I would create a Select List item above the 'Billing Address' details, called PX_SAME_ADDRESSThis select list would be static, with the options Null.
    I also assume you would have pairs of address page items such as:
    PX_SHIPPING_ADDRESS_L1
    PX_BILLING_ADDRESS_L1
    PX_SHIPPING_ADDRESS_L2
    PX_BILLING_ADDRESS_L2
    PX_SHIPPING_POST_CODE
    PX_BILLING_POST_CODEThen copy the following code into the HTML Header of the page definition:
    <script language="JavaScript" type="text/javascript">
    function copyAddress()
       if( $x('PX_SAME_ADDRESS').value == 'YES')
         $x('PX_BILLING_ADDRESS_L1').value = $x('PX_SHIPPING_ADDRESS_L1').value;
         $x('PX_BILLING_ADDRESS_L2').value = $x('PX_SHIPPING_ADDRESS_L2').value;
         $x('PX_BILLING_POST_CODE').value = $x('PX_SHIPPING_POST_CODE').value;
       else //Clear Address Fields
         $x('PX_BILLING_ADDRESS_L1').value = " ";
         $x('PX_BILLING_ADDRESS_L2').value = " ";
         $x('PX_BILLING_POST_CODE').value = " ";
    </script>Then, in your PX_SAME_ADDRESS item, copy the code below into the Element > HTML Form Element Attributes field.
    onChange="copyAddress();"Hopefully this works for you too, and should give you some basis to play around with.
    Amanda.

  • Some doubts in copy control from billing doc to invoice list

    Dear all,
    The value of allocation number in FI doc can be customized as:  A (PO number), B (Sales order num.), etc.
    But how can I make it to be assigned an alternative value (for example, we have do an add-on "invoice" then we hope our invoice no. be assigned here)? Is there an exit to do so? or how this happen (especially when SO's billed, then the FI doc has been generated already.) or  how a creation of invoice list will changed the value of allocation number in former FI doc created by billing before?
    Thanks to all,
    James

    Hi, thanks for you reply.
    The business scenario as following:
    The users create SO. Then post it (VF01) (billing doc and accounting doc. SO and billing is one-one relationship). But at this time, users doesn't generated the customized invoice to customer (also the customer may like to be invoiced with different SO). In order to do this, the user should do invoice list (VF21) to include former billing doc. At this moment, we hope we can update the allocation value in FI doc generated by billing before.
    SO->Billing (FI doc generated) ->invoice list (Hope can update some fields in the FI doc).

  • Copy value from one field in subform, to another field in a different subform

    Hi all.  I have been back and forth with enterprise support, and they are telling me what I want to do is impossible.  I find that hard to agree with, so hoping I can get some help here.  I have a document that I am creating, based off an XML.  The page consists of a header subform, a flowing table of variable name, and then a footer.  My problem comes in, that when the table flows to mutliple pages, my header subform will not repeat, even though I have it set as the overflow header.  According to Enterprise Support, this is by design.  The header will repeat on the footer page, if that is on a separate page, just not when the table flows to another page.  So, I came up with a solution to create an additional Header in my table, merge all the cells into one column, and copy my subform into that new header.  I would set that header to appear only on subsequent pages.  So, when I preview my document, it shows the static text fine, as I would expect, however the text fields are blank.  I need a way of copying the values from the original header subform, into the newly created table header subform.  The values will be different based on teh XML input, meaning that the first 3 pages will have one set of values, and the next 3 another, etc..  See sample below...
    <NameValueList>
         <NameValue>
              <NameValueName>Name1<NameValueName>
              <NameValueDesc>Desc1<NameValueDesc>
               <TableValueList>
                   <TableValue>
                        Blah
                   </TableValue>
                   <TableValue>
                        Blah 2
                   </TableValue>
              </TableValueList>
         </NameValue>
         <NameValue>
              <NameValueName>Name2</NameValueName>
              <NameValueDesc>Desc2<NameValueDesc>
              <TableValueList>
                   <TableValue>
                        Blah 5
                   </TableValue>
                   <TableValue>
                        Blah 6
                   </TableValue>
              </TableValueList>
         </NameValue>
    </NameValueList>
    So, if I bind my original header to NameValueName, it will show on the first page which has my header, and the third page that has my footer.  But my 2nd page, that has the table flowed to it, has a blank value.  I tried to put code in the Initialize event of both text boxes, to copy from MainHeader.NameValueName to TableHeader.NameValueName, but that didn't work properly. 
    Any ideas on how to do this?

    Thank you very much for the reply.  I tried putting the copy statement in both the MainHeader and TableHeader initialize events.  There was different behavior, depending on the place I put the copy statement, however neither was correct.  If I put it in the initialize of the TableHeader, the NameValueName that appears on other page is Name1.  Even though the header shows Name2 when it hits the next nodes.  If I put it in the initialize of MainHeader, nothing is copied on the proper table header pages.
    I initially had Master pages, however that really didn't work.  The master pages traversed the NameValueName nodes on it's own loop.  So, Each page displayed the next value in it's own loop, when the main subform loop is still showing data from the previous value.  I know this might be hard to understand, but I'm doing my best to explain.  THanks again for your reply, and I hope that there is another idea out there to fix this...

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

  • Copying cells from Google Docs to Numbers doesn't work

    I've tried multiple times now to copy data from a Google Docs into a Numbers spreadsheet, to no avail. I'm trying to copy two columns of data, about 150 rows long, and instead of it pasting into two columns, it pastes into a single column in Numbers.
    Why is this? Is there a setting that affects how data is pasted into Numbers that I can change?

    BH,
    It seems that Google and Apple are still on the "outs". I found that if you Paste the Google Docs cell range to LibreOffice, and then Copy and Paste to Numbers, all is well.
    Don't try copying entire columns in Google Docs or LibreOffice, instead specify the range explicitly.
    Jerry

  • Copy values from model node to another model node with different structure

    Hi,
    I am getting detils from RFC1 and update some of the data into another RFC2.
    the first RFC1 having the strucutre
    context
    NodeName
    nodel
    arrtibutes
    the second RFC2 having the different strucutre
    context
    NodeName1
          | nodel2
               | arrtibutes2
               | arrtibutes3
          | nodel5
               | arrtibutes4
               | arrtibutes5
    I need to copy the values from first one to second one.
    Both are different structures.
    Can any one tel me how to do it.
    Thanks
    Ravi

    Hi,
    Create 1 custom controllers for each Model.
    1.Cust COntroller1:
            Node one.
            ->Attr1(type:String)
            ->Attr2(type:long)
    2.Cust COntroller2
            Node one.
            ->Attr1(type:String)
            ->Attr2(type:long)
    Through the component controller only u can send the data by mapping.
    In component controller:
      Node one.
            ->Attr1(type:String)
            ->Attr2(type:long)
    Step1:Map the elements from custControler1.
    Before mapping make sure that u have data in CustController Context=>value node.
    (Note:cust controler node s model node means copy the elements to value node using copyservice)
    step2:Go to cust controller2 goto value node and map it.
    if ur nt getting,Plz let me knw,
    Thanxs,
    Lavanya.G

  • Copy values from stored procedure to a text pad

    Any Suggestions
    We have a table 'A' and wrote a select query to get the values from that table 'A'. I place this select query in Stored procedure and when I run that procedure every month the output should be sent t a text pad. Any suggestions how to write it
    thanks
    Is there any other method if we dont have the privelage to create directory?
    Edited by: user646635 on Oct 2, 2008 7:16 AM

    user646635 wrote:
    want to store the output in a text file?
    we are using oracle 9iHere's a basic example for you...
    AS SYS:
    create or replace directory TEST_DIR as 'c:\test_dir'; -- This creates an oracle directory object.  The actual operating system directory must be created manually
    grant read,write on directory test_dir to my_user;  -- Grant permission to use that directory object to the required user(s)AS my_user:
    declare
      cursor cur_emp is
        select ename, deptno
        from emp;
      v_fh UTL_FILE.FILE_TYPE;  -- This is a file handle
    begin
      v_fh := UTL_FILE.FOPEN('TEST_DIR', 'file.txt', 'w', 32767);  -- Open the file for writing and obtain a handle to it
      FOR i IN cur_emp -- process the query in a loop
      LOOP
        UTL_FILE.FPUT_LINE(v_fh, i.ename||','||to_char(i.deptno,'fm099')); -- write out lines of text to the file
      END LOOP;
      UTL_FILE.FCLOSE(v_fh); -- Close the file (also flushes any unwritten buffered data).
    end;

Maybe you are looking for

  • Fonts on Websites are not displaying correctly

    I am using FF 16.0.2 with all the default settings. When I go to certain websites, it displays with non-readable characters, almost like it isn't recognizing the page encoding. I checked and my encoding settings are set to Unicode (UTF-8). Screenshot

  • Thinking of buying a mac mini and had a few questions. D:

    I went to Best Buy a while ago, waited about an hour for help and I couldn't get anyone to help me. haha so anyway, I want to get a mac mini. A reason is because I've never used an operating system other than windows, and all windows-based pcs that I

  • Open Order Quantity

    Dear all gurus, I'm checking the total qty as of today for a material A which is stored in plant-P1, storage location SL1 and SL2. However, if I use the MMBE, I can see both of the storage locations but without any unrest-used qty at all. When I scro

  • I can no longer scan in Acrobat. I all of a sudden get an error saying rmslant.dll is missing

    I keep getting an error now saying" The program can;t start because rmslant.dll is missing. from your computer.  Try reinstalling the program to fix the problem.  I have reinstalled Acrobat but to no avail.  I am still able to scan from Paint and oth

  • Quick Question re: Dimm / Memory

    Hi, Yet another question re: Dimm's memory, but I did search before posting. I have a Mac Pro 3,1 and 6 Dimms 2 x 4 Gig 4 x 1 Gig Currently Riser 1 has Slot 1 / 2 = 1 gig / 1 gig Slot 3 / 4 = 4 gig / 4 gig Riser 2 has Slot 1 / 2 = 1 gig / 1 gig Slot