How to populate the value of SHUTTLE item from MULTISELECT item

Hi,
I am have following 2 items
P1_TEXT1 - multiselect
P1_TEXT2 - shuttle
I have populated the value of P1_TEXT1(multiselect) and then want to assign the same value to P1_TEXT12 (shuttle)
I am using following Javascript function to assign the value of P1_TEXT1 to P1_TEXT2 but it's not working??
$x('P1_TEXT2').value = $x('P1_TEXT1').valuethanks,
Deepak
Edited by: Deepak_J on Dec 4, 2009 3:28 PM

Hi Jari,
I modified the earlier script as shown below. It's working perfectly fine as per my requirement.
Pl let me know if these changes are fine OR is there is any modification we need.
<script>
      var ob  = $x('P1_TEXT1');
      var ob2 = $x('P1_TEXT2_LEFT');
      var ob3 = $x('P1_TEXT2_RIGHT');
      // added this piece as per your suggestion..
      var g_myShuttle = null;
      if(!flowSelectArray){
        var flowSelectArray = [];
      flowSelectArray[flowSelectArray.length] = "P1_TEXT2_RIGHT";
      g_myShuttle = new dhtml_ShuttleObject 
      ("P132_HDWR_DEVCE_ID_LEFT","P1_TEXT2_RIGHT");
      // Remove all values
      g_myShuttle.remove_all();   
      // added this FOR LOOP, which will make every thing on the LEFT side unselected initially
      for (var j = 0; j < ob2.options.length; j++)
          ob2.options[j].selected = false;
      for (var i = 0; i < ob.options.length; i++)
             for (var j = 0; j < ob2.options.length; j++)
                if(ob2.options[j].value == ob.options.value)
ob2.options[j].selected = true;
var g_myShuttle = null;
if(!flowSelectArray){
var flowSelectArray = [];
flowSelectArray[flowSelectArray.length] = "P1_TEXT2_RIGHT";
g_myShuttle = new dhtml_ShuttleObject
("P1_TEXT2_LEFT","P1_TEXT2_RIGHT");
g_myShuttle.move();
</script>
Thanks,
Deepak                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How to populate Initial value of a field from another item value

    Hi
    In my expense report entry screen I have justification and description fields. My description field is getting value from the database. I want justification field also get the value same as what description has. Could you guide me on how to achieve this via personalization?
    Thank you.

    Hi,
    user622444 wrote:
    In my expense report entry screen I have justification and description fields. My description field is getting value from the database. I want justification field also get the value same as what description has. Could you guide me on how to achieve this via personalization?---Copy the viewAttribute name of the description
    ---Paste it in Justification view Attribite property.
    Regards
    Mehar Irk

  • How to get the values of Select-options from the screen.

    The value of parameter can be obtained by function module 'DYNP_VALUES_READ' but How to get the values of Select-options from the screen? I want the F4 help values of select-options B depending on the values in Select-option A.So I want to read the Select-option A's value.

    Hi,
    Refer this following code..this will solve your problem...
    "Following code reads value entered in s_po select options and willprovide search
    "help for s_item depending upon s_po value.
    REPORT TEST.
    TABLES : ekpo.
    DATA: BEGIN OF itab OCCURS 0,
    ebelp LIKE ekpo-ebelp,
    END OF itab.
    SELECT-OPTIONS   s_po FOR ekpo-ebeln.
    SELECT-OPTIONS s_item FOR ekpo-ebelp.
    INITIALIZATION.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_item-low.
      DATA:
      dyn_field TYPE dynpread,
      temp_fields TYPE TABLE OF dynpread,
      zlv_dynpro TYPE syst-repid.
      zlv_dynpro = syst-repid.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname     = zlv_dynpro
          dynumb     = syst-dynnr
          request    = 'A'
        TABLES
          dynpfields = temp_fields
        EXCEPTIONS
          OTHERS     = 0.
      LOOP AT temp_fields INTO dyn_field.
        IF dyn_field-fieldname EQ 'S_PO-LOW'.
            SELECT * INTO CORRESPONDING fields OF TABLE itab FROM ekpo
            WHERE ebeln EQ dyn_field-fieldvalue.
            EXIT.
        ENDIF.
      ENDLOOP.

  • How to Access the value(Ex: Delivery no) From Web to R/3 side.

    How to Access the value(Ex: Delivery no) From Web to R/3 side.
    Any sample code please suggest.
    sai

    Hi,
    Try RSA3.
    Extract Checker
    /people/sajeed.ms/blog/2006/02/12/extract-checker
    Thanks,
    JituK

  • How to populate the values based on different selections in Dashboard Promp

    Hi,
    I have a group prompt, which has 2 drop downs. The DropDown1 decides the values of DropDown2.
    I have used a SQL query in the "Show" values which will populate the dropdowns.
    When a value is 'selected" from DropDown1, the selected value decided the values of DropDown2 which is again a SQL query.
    But I see that when a new value is selected from DropDown1, the values in DropDown2 will not change until I click on GO.Even after clicking GO, the previously selcted value is retained.
    As an illustration:
    animals,plants are the choices in the first drop down, which if, animal is selected would populate the dropdown2 with cow,sheep, tiger.
    Assume animal is selected. The second drop down now is populated with cow,sheep and tiger. Assume you chose sheep.This resulted in display of sheep related info on the BI page.
    Now if I go back to the first dropdown and select plants, I would expect the second drop down to be populated with fig, palm, coconut.
    However in my case I see only the proviously popluated animals in the DropDown2.
    If I click on Go, I see that the DropDown2 is populated with Sheep,,fig, palm, coconut. Ideally I should not have seen the prevously selected value in DropDown2.
    Here there are 2 problems stated for a group promt having 2 DropDowns where item chosen from one decides the values of the other dropdown
    1. On selecting an item from DropDown1, is not populating with the corresponding values in DropDown2
    2. When 'Go' is clicked, DropDown2 is populated with the corresponding values for DropDown1 + the previously selected value in DropDown2 is retained.
    Any input to get out of this problem will help
    thanks
    Shubha

    Hi
    I am using group prompt and has 4 drop downs.
    Value of one decides the other. Values for the dropdowns will be populated by SQL results.
    'Constrain' will not be available for sql results..
    How to go about this?
    thanks
    Shubha

  • How to populate the values in the drop down list form the xml file ?

    I want to populate the drop down list values from a seperate xml file called ReferenceData. I created this file, which consists of a mapping entry in the form of ( key,value ) pair. Am mapping this xml file in to form by using rule named as getAppReferenceData.
    But the values are not getting populated in the form. And I have a doubt of, where should we keep that xml file? (under which path / folder ).

    what would help is if you showed what you do in the rule, either the code or a express trace of the rule.
    The other thing you need to know is where you want to get the file from. Yes java can read a file from anywhere on the system but there is a security layer in there which might prevent the file being opened. Have you allowed acces to the file via the security policy settings via java.io.FilePermission?
    WilfredS

  • How to Populate the Values in Custom Ztable

    Hello, I created the table In SE11 ZPRP, now how to populate this table with data ,
    like
    <b>1. i want to make entries in table please help how to do that.</b>
    <b>2.</b> I want to know if there is any way I can link this table ZPRP to pick up all enties from anoth custom table which has entries since both tables have exact similar structure.
    Thanks
    Regards
    Soniya Kapoor

    Hi,
    1) In SE11 -> Delivery and Maintenance tab, select 'X', Display/maintenanace allowed...
    Activate the table..
    Then in the menu bar , Utilities->Table contents -> create entries...
    Using this u can create new entries into ur table..
    2) Use an ABAP code to download the table data.. and then upload the same to   other table..
    Select * from Z*** into table g_itab.
    if sy-subrc =0.
    Insert ZPRP from g_itab..
    endif..
    Thanks
    Rajiv

  • How to populate the dropdown in selection widget from a file?

    i am using a cq:widget of xtype selection and type select. I got lot of values as my options.i want a simple procedure to populate them. They have mentioned that they can be populated from a json response. Can you explain how to do the same? or is ther any other method for the same

    Steve,
    You can check OOTB List component at below location.
    /libs/foundation/components/list/dialog/items/list/items/displayAs
    Here dispalyAs tab having cq:widget of xtype selection in which values are populating through displayoptions.json.jsp which is referenced by options property set on displayAs tab.
    Regards
    Briejsh Yadav.

  • How to populate the value of 1 field in subtabs.

    Guys,
    Need your help.
    In one of the standard page there are multiple subtabs. So, I have requirement if users enter a value for a field in 1st subtab then the same value should automatically get populated to the second subtab field .
    Please help me in this.
    Is it possible through personalization or we need to extend the CO.
    Standard Page :- /oracle/apps/ap/payments/psr/webui/PsrPG
    This is a form in 11i but in R12 it is OAF page.

    Hi,
    As per my understanding, you have to extend your controller class:
    1) Set PPR event on tab/field
    2) Catch the PPR event in PFR method.
    3) Get handle to AM and then VO and set attributes of the VO of 2nd tab.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Populate the values  to  list item based on a check box

    Hi,
    How can i populate the values from a field on the form to one list item based on a check box,
    the pseudo code is like,
    if checkbox = checked then
    populate the particular field value to the list item;
    checkbox = unchecked;
    next_record;
    end if;
    Thanks
    Bcj

    To populate a Tlist item, do the following:
    1. Create a TLIST item in the EMP block. and give it a height to accommodate several names.
    2. Using the TLIST property pallete:
    a. Set the Column Name property to EMPNO
    b. Click on the Elements in List property. Delete each List Element and delete each List Item Value. If you don't do this you will get an error when you compile.
    3. Create a record group using this query:
    select ename, to_char(empno) from emp
    4. Create a WHEN-NEW-FORM-INSTANCE trigger, and place this code inside the trigger:
    Declare
    err_num number;
    Begin
    clear_list('YOUR_TLIST');
    err_num := populate_group('YOUR_RECORD_GROUP');
    If err_num = 0 Then
    populate_list('YOUR_TLIST', 'YOUR_RECORD_GROUP');
    Else
    message('Error populating Tlist');
    message('Error populating Tlist');
    End If;
    End;
    5. Compile and run the form. The ENAMEs will appear in the TList, and each ENAME will have a value equal to its EMPNO.

  • How to access the value of application item in javascript

    How to access the value of application item in javascript?

    Hi,
    One way
    var myVariable = '&MY_APP_ITEM.';Br,Jari

  • How to populate the calculated value into screen field.

    I am doing one enhancement in QM.I have added one custom screen to notification transaction ( QM01/QM02/QM03) transaction tab strip control using the enhancement QQMA0001.The Details of the calling and called screens as shown bellow
    The Calling screen: SAPLIQS0
    Screen Number: 7790
    Screen Area :USER0001
    Called Screen: SAPLXQQM
    Screen Number: 0101
    I have developed the Custom Screen in screen 0101 and called in PBO of program SAPLIQS0 7790 screen.
    The Screen in calling perfectly .The Custom screen having different fields like Raw cost, Intermediate cost, Finished cost, SCAR Cost and Sales Order Cost Etc... These fields are out put filed types. No input for these screens.. I have few doubts regarding this
    How to populate the calculated values in Custom screen?
    Where we wrote the code to populate the calculated values in custom screen?
    You have any idea please guide me
    Thanks & Regards,
    Samantula

    As your screen fields should be global variables in SAPLXQQM, you may initialize them by implementing function module EXIT_SAPMIWO0_008 which also belongs to SAPLXQQM (Customer Exit: Transfer Notification Data to User Screen)

  • How to populate various values in a text item

    Hi
    I have a simple form based on a single tables containing name, address, city, state, zip1, zip2 and country fields. On form I am only displaying the zip field which captures value from zip1. Now my delimma is to populate zip2 values when country changes from USA to some other country. What trigger I need to place and soem hints please.
    Thanks
    Zahir

    Hai, Zahir
    u can use Post-Query on Block and set Zip accodingly from Zip1 or Zip2
    Check it .
    i think u will solve u r problem
    do reply.
    Bye
    Raj.
    mail : [email protected]

  • How to set the value of application item using pl/sql in application process

    Hi guys,
    I want a global variable (application item) whose value will be set at the start when a user logs in to the application. The value will be retrieved from database using a sql query. I do not know the exact syntax to set the value of application item in application process. Also i want to know in which type of application process should i use to set the value of application item when a user starts a session. The value of application item varies from user to user.
    Please help.
    I am using apex 4.2
    Regards,
    Waqas

    You can use the application item as bind-variable with its name. ie. your application item is named G_MY_APPLICATION_ITEM, then you can access/set it using :G_MY_APPLICATION_ITEM.
    For example
    BEGIN
        -- assign like a variable
        :G_MY_APPLICATION_ITEM := 'LARRY';
        -- use in a SQL statement
        SELECT WHATEVER_COLUMN
          INTO :G_MY_APPLICATION_ITEM
          FROM MY_TABLE
         WHERE USERNAME = :APP_USER
    END;
    Peter

  • Requirement to populate the Profit center field of Vendor line item thru...

    Hi,
    My requirement is to populate the Profit center field of Vendor line item.
    For this, I want to write a substitution where based on the Business Area of Vendor line item, the system should populate the Profit center while saving.
    Is it possible thru Validation & Substitutions...
    Plz guide me in writing this
    Points will be suitable rewarded for replies.
    regards
    AVM

    Tcode: GGB1
    An example shows how to make a G/L account available for line item substitution.
    GGB1
    Click FA – Doc Header
    Click Create Substitution icon
    Enter the Text
    Click Create Step icon
    Click the field u want – Say - BKPF- BKTXT
    Choose the option – Say :Constant value
    Give description of ur step
    Click Prerequisite
    Double Click Structure BKPF
    Double Click BKPF-AWKEY
    Click Constant button
    Enter the Text u want to make it appler in the Reference key
    Click Substitution and enter the constant value u want
    Go to Tcode: GGB4
    Click Substituted Fields
    Give ur table and field (Here - BKPF- BKTXT)
    Do it in a similar way..if u cannot proceed, let me know the exact field values..and i can take screenshots and send u across
    Thanks,
    Sridevi

Maybe you are looking for

  • Safari shut down Mac OS 10.6.4/Safari 5.0.2 (6533.18.5)

    In the past week, Safari (for Mac) 5.0.2 (6533.18.5) has shut down "unexpectedly" at least 3 times daily. The report I receive is below ... please can someone tell me what's going on? Process: Safari [507] Path: /Applications/Safari.app/Contents/MacO

  • Can I stream Xfinity from my Ipad to Apple TV

    I just purchased Apple TV and I want to sent my Xfinity content from my Ipad to my TV. I thought I could do this with Airplay but I can't find any instructions on how to do so.

  • Trouble reading AIFC files in AA3 (& 1.5 too)

    As you may all know avid/digi (in their infinite wisdom) chose on their MAC versions to use AIF- compressed format (AIFC) for Audio files, but without any compression, so in a way the same as straight AIF & the files have an "AIF" extension. As you m

  • Selecting the records

    hey guys i need ur help. I have columns with values in a table like this flag -- reading --amount Y --10 --300 N --40 --NULL N --50 --NULL Y --50 --200 N --50 --NULL now i have to calculate the split_amount for each individual READING based on first

  • Dealing with Drobo (best practices?)

    I have two second generation Data Robotics Drobos, and have been using them under 10.6 on a MacBook via USB. Like many Drobo users, I have had various "issues" over the years, and even suffered 1TB of data loss probably related to the USB eject bug t