How to move value from one tlist to another tlist in same form?

how to move value from one tlist to another tlist in same form on button press?
Same like in data block wizard when we select value from 1st list it will go to 2nd list and can be move back. Please help i am new to forms .
Regards

just call the following proc in your add & add all buttons. Reverse the code for REMOVEs
this proc will move one item at a time from list_item1 to list_item2.
PROCEDURE add_an_item
IS
  v_list_count    NUMBER;
  v_item1_label  VARCHAR2(60);
BEGIN
  IF :list_item1 IS NOT NULL THEN v_list_count := nvl(Get_List_Element_Count('list_item1'),0);
      IF v_list_count >= 1 THEN FOR i IN 1..v_list_count
      LOOP
         IF   :list_item1    = Get_List_Element_Value('list_item1', i)
         THEN
              v_item1_label := Get_List_Element_label('list_item1', i);                 
              Add_List_Element('list_item2',1,v_item_label,:list_item1);         
           Delete_List_Element('list_item1',i);
           Exit;
         END IF;
      END LOOP;
       END IF;
   END IF;
END;
*********************************************************************************this proc will move all items from list_item1 to list_item2.
PROCEDURE add_all_items
IS
  v_list_count NUMBER;
  v_item_label VARCHAR2(60);
  v_item_value VARCHAR2(60);
BEGIN
v_list_count := nvl(Get_List_Element_Count('list_item1'),0);
IF    v_list_count = 1 AND Get_List_Element_Value('list_item1', 1) IS NULL THEN NULL;
ELSIF v_list_count >= 1 THEN
       FOR i IN 1..v_list_count
       LOOP
        v_item_value  := Get_List_Element_Value('list_item1', i);
        v_item_label  := Get_List_Element_label('list_item1', i);       
        Add_List_Element('list_item2',i,v_item_label,v_item_value);
       END LOOP;
       clear_list('list_item1');
END IF;
END;I added [ code ] tags to make this easier to read.
Message was edited by:
Jan Carlin

Similar Messages

  • How to move iTunes from one user to another on the same Windows 7  computer

    How to move iTunes from one user to another on the same Windows 7 computer? Thanks, Bob

    Move the iTunes library to a shared area and then into the desired location. If this isn’t the default one, launch iTunes with the Shift key held down and choose that library.
    (122379)

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

  • How to move tables from one user to another user in same tablespace;

    How can i move the tables & data starting with TIS_ from USER1 schema to this new schema?
    By below query i created new schema:-
    create user TEST identified by TEST12 default tablespace DMGTS;
    Both the USER/Schema are in same tablespace.
    It is ORACLE9i.
    Please reply....

    User1.A
    User2.B
    1) Create patitioned tables based on User1.A, ex. User1.P
    2) ALTER TABLE User1.P
    EXCHANGE PARTITION YOUR_PART_NAME TABLE User1.A
    WITHOUT VALIDATION; -- After this all your data from User1.A will be moved to User1.P(YOUR_PART_NAME)
    3) ALTER TABLE User1.P
    EXCHANGE PARTITION YOUR_PART_NAME TABLE User2.B
    WITHOUT VALIDATION; -- After this all your data from User1.P(YOUR_PART_NAME) will be moved to User2.B
    All data moving will take about 2-3 sec.
    Regards,

  • How to pass values from one section to another section in same dashboard..

    hi
    I am in need of designing a dashboard which contains 2 sections.In first section i will include a Dashboard prompt and in the second section, I have to display a jsp page by passing the result of prompt as a parameter.
    how to pass these values.....
    if possible send me some links regarding this
    thanks in advance...............

    Check my blog entry here http://oraclebizint.wordpress.com/2007/12/26/oracle-bi-ee-101332-drills-across-sections-in-a-dashboard/. It has an example.
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com

  • Move value from one listbox to another listbox

    Hi,
    I have two list boxes with list of values in it. Can anyone help me to move values from one listbox to another listbox on click of a button in AWT. It will be of great help if i can get any sample code.
    Thanks a lot in advance

    hi,
    do u want to move a specific item that is selected or all of the items?
    anyway the logic is very simple!:)
    if u want to transfer the currently selected itme form the first List box,
    use the method getSelectedItem() to get the currently selected item.
    then keep this value in a String variable (item)
    and use getItemSelected() to get the Index of it in int.
    keep this value in an int variable (index)
    then delete the item from the first list using the method remove(index) on the first list object.
    then add the item to the second list using
    add(item) on the second list object.
    hope u can work it out urself from here!
    rgds
    JP

  • How to move materials from one sloc to another sloc  materials are more tha

    Hi,
    Can any one help me on this issue How to move materials from one sloc to another sloc  materials are more than 1000
    and from existing sloc to new sloc which is Hum managened i need help onthis issue thanks

    hi
    use T-code: MB1B Transfer Posting
    Movement type:
    311 Transfer posting storage location to storage location in one step
    The quantity is transferred from unrestricted-use stock of the issuing storage location to unrestricted use in the receiving storage location.
    Possible special stock indicators: E, K, M, Q
    313 Stock transfer storage location to storage location in two steps - removal from storage
    The quantity is transferred from unrestricted-use stock of the issuing storage location to stock in transfer in the receiving storage location.
    Possible special stock indicators: None

  • Can I move applications from one user to another on the same computer?

    If I have two users on one mac, can I move applications from one user to another on the same computer?
    Thanks

    By default, apps are installed for all the users in /Applications

  • How to move cursor from one textfield to another textfield byusing enterkey

    hii all,
    I have a problem in java script.
    To move cursor from one textbox to another text box ,I have take the length of the textboxes of the first column.I used onkeyDown event .
    in the function ,firest i checked the condition like
    for(i=0;i<form1.box.length;i++) //box is the name of the textboxes
    if(event.keyCode==13)
    form1.box[i+1].focus();
    return false;
    by using this the cursor is moving from first text box to secon textbox and stops.
    if i use event.returnValue=false; instead of return false ,then the cursor automatically going to the laxt textbox of the column.
    my problem is how i can focus the cursor from one textbox to another textbox one after the other till the end.
    if any one has solution please help me.
    also if we can do in another way also,please help me.
    thanx.>

    try the following code :
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE> New Document </TITLE>
    <META NAME="Generator" CONTENT="EditPlus">
    <META NAME="Author" CONTENT="">
    <META NAME="Keywords" CONTENT="">
    <META NAME="Description" CONTENT="">
    </HEAD>
    <SCRIPT language="Javascript">
    function fnTest(str)     {     
              if(event.keyCode==13)          {
                   if(str == 4)     {
                        formHeader.box[0].focus();
                   else     {
                        formHeader.box[parseInt(str)+1].focus();
                   return false;
    </SCRIPT>
    <BODY>
    <FORM name="formHeader">
    <CENTER>
    <INPUT TYPE="TEXT" name="box" value="" onKeyDown="javascript:fnTest('0');">
    <br>
    <INPUT TYPE="TEXT" name="box" value="" onKeyDown="javascript:fnTest('1');">
    <br>
    <INPUT TYPE="TEXT" name="box" value="" onKeyDown="javascript:fnTest('2');">
    <br>
    <INPUT TYPE="TEXT" name="box" value="" onKeyDown="javascript:fnTest('3');">
    <br>
    <INPUT TYPE="TEXT" name="box" value="" onKeyDown="javascript:fnTest('4');">
    </CENTER>
    </FORM>
    </BODY>
    </HTML>
    ----------------------------------------------

  • How to move files from one folder to another folder in webdynpro java for sap portal

    Dear Experts,
    I wan to move files from one folder to another folder in SAP portal 7.3 programmatically in webdynpro java.
    My requirement is in my portal 1000 transport packages is their. Now i want to move 1 to 200 TP's into Archive folder.
    Can you please help me how to do in through portal or wd java ...
    Regards
    Chakri

    Hello,
    Do you know what the difference between copying a file this way :
    ** Fast & simple file copy. */
    public static void copy(File source, File dest) throws IOException {
    FileChannel in = null, out = null;
    try {         
    in = new FileInputStream(source).getChannel();
    out = new FileOutputStream(dest).getChannel();
    long size = in.size();
    MappedByteBuffer buf = in.map(FileChannel.MapMode.READ_ONLY, 0, size);
    out.write(buf);
    } finally {
    if (in != null) in.close();
    if (out != null) out.close();
    ================SECOND WAY============
    AND THIS WAY:
    // Move file (src) to File/directory dest.
    public static synchronized void move(File src, File dest) throws FileNotFoundException, IOException {
    copy(src, dest);
    src.delete();
    // Copy file (src) to File/directory dest.
    public static synchronized void copy(File src, File dest) throws IOException {
    InputStream in = new FileInputStream(src);
    OutputStream out = new FileOutputStream(dest);
    // Transfer bytes from in to out
    byte[] buf = new byte[1024];
    int len;
    while ((len = in.read(buf)) > 0) {
    out.write(buf, 0, len);
    in.close();
    out.close();
    And which is better? I read up on what each kind of does but still a bit unclear as to when it is good to use which.
    Thanks in advance,
    JavaGirl

  • How to move tabs from one screen to another?

    Just started to group tabs. How can I move tabs from one screen to another to consolidate them into the groups?

    See <b>Tab Groups</b> (new in Fx4) (Panorama) [http://support.mozilla.com/en-US/kb/what-are-tab-groups What are Tab Groups] (video included)
    From one Window to another Window, by drag & drop
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>

  • How to pass value from one method to another method

    Hi all,
    I have created a funtion module and i am calling this function module inside a method and it is exporting some value in a table, now i have to pass table value to another method where i have do some thing based upon this values.
    I think there a marco available to move the values from one method to another method.
    Please help me in this issue.
    Regards
    Balaji E.

    Hi,
    Let me make certain assumptions!
    Method 1 - You export the table values
    Method 2 - The method where you need the table values
    Once you create a method from a function module which has tables as one of the export parameters then the code automatically puts in the macro code which looks like : SWC_SET_TABLE CONTAINER 'Table' TABLE.
    The 'Table' in the above code is the container element which is created by the workflow once you use this method and the TABLE (The table that gets filled in the function module) is the variable to code automatically created.
    Now you can use the other function module in the workflow as a background step and pass the values from the 'Table' container to this method using the binding. When you use this then the method automatically has the macro SWC_GET_TABLE CONTAINER 'Table' ITABLE. Here the 'Table' is the same container table you used in the binding and the ITABLE would be the variable you can use in the other function module.
    Hope this helps,
    Sudhi

  • How to move BLOBs from one table to another ??

    Hi All,
    I am trying to move blobs from one table to another, however my insert statement is not working. What i mean is its running, but records are not being inserted into the table.
    This is my first time moving blobs, so please bear with me.
    here is my insert statement:
    INSERT INTO CASES.FILESTORAGE
    SELECT      DID,
              DRENDITIONID,
              DLASTMODIFIED,
              DFILESIZE,
              DISDELETED,
              BFILEDATA       // this attribute is the BLOB
    FROM      USSC_CASES_TMP.FILESTORAGE
    WHERE      DID NOT IN (SELECT DID FROM CASES.FILESTORAGE);here is the DDL for the table.
    CREATE TABLE "USSC_CASES_TMP"."FILESTORAGE"
        "DID"          NUMBER(*,0) NOT NULL ,
        "DRENDITIONID" VARCHAR2(30 CHAR) NOT NULL ,
        "DLASTMODIFIED" TIMESTAMP (6),
        "DFILESIZE"  NUMBER(*,0),
        "DISDELETED" VARCHAR2(1 CHAR),
        "BFILEDATA" BLOB,
        CONSTRAINT "PK_FILESTORAGE" PRIMARY KEY ("DID", "DRENDITIONID")
      );CASES.FILESTORAGE table has the same DDL, but in a different schema.
    Thanks in advance.

    If this seems rather straight forward. If the schema are exact simply execute:
    inset into [destination] select * from [source] ;if something is amiss you should be throwing errors someplace* but try this:
    create table [scratch table name] as select * from [source table] where [place some limit here] ;If this does not work then something someplace is very wrong and if you are not the DBA you need to get this persons attention, fairly quickly. I would do the above from sqlplus and then after each statement would:
    commit;then check to see if it succeeded.

  • How to move object from one cont. to another

    Hi I am not able to move object from one container to another container in work order driver. while when i am same line of code in JMS driver its working fine and also log genarated for the same. but in work ordre driver it is not working. here is my code which i m using for the same.ple help me out
    <do-move-src-object class-name="ValeUser">
    <arg-dn>
    <token-local-variable name="var-str-nwoContent"/>
    </arg-dn>
    <arg-dn>
    <token-text xml:space="preserve">\</token-text>
    <token-global-variable name="dirxml.auto.treename"/>
    <token-text xml:space="preserve">\</token-text>
    <token-global-variable name="hrfeed.inactive.container"/>
    </arg-dn>
    </do-move-src-object>
    thanks
    Adarsh Kumar

    Idmlearner,
    sorry, but you are still posting in the wrong forum. You should ask
    these questions in the Identity Manager forum
    Shaun Pond

  • How to move files from  one  system  to another in plsql

    Hi all,
    I want to move file from one system to another using plsql procedure .
    Kindly let me know what package i have to use for doing this .
    Thanks,
    P Prakash
    Edited by: prakash on Jul 27, 2011 2:20 AM
    Edited by: prakash on Jul 27, 2011 2:59 AM

    BluShadow wrote:
    That's ok if you want to diet. ;)Ooh look, the strange punctuation is back. Can it be true that the forum software has caught up with the '80s?
    I almost feel like connecting to the internet using a 9600 baud modem to celebrate.
    http://upload.wikimedia.org/wikipedia/commons/5/5d/TeleGuide-terminal.jpg
    Colon dash right bracket.
    (Old habits die hard)

Maybe you are looking for

  • What is better than WAP 200

    HI, I have a small business, i use to have an Access Point from another brand, I had a lot of problems using it like every time it looks like it freeze, I can see the wireless but I don't get internet access from it, and I need to reboot it to fix th

  • Header and Item Odata through SEGW

    Hi, I know that this Topic was raised million times, but still raising this query. I have already consulted http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0d92637-3d0d-2f10-ebb2-efc1f40a85e8?QuickLink=index&- link. Requirement: C

  • User upload from a csv file via users_gen

    Hello SRM Guru, I am uploading users via transaction users_gen from a csv file, all the users are uploaded correctly but I see that there are some special charater (which we have in german language) are not cpoied correctly for example the last name

  • Whle Upgrading database from 11.1.07 to 11.2.03 cr9idata.pl execution fails

    after installation of the 11GR2 software, and I set ORACLE_BASE, ORACLE_HOME, PATH, LD_LIBRARY_PATH and PERL5LIB these variables. when running the cr9idata.pl from the new oracle home, I am getting following error. ./cr9idata.pl bash: ./cr9idata.pl:

  • Why are all the close tab buttons missing?

    Yesterday, I was using Firefox 25.0.1 with no issues. Today I launched Firefox, only to find that the [X] buttons for the tabs are gone! Instead, I saw a single [x] button on the rightmost side of the tabs bar, which closes the active tab. There were