OnSelect event in THTMLB ddlistbox

Hi,
      I'm using the OnSelect event for the dropdownlistbox. However, after the eventhandler finishes, the listbox resets and goes to the initial value. The selected entry is not retained. All the rest of the fields in the page retain their values. Can anyone provide workaround for this?

Peter,
       I have bound the selection attribute of the listbox to  a value attribute created under the context nodes. I have checked the value of this value attribute after selecting from the dropdown list. It is able to store the item selected and I'm able to populate other fields based on that. I can't understand why the listbox is reset. OnClientSelect has no issues, but I can't use that. I will have to use the debugger with some patience. Hey, thanks a lot. You've helped me out with other questions as well. I will check this out and award you points.
Arun Prakash.
Edited by: Arun Prakash Karuppanan on May 17, 2008 9:46 PM

Similar Messages

  • OnSelect event for a Drop down UI Element in Webdynpro ABAP Select Options

    Hi Experts
    We have built our UI based on the webdynpro ABAP Select Options. We have a requirement that, when we change the value of a drop down box in the UI, I need to hide some fields. Can anybody help me out in handling of OnSelect event of a drop down box built using webdynpro ABAP Select Options. We are on SAP Netweaver 7.0 EHP1.
    Rrgards,
    Srikanth.
    Edited by: Srikanth Kancherla on Apr 29, 2010 10:43 PM

    Hi Srikanth,
    as you seem to be already aware, the component is dynamically built.
    so you would have to enhance the code that builds the element and insert a reference to a new action (enhancement) that could handle the onSelect event.
    What is it about this that you particularly want help with?
    Cheers,
    Chris

  • Problem with onSelect event for DropdownbyIndex in the IView

    Hello ,
    I have an webdynpro for java application where I am using Dropdownby Index. I have associated onSelect event for the dropdown by index. When I launch the application in the standalone mode ( direct application launch) every thing works fine. The onSelect event for the dropdown is also working fine.
    I have made an Iview of the webdynpro application. Here on select of the dropdown box  I am getting a java script error "Access Denied". Please can you suggest me how do I correct this strange problem .
    I have developed the webdynpro application in NW640 SP15 .
    Thanks in advance for the help
    V Vinay

    Hi Vinay,
    Does the portal and the application inside of the iView run both on HTTP or HTTPs? Mixing them is not possible.
    Best regards,
    Thomas

  • OnSelect event for dropdownbykey, getting fired twice in IE8

    When you click on key of dropdown , the event "On Select"  getting fired twice in IE8.
    If I try the application using Firefox, it's ok.
    Someone resolve apply the oss note 1461842  and 1411235, but in both notes there's nothing about dropdownbykey.
    Thanks a lot, !!!

    >
    Baskaran Senthivel wrote:
    > Hi,
    >
    > If i am not wrong IE8 is not in the supported list of browsers.
    IE8 is supported.  You can always check the latest supported browsers from the PAM (Platform Availability Matrix) http://service.sap.com/pam
    IE8 does require one of the later Support Package levels, however. See the PAM for the details.
    As far as the notes you reference, they might well fix your problem.  The Unified Rendering fix notes often don't list all the specific issues they address.  They simply list the patch level of the UR.  This problem does sound like a client side/UR problem.

  • Dropdown list onSelect event

    actually i am new bee in JSP and Servlets
    i am stuck in a problem that suppose if i have a drop down box and textbox on a JSP page.
    in drop down box say names are there.
    i want if i select any name from list, its corresponding name_id which is in database and integer should get filled in textbox automatically at the same time i select name.
    java script may also help.
    any suggestions please
    thanks and regards.

    Hi manni_n1,
    You need to use AJAX for this requirement.
    Call Javascript function from drop down box with onchange event.Create xmlhttp object and forword get request to one of ur servlet.
    In servlet write database code and return result with out.println.
    for additional information search on google for AJAX

  • Repopulating BOL Structure via ONSELECT Event

    Hello.  I have searched the forums and could not find an answer.  We currently use WebIC and have a screen where the CSRs can add and remove addresses (related to the business partner).  A change was requested to add a phone number table to this screen so that phone numbers for each address can be maintained (since phone numbers are tied to the address).  Addresses are one BOL structure and phone numbers are a different BOL structure.  Basically what I am trying to accomplish is, when an address is selected, the phone number BOL structure is repopulated with phone numbers associated with that address and the view is refreshed to show those phone numbers.  I am not sure if this is even possible but wanted to ask.  The CSR can then add, change, or remove phone numbers and when they hit SAVE, the data should be replicated back to ECC.  Has anyone done anything similar to this or know how to accomplish this (or is this even possible)?  Thanks for any assistance.

    Kevin, what you are asking is very much possible and is infact delivered by the standard solution. In the BOL model, an address is a parent entity, and the phone numbers are children entities of the addr. There is also a 1:n relationship between them, which means that an address can have multiple phone numbers.
    However, if your requirement is that the phone numbers be directly maintainable, instead of going through an address, you might have to do a bit of tweaking where the phone numbers are created corresponding to the standard addresses. This will need a development effort, but it can be done.
    Cheers,
    Sid.

  • Linked hasmap - does it have a onselect event ?

    I have a linked  hashmap in my java code. declared as below
    private final LinkedHashMap g_recentplant = new LinkedHashMap();
    at runtime, there are few values displayed in the linked hashmap. user can select a value from the map and the selected value gets populated in the input field that I have associated with this hashmap.
    I want to perform an action as soon as the user selects a value from the hashmap. Is it possible. if yes, how ?
    Action I want to perform  :   As soon as the user selects a value from the hashmap, the selected value overrites the existing value in the input field. I don want this to happen. I want to get the recently selected value from hashmap and append it with the already existing value in the input field. If this is not possible using hashmaps, please suggest some other solution.
    Regards
    Mrinalini

    I have a linked  hashmap in my java code. declared as below
    private final LinkedHashMap g_recentplant = new LinkedHashMap();
    at runtime, there are few values displayed in the linked hashmap. user can select a value from the map and the selected value gets populated in the input field that I have associated with this hashmap.
    I want to perform an action as soon as the user selects a value from the hashmap. Is it possible. if yes, how ?
    Action I want to perform  :   As soon as the user selects a value from the hashmap, the selected value overrites the existing value in the input field. I don want this to happen. I want to get the recently selected value from hashmap and append it with the already existing value in the input field. If this is not possible using hashmaps, please suggest some other solution.
    Regards
    Mrinalini

  • Regarding mx:Tree onselect event of childs

    Hi Frens,
    I had created simple application, Now I had a mx:Tree
    component here, All the options i m providing to this tree using
    the XML ListCollection. Now I want when i click one of the options
    of tree one particular view should be made visible, so how can i
    get the value of a particular option in script. What should be
    script for this:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" xmlns:local="*">
    <mx:XMLListCollection id="MessageOptions"
    source="{Folders}"/>
    <mx:XMLList id="Folders">
    <folder label="Mail">
    <folder label="AllMsd" />
    <folder label="WRITE" />
    <folder label="PrivateMSg" />
    <folder label="Deleted" />
    </folder>
    </mx:XMLList>
    <mx:HDividedBox x="30" y="60" height="100%" width="100%"
    >
    <mx:ApplicationControlBar id="acbDashboard" x="20" y="10"
    height="90%" width="20%" borderThickness="4" borderColor="#41244"
    verticalAlign="middle">
    <mx:Tree id="tree1" dataProvider="{MessageOptions}"
    labelField="@label" showRoot="true" width="100%" height="100%"/>
    </mx:ApplicationControlBar>
    <mx:VDividedBox id="acbMain"
    x="{acbDashboard.width+acbDashboard.x+10}" y="10" height="90%"
    width="78%" >
    <mx:ApplicationControlBar id="acbInbox" width="95%"
    height="60%" >
    <local:MyVBox id="AllMsges" width="100%" height="100%"
    visible="true">
    </local:MyVBox>
    <local:MyCompose id="vbWriteMsg" visible="false">
    </local:MyCompose>
    <local:MyCompose id="vbMyMsg" visible="false">
    </local:MyCompose>
    <local:MyCompose id="vbDeletedMsg" visible="false">
    </local:MyCompose>
    </mx:ApplicationControlBar>
    <mx:ApplicationControlBar id="acbDetails" width="95%"
    height="40%">
    <mx:VBox width="100%" height="100%">
    <mx:Label text="MESSAGE" width="100%" height="20"
    fontWeight="bold"/>
    <mx:Spacer height="2" />
    <mx:TextArea id="txtMessage" width="98%" height="80%"
    editable="false" />
    </mx:VBox>
    </mx:ApplicationControlBar>
    </mx:VDividedBox>
    </mx:HDividedBox>
    </mx:Application>
    Plz tell me.

    in italian
    http://www.augitaly.com/flexgala/index.php?cmd=newsreader&id=129
    http://www.augitaly.com/flexgala/index.php?cmd=newsreader&id=123

  • "Leave tab" event for tabs in TabStrip UI

    Hi
    I want to check that some input fields are valid and force users do not change Tab in TabStrip (until enter valid values for required fields) but I do not know is it possible this in Webdynpro? Does anybody know which is this event and may I use it in my WD Application?
    In TabStrip there is action for OnSelect event but this is event when user enters in Tab. I need event when user exits the tab.

    In BSP the tabStrip has a value "selection" which if you read the tabStrip to see the tab they selected you can store that value.
    Then check if the fields are filled in if so then pass the stored value back to the "selection" parameter and if not give the name of the tab they were currently on back to the "selection" parameter.

  • JSP Event Listeners ????

    Hi,
    Do event listeners exist in JSP (like in SWING)? Is there something similar in JSP?
    Any info would be appreciated.

    Hi,
    Do event listeners exist in JSP (like in SWING)? Is
    there something similar in JSP?
    Any info would be appreciated.
    There are no event listeners in a JSP. Once the JSP page is loaded the browser does not know it is a JSP. It is an HTML file as far as the browser is concerned.
    Use JavaScript events if you need event handling in the loaded JSP page.
    Most HTML tags have events of some sort. For example, a form INPUT tag has onBlur, onChange, onFocus, and onSelect events. Check an HTML tag reference and a JavaScript or JScript manual for details.
    MSIE 5 has more events than Netscape 4. I do not know about Netscape 6 and later.

  • F4 Event in table

    hi,
      I want to use the F4 Help in table, when select a value, i can fire a event to
    change the valoue of other attribute.
      Can you help me?
      Thank you very much!

    Hi,
    In the table column if we have table column as inputfield then on press event we could write logic to update other fields but other that we needto write code in WDDOMODIFYVIEW to check if the table column has certain value then change the context.
    Or we can use other UI elements like Dropdownbykey were we have onselect event. on select event we could write code to update other value of another attribute.
    Best regards,
    Suresh

  • Event for Table rows deselection

    Hi Guys,
    I have created a Table  and created a method for  event 'OnSelect'.I am capturing row values into an internal table when  user select a value from the table.Here my problem is once deselected after selecting the row ,the selected data is still appearing in the internal table but deselected value should get deleted from the table.How it can be acheived.Is there any event for deselection.
    Thanks
    Nandana.

    Hi nandana,
    If i am understanding your query correctly, on Row select you are appending the row value to an internal table.
    Now on deselect you want the row to be removed.
    So do one thing in that event method before appending the row into table check if the row value previously exist.
    If it exist then remove the row from internal table otherwise append it into the table.
    Check it works or not.
    If it is not working with onSelect event try to use onLeadSelect event.

  • RoadMap  onSelect does nor return the selected step

    I'm using the roadmap to visualize the working steps in wizard like manner. Everything works fine.
    I would like to make it possible to navigate  by clicking the steps in the roadmap to reach previous steps faster.
    The onSelect method is fired every time I click on a step. The documentation promises that there is a parameter called step which contains the currently selected step id. But the parameter list within the event parameter is empty. Where can I find the information about the selected step?
    Or is the roadmap not intended for such a kind of usage?
    Thanks in advance
    Antje
    I'm using SP12.

    To get the selected step in an action handler you have to define a so-called parameter mapping between the UI element event parameter and the action handler parameter.
    In wdDoModifyView() write the following code:
    if (firstTime)
      IWDRoadMap roadmap = (IWDRoadMap)
        view.getElement("RoadMapID");
      roadmap.mappingOfOnSelect().addSourceMapping("step", "selectedStep");
    In the action that handles the onSelect event, define a parameter "selectedStep" of type "string".
    At runtime, the corresponding action handler parameter will contain the new selected RoadMap step ID.
    Armin
    (****, I lost the photo-finish with Valery
    Message was edited by: Armin Reichert

  • No available events to handle onclick of a tab?

    Maybe I'm missing something here, but we have implemented a tabstrip view with multiple tabs. But we can't seem to find an event that allows us to code some custom logic that is fired whenever a particular tab is clicked.
    Right now, there is some code that is invoked in the custom controller whenever the entire tab strip view is displayed, but functionally, when a user clicks on a particular tab, I actually want some other logic to invoke to see if other tabs have got certain data. I cannot seem to find a place to put this code that executes when a particular tab is clicked.
    Help!

    Hi Yew
    You can attach an action to the onSelect event in the TabStrip. On every selection of a tab this will be fired and in the modify view you can use the following code to find out which tab is selected
    IWDTabStrip iwdTabStrip = (IWDTabStrip) view.getElement("<id of the TabStrip>");
    String selectedTab = iwdTabStrip.getSelectedTab();
    The string 'selectedTab' will be the id of the tab that you have selected.
    Regards
    Pran

  • WDA error in changing read only property of fields at runtime

    Hello Friends,
    I am creating a custom Web Dynpro ABAP Application for FI module in ECC 6.0
    I need to make a set of fields uneditable/grayed out based on a value in a dropdown list. If the user chooses the other value (out of the 2 values provided) in the dropdown list, the set of fields need to made editable.
    I created a context attribute of type WDY_BOOLEAN and bound this attribute to the "readOnly" property of the aforementioned fields. When defining context binding, I chose the option "Bind Directly to the Selected Attribute".
    I have written the following code in the OnSelect event handler method for the dropdown:
    I read the value in the dropdown which is stored in the variable "lv_payment_instrument". Based on this value, I am changing the value of the context attribute:
    if lv_payment_instrument = 'X'.
      DATA lo_nd_check_fields1 TYPE REF TO if_wd_context_node.
      DATA lo_el_check_fields1 TYPE REF TO if_wd_context_element.
      DATA ls_check_fields1 TYPE wd_this->Element_check_fields.
      DATA lv_editable1 TYPE wd_this->Element_check_fields-editable.
    navigate from <CONTEXT> to <CHECK_FIELDS> via lead selection
      lo_nd_check_fields1 = wd_context->get_child_node( name = wd_this->wdctx_check_fields ).
    @TODO handle non existant child
    IF lo_nd_check_fields IS INITIAL.
    ENDIF.
    get element via lead selection
      lo_el_check_fields1 = lo_nd_check_fields1->get_element( ).
    @TODO handle not set lead selection
      IF lo_el_check_fields1 IS INITIAL.
      ENDIF.
    @TODO fill attribute
    lv_editable = 1.
    set single attribute
      lo_el_check_fields1->set_attribute(
        name =  `EDITABLE`
        value = 'ABAP_FALSE' ).
    elseif lv_payment_instrument = 'Q'.
      DATA lo_nd_check_fields TYPE REF TO if_wd_context_node.
        DATA lo_el_check_fields TYPE REF TO if_wd_context_element.
        DATA ls_check_fields TYPE wd_this->Element_check_fields.
        DATA lv_editable TYPE wd_this->Element_check_fields-editable.
    *navigate from <CONTEXT> to <CHECK_FIELDS> via lead selection
        lo_nd_check_fields = wd_context->get_child_node( name = wd_this->wdctx_check_fields ).
    *@TODO handle non existant child
       IF lo_nd_check_fields IS INITIAL.
       ENDIF.
    *get element via lead selection
        lo_el_check_fields = lo_nd_check_fields->get_element( ).
    *@TODO handle not set lead selection
        IF lo_el_check_fields IS INITIAL.
        ENDIF.
    *@TODO fill attribute
       lv_editable = 1.
    *set single attribute
        lo_el_check_fields->set_attribute(
          name =  `EDITABLE`
          value =  'ABAP_TRUE' ).
    endif.
    When the user chooses either of the 2 values in the dropdown, the set of fields are made uneditable. I am unable to make them editable again.
    I would greatly appreciate your inputs/thoughts on how to rectify this error.
    Regards,
    Arun.

    Hi,
    Create one attribute of type WDY_BOOLEAN , i think u already done.
    First get selected dropdown value into one variable.
    For example  :
    lo_el_segment1 = WDEVENT->GET_CONTEXT_ELEMENT( 'CONTEXT_ELEMENT' ).
    get all declared attributes
    lo_el_segment1->get_static_attributes(
    IMPORTING
    static_attributes = ls_segment1 ).
    now ls_segment1 has selected drop down value.
    DATA : lv_dropdown type string .
    lv_dropdown = ls_segment1-segment.
    If lv_dropdown = 'X'.
    set single attribute
    lo_el_check_fields1->set_attribute(
    name = `EDITABLE`
    value = ABAP_FALSE ). // No Quotes, ABAP_TRUE or false not works use 1 0r 2 or ' ' 'X' .
    elseif lv_dropdown = 'Q'.
    set single attribute
    lo_el_check_fields1->set_attribute(
    name = `EDITABLE`
    value = ABAP_FALSE ).
    else.
    set single attribute
    lo_el_check_fields1->set_attribute(
    name = `EDITABLE`
    value = ABAP_TRUE ).
    Hope it solves..
    cheers,
    Kris.

Maybe you are looking for

  • How can I create a scene and move 3D models in INSIGHT with Labview?

    Hi! I need some help in doing a LabView application. What i have to do is controlling a 3D model represented in Insight with Labview. Something similar like the six-axis-robot example. I follow the insight configuration wizard, but nothing moves. Com

  • Difference between FS10N report and S_ALR_87012082 Report

    Hi, I am getting a difference between recon account balance (FS10N) and vendor balances (S_ALR_87012082). Same difference is appearing in report for previous year end also. Can anyone please look into this matter and help me in resolving this issue?

  • Blank DVD will not be recognized

    Huhu, i have troubles with burning DVD's (i guess also with CD's, but haven't tried yet, no blank CD @ /home ) I'm using graveman (also tried brasero), it found my CD/DVD drive and also makes copies from CD's/DVD's But when i start burning an .iso fi

  • Deleted playlists means i cant update my ipod...HELP!!!!

    i deleted my playists to start them over and since then i have been unable to update my iPod with new songs! i dont know what to do about it or even why it wont update the songs...please can someone explain and tell me a solution!   Windows XP  

  • Can you edit CRM records with {Tag_edit}

    Hi, I 'm wondering if I can edit my records with {tag_edit) I can edit the web apps , but when I include the {module_firstname} and edit it. It wont edit the record in CRM. So I wonder if there is way to do it? I don't think it will be through web ap