ComboBox - Setting Selected Values from data

I am running into a problem in Flex 3 that seems to be
different from Flex 2. Maybe someone can help.
I have a function for setting a combobox selected item for a
location for a value when the titlewindow completes loading. The
value is a prior value from a prior save. In other words to set the
combobox a value from a prior session.
The locations xml file is loaded from a remote object
oncreationcomplete of the titlewindow. The setselectedvalue
function worked perfectly in Flex 2 but now only works in Flex 2
after the titlewindow is loaded. We tested this by running the
setselectedvalue function from a button click after loading.
The dataprovider length is showing 0 in our debugging. After
titlewindow up on screen the length is showing correct ( 35 ) - in
this case. Our viewxmlobject function is showing no xml. Shows xml
correctly after up on screen.
I have set the creationpolicy to "all". That did not help
either.
Any suggestions? Anyone. This is killing me. Spent two days
now trying to get back to working state.
private function SetSelectedValue_cbLocation(): void {
var xLocID:String = eLocationID.text;
//viewXmlObject( cbLocation.dataProvider )
for (var i : int = 0; i < cbLocation.dataProvider.length
; i++) {
//Alert.show( cbLocation.dataProvider
.locid, 'Location DataProvider', Alert.OK);
if ( xLocID == cbLocation.dataProvider.locid ){
cbLocation.selectedIndex = i;
break;
The combobox has the dataprovider set at design time.
<components:is2ComboBox id="cbLocation" x="585" y="4"
width="196" dataProvider="{xmlLocations.Record}"
labelField="locname" dataField="locid"
change="changeLocation(event)" disabledColor="#004080" prompt="1.
Please select location"></components:is2ComboBox>

Hard to say without seeing the code. Is the application
opening a pop-up window (the title window)? If so, where is the
combo box located? In the main app or the titleWindow? What calls
the SetSelectedValue_cbLocation() function?

Similar Messages

  • Accessing Selected Value from Payment Terms (Item 47) in AR Invoice Form

    Hi,
    Have just started working in SAP Business One and SDK adn would really appreciate any help I could receive.
    I'm trying to access the selected value from Payment Terms field(Item 47) in the AR Invoice Form.
    Have successfully managed to do this against Customer Code field using the following code-:
    Private Sub eventHandlerTest(ByVal FormUID As String, pVal As SAPbouiCOM.ItemEvent, BubbleEvent As Boolean)
        Dim frm As SAPbouiCOM.Form
        Dim itmCustomer As SAPbouiCOM.Item
        Dim edtCustomer As SAPbouiCOM.EditText
        Dim itmRemark As SAPbouiCOM.Item
        Dim edtRemark As SAPbouiCOM.EditText
        Dim FieldNo As String
        Set frm = SBO_Application.Forms(FormUID)
        Set itmCustomer = frm.Items(pVal.ItemUID)
        Set edtCustomer = itmCustomer.Specific
        If UCase(edtCustomer.Value) = "CALECH1" Then
            FieldNo = "16"
            Set itmRemark = frm.Items(FieldNo)
            Set edtRemark = itmRemark.Specific
            edtRemark.String = "E"
        End If
    End Sub
    However when doing the same thing for Payment Terms I get the error "Run-time error '13': type mismatch" on the line
    Set edtOrderType = itmOrderType.Specific
    Thanks

    Hi,
    On the new invoice's form item 47 is ComboBox and I guess it's stay in the same type when you open existing invoice. So try to work with this item like with ComboBox. But if you need only get some information about existing invoice, you don't need to fork with the screen objects - you can get all you need from the DI Document object. Open Document object with Invoice type, find invoice and check PaymentGroupCode property.
    Best regards,
    Mark

  • How to get selected value from selectOneRadio ???

    Hi...i want to how to get selected value from selectOneRadio and use it in another page and in backing bean.
    Note i have about 10 selectOneRadio group in one page i want to know value of each one of them.
    Plzzzzzzzz i need help

    You have a datatable in which each row is a question, correct?
    Also in each row you have 5 possible answers that are in a radio, correct?
    So,
    You need to put in your datatable model, a question, and a list of answers (5 in yor case) and the selected one.
    So you will have a get to the question, an SelectItem[] list to populate the radios and another get/set to the selected question.
    ex:
    <h:selectOneRadio value="#{notas.selectedString}" id="rb">
    <f:selectItem itemValue="#{notas.valuesList}"/>
    </h:selectOneRadio>
    Search the web for examples like yours.

  • Dvt:pivotFilterBar - how to get selected values from filter

    Hi all,
    I have a question: how to programmatically get selected values from pivot table's filter bar?
    I have tried to use
    pivotTable.getDataModel().getDataAccess().getValueQDR(startRow, startCol, DataAccess.QDR_WITH_PAGE);but for page edge dimensions it returns BAD DATA, it seems that it returns some cached values.
    Environment: JDev 11.1.1.3.0 without any patches.
    thanks,
    Miroslaw

    Hi,
    You can retrieve the selected value in the PivotFilterBar through the model of PivotFilterBar, instead of dataaccess:
    // get the model from the pivot filter bar instance
    QueryDescriptior queryDescriptor = (QueryDescriptor)pivotFilterBar.getValue();
    // retrieve a list of criterion, each one is used to populate each lov within the pivot filter bar
    ConjunctionCriterion conjunctionCriterion = queryDescriptor.getConjunctionCriterion();
    List<Criterion> criterionList = conjunctionCriterion.getCriterionList();
    for (int i=0; i<_criterionList.size(); i++) {
    AttributeCriterion criterion = (AttributeCriterion)criterionList.get(i);
    // _selected is the currently selected value
    Object selected = criterion.getValues().get(0);
    System.out.println(_selected);
    Hope that helps,
    Chadwick

  • How to capture the selected values from module pool dialog list box !

    Hi experts,
    Can anyone help me out in capturing the values from the list box.
    i am able to set the values in the list box.But i am not able to capture the selected value from the list box. Always the list box name is getting as "space"
    I also tried in using the FM "VRM_GET_VALUES" but it is retireving all the values. Is there is any flag for filttering out the selected value.
    Your inputs are appreciated.
    Thanks,
    Vijay.

    Along with the PBO and PAI event, add a POV event in the flow logic of the screen
    DEMO_DROPDOWN_LIST_BOX -is a good demo example.
    PROCESS ON VALUE-REQUEST.
    FIELD structure_name-field_name MODULE create_dropdown_box.
    In the report :
    MODULE create_dropdown_box INPUT.
      SELECT carrid carrname
                    FROM scarr
                    INTO CORRESPONDING FIELDS OF TABLE itab_carrid.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield        = 'CARRID'
                value_org       = 'S'
           TABLES
                value_tab       = itab_carrid
           EXCEPTIONS
                parameter_error = 1
                no_values_found = 2
                OTHERS          = 3.
      IF sy-subrc <> 0.
      ENDIF.
    ENDMODULE.
    In the layout, assign a Function Code , for eg : 'SELECTED' to the listbox and lets say name of the field is SDYN_CONN-CARRID. So in the PAI module,
    MODULE user_command_0100 INPUT.
      CASE ok_code.
        WHEN 'SELECTED'.
          MESSAGE i888(sabapdocu) WITH sdyn_conn-carrid.
      ENDCASE.
    ENDMODULE.
    sdyb_conn-carrid will contain your selected field

  • Getting selected values from selectManyChoice component inside valueChangeListener

    Hwo do I get the selected values from the selectManyChoice component inside the valueChangeListener.
    The API docs for valueChangeEvent.getNewValue() show the return type as java.lang.object. This is good for single value what does it return in case of multiple values.
    My drop down has string values so I am expecting a set of string values.

    JDev - 11.1.2.3
    public void onRegionSelect(ValueChangeEvent event) {
    event.getComponent().processUpdates(FacesContext.getCurrentInstance());
    if (!PhaseId.INVOKE_APPLICATION.equals(event.getPhaseId())) {
    event.setPhaseId(PhaseId.INVOKE_APPLICATION);
    event.queue();
    } else {
    List<Object> values = Arrays.asList(event.getNewValue());
    System.out.println("Value changed ==>> "+values.size());
    DCBindingContainer dc =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iter = dc.findIteratorBinding("RegVO1Iterator");
    ViewObject vo = iter.getViewObject();
    StringBuffer regions = new StringBuffer();
    for(Object index : values){
    String iIndex = (String)index;
    Row row  = vo.getRowAtRangeIndex(Integer.parseInt(iIndex));
    regions.append((String)row.getAttribute("Region")+",");
    String reg = regions.toString();
    if(reg.endsWith(","))
    reg = reg.substring(0,reg.lastIndexOf(","));
    System.out.println(reg);

  • How to get selected value from a listbox

    Hi !
    I use following code to fill in my LISTBOX with values :
    AT SELECTION-SCREEN OUTPUT.
      val-key = 1.
      val-text = '0016'.
      APPEND val TO list_values.
      val-key = 2.
      val-text = '0028'.
      APPEND val TO list_values.
      val-key = 3.
      val-text = '0035'.
      APPEND val TO list_values.
      val-key = 4.
      val-text = '2001'.
      APPEND val TO list_values.
      val-key = 5.
      val-text = '0515'.
      APPEND val TO list_values.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING id     = 'p_list'
                  values = list_values.
    My question is - how to get a selected key/text value ? i dont need it to be done dynamically - i just need it in START OF SELECTION to perform tasks.
    Thx in advance.

    Unfortunetly it does not work
    i Define parameter as follows :
    PARAMETERS:
      p_list AS LISTBOX VISIBLE LENGTH 10.
    Then i add values to it :
    AT SELECTION-SCREEN OUTPUT.
      val-key = 1.
      val-text = '0016'.
      APPEND val TO list_values.
      val-key = 2.
      val-text = '0028'.
      APPEND val TO list_values.
      val-key = 3.
      val-text = '0035'.
      APPEND val TO list_values.
      val-key = 4.
      val-text = '2001'.
      APPEND val TO list_values.
      val-key = 5.
      val-text = '0515'.
      APPEND val TO list_values.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING id     = 'p_list'
                  values = list_values.
    Then when i add a blank section :
    AT SELECTION-SCREEN ON p_list.
    I set a breakpoint in START OF SELECTION block - but the value is empty no matter what do i select.
    Actually when i select value from the list and hit enter key on selection screen the selection in a listbox goes empty :/
    Whats the cause of this ?
    Edited by: Jacek Zebrowski on Feb 26, 2009 12:38 PM

  • Copy selected values from a table control into another table control

    hi there,
    as seen in the subject i need to copy selected values from a table control into another table control in the same screen. as i dont know much about table controls i made 2 table controls with the wizard and started to change the code... right now im totally messed up. nothing works anymore and i don't know where to start over.
    i looked up the forums and google, but there is nothing to help me with this problem (or i suck in searching the internet for solutions)
    i have 2 buttons. one to push the selected data from the top table control into the bottom tc and the other button is to push selected data from the bottom tc into the top tc. does somebody has a sample code to do this?

    you're funny
    i still don't get it... can't believe, there is no tutorial or sample code around how to copy multiple selected rows from a tc.
    here's my code, maybe you can tell me exactly were i have to change it:
    tc1 = upper table control
    tc2 = lower table control
    SCREEN 0100:
    PROCESS BEFORE OUTPUT.
      MODULE status_0100.
      MODULE get_nfo. --> gets data from the dictionary table
      MODULE tc1_change_tc_attr.
      LOOP AT   it_roles_tc1
           INTO wa_roles_tc1
           WITH CONTROL tc1
           CURSOR tc1-current_line.
      ENDLOOP.
      MODULE tc2_change_tc_attr.
      LOOP AT   it_roles_tc2
           INTO wa_roles_tc2l
           WITH CONTROL tc2
           CURSOR tc2-current_line.
      ENDLOOP.
    PROCESS AFTER INPUT.
      LOOP AT it_roles_tc1.
        CHAIN.
          FIELD wa_roles_tc1-agr_name.
          FIELD wa_roles_tc1-text.
        ENDCHAIN.
        FIELD wa_roles_tc1-mark
          MODULE tc1_mark ON REQUEST.
      ENDLOOP.
      LOOP AT it_roles_tc2.
        CHAIN.
          FIELD wa_roles_tc2-agr_name.
          FIELD wa_roles_tc2-text.
        ENDCHAIN.
        FIELD wa_roles_tc2-mark
          MODULE tc2_mark ON REQUEST.
      ENDLOOP.
      MODULE ok_code.
      MODULE user_command_0100.
    INCLUDE PAI:
    MODULE tc1_mark INPUT.
      IF tc1-line_sel_mode = 2
      AND wa_roles_tc1-mark = 'X'.
        LOOP AT it_roles_tc1 INTO g_tc1_wa2
          WHERE mark = 'X'.    -
    > big problem here is, that no entry has an 'X' there
          g_tc1_wa2-mark = ''.
          MODIFY it_roles_tc1
            FROM g_tc1_wa2
            TRANSPORTING mark.
        ENDLOOP.
      ENDIF.
      MODIFY it_roles_tc1
        FROM wa_roles_tc1
        INDEX tc1-current_line
        TRANSPORTING mark.
    ENDMODULE.                    "TC1_MARK INPUT
    MODULE tc2_mark INPUT.
      IF tc2-line_sel_mode = 2
      AND wa_roles_tc2-mark = 'X'.
        LOOP AT it_roles_tc2 INTO g_tc2_wa2
          WHERE mark = 'X'.             -
    > same here, it doesn't gets any data
          g_tc2_wa2-mark = ''.
          MODIFY it_roles_tc2
            FROM g_tc2_wa2
            TRANSPORTING mark.
        ENDLOOP.
      ENDIF.
      MODIFY it_roles_tc2
        FROM wa_roles_tc2
        INDEX tc2-current_line
        TRANSPORTING mark.
    ENDMODULE. 
    thx for anybody who can help with this!

  • Error after selecting value from LOV - You are trying to access a page that is no longer active.

    Created a simple page with a few text inputs and 4 LOV. After selecting a value from the last LOV the following error is displayed:
    Error:
    You are trying to access a page that is no longer active.
    - The referring page may have come from a previous session. Please select Home to proceed.
    OA Framework              12.1.3
    Oracle OA Extension    10.1.3 - build 1313
    Any pointers to the cause ?
    Thanks

    [57]:EVENT:[xx.oracle.apps.ap..webui.EngagementCO]:OAF LOG: Event : Call Process Form Data, in: xx.oracle.apps.ap..webui.EngagementCO: Entering Process Form Data
    [57]:EVENT:[xx.oracle.apps.ap..webui.EngagementCO]:OAF LOG: Event : Call Process Form Data, in: xx.oracle.apps.ap..webui.EngagementCO: Entering Process Form Data
    [57]:EVENT:[fnd.framework.webui.OAFormValueHelper]:OAF LOG: Event : Get Attribute Value, in: oracle.apps.fnd.framework.webui.OAFormValueHelper: View:xxEngagementVO1 ,Attribute:VendorId , Return Value without datatype conversion :996
    [58]:EVENT:[fnd.framework.webui.OAFormValueHelper]:OAF LOG: Event : Get Attribute Value, in: oracle.apps.fnd.framework.webui.OAFormValueHelper: View:xxEngagementVO1 ,Attribute:VendorSiteId , Return Value without datatype conversion :60158
    [58]:EVENT:[fnd.framework.webui.OAFormValueHelper]:OAF LOG: Event : Get Attribute Value, in: oracle.apps.fnd.framework.webui.OAFormValueHelper: View:xxEngagementVO1 ,Attribute:BusinessPrincipalId , Return Value without datatype conversion :48375
    [59]:EVENT:[fnd.framework.webui.OAFormValueHelper]:OAF LOG: Event : Get Attribute Value, in: oracle.apps.fnd.framework.webui.OAFormValueHelper: View:xxEngagementVO1 ,Attribute:AttorneyPersonId , Return Value without datatype conversion :37430
    [59]:EVENT:[fnd.framework.webui.OAMessageLovInputHelper]:OAF LOG: Event : Get Attribute Value, in: oracle.apps.fnd.framework.webui.OAMessageLovInputHelper: View:xxEngagementVO1 ,Attribute:Vendor , Return Value without datatype conversion :CLIFFORD CHANCE
    fnd.framework.webui.OAMessageLovInputHelper][60]:EVENT:[fnd.framework.webui.OAMessageLovInputHelper]:OAF LOG: Event : Get Attribute Value, in: oracle.apps.fnd.framework.webui.OAMessageLovInputHelper: View:xxEngagementVO1 ,Attribute:AttorneyName , Return Value without datatype conversion :Bloggs, Mr. Joe
    [60]:UNEXPECTED:[fnd.framework.webui.OAPageContextImpl]:MACCHECK: . Parameter failing validation is :MatterCode. Parameter "MatterCode" failed Validation. Value got from request object is 2435 
    Incoming URL is : /OA_HTML/OA.jsp?page=/xx/oracle/apps/ap/legal/webui/EngagementPG&_ti=752953423&language_code=US&&OAFMID=94470&OAPB=_OAFMID&oapc=16&oas=xSrFYCAbgOaPGVhqpb0-hA.. .
    Current URL is : /OA_HTML/OA.jsp?page=/xx/oracle/apps/ap/legal/webui/EngagementPG&_ti=752953423&language_code=US&&OAFMID=94470&OAPB=_OAFMID&oapc=16&oas=xSrFYCAbgOaPGVhqpb0-hA.. .
    Referer URL is : https://paydev.company.com/OA_HTML/RF.jsp?function_id=48080&resp_id=53189&resp_appl_id=20003&security_group_id=0&lang_code=US¶ms=CtXL5LFdg5E7c.aFPRw7fTZ5STWrUsz9iXF2ByXh3F4&oas=gAqepzP-un4kBOC8NUxtIQ.. .
    HTTP Request Method is : POST
    [62]:ERROR:[fnd.common.Message.auto_log]:FNDFND_FORM_POST_SECURITY_FAILEDYHOMEFND_GLOBAL_PRMPT_HOME
    [62]:ERROR:[fnd.framework.OAException]:You are trying to access a page that is no longer active.
    - The referring page may have come from a previous session. Please select Home to proceed.
    Click on browser Back button and all LOV values are empty on original screen. Try and select value from LOV and after selection:
    [23]:EVENT:[xx.oracle.apps.ap.legal.webui.EngagementCO]:OAF LOG: Event : Call Process Form Data, in: xx.oracle.apps.ap.legal.webui.EngagementCO: Entering Process Form Data
    [23]:EVENT:[xx.oracle.apps.ap.legal.webui.EngagementCO]:OAF LOG: Event : Call Process Form Data, in: xx.oracle.apps.ap.legal.webui.EngagementCO: Entering Process Form Data
    [23]:UNEXPECTED:[fnd.framework.webui.OAPageContextImpl]:MACCHECK: . Parameter failing validation is :VendorId. Parameter "VendorId" failed Validation. Value got from request object is 996 
    Incoming URL is : /OA_HTML/OA.jsp?page=/xx/oracle/apps/ap/legal/webui/EngagementPG&_ti=752953423&language_code=US&&OAFMID=94470&OAPB=_OAFMID&oapc=17&oas=lC4tbZwHYHffQY6uX7agiA.. .
    Current URL is :  /OA_HTML/OA.jsp?page=/xx/oracle/apps/ap/legal/webui/EngagementPG&_ti=752953423&language_code=US&&OAFMID=94470&OAPB=_OAFMID&oapc=17&oas=lC4tbZwHYHffQY6uX7agiA.. . 
    Referer URL is : https://paydev.company.com/OA_HTML/RF.jsp?function_id=48080&resp_id=53189&resp_appl_id=20003&security_group_id=0&lang_code=US¶ms=CtXL5LFdg5E7c.aFPRw7fTZ5STWrUsz9iXF2ByXh3F4&oas=gAqepzP-un4kBOC8NUxtIQ.. .
    HTTP Request Method is : POST
    [25]:ERROR:[fnd.common.Message.auto_log]:FNDFND_FORM_POST_SECURITY_FAILEDYHOMEFND_GLOBAL_PRMPT_HOME
    [25]:ERROR:[fnd.framework.OAException]:You are trying to access a page that is no longer active.
    - The referring page may have come from a previous session. Please select Home to proceed.

  • How to capture selected value from drop down by index

    Dear friends,
    i want to capture the value of select value from drop down by index, for eg if  select air france, how to capture , could any one please let me know
    Thanks
    Vijaya

    Hi Vijaya,
    You can get the value of selected from drop down as below
    Check out the event handler method attached to Onselect event of the ui element drop down by index , if no event is associated, then create an event and attach to the drop down list
    Now you will be having the CONTEXT_ELEMENT in the WDEVENT parameter
                   data lo_element type ref to if_wd_context_element.
                   lo_element = wdevent->get_context_element( name = 'CONTEXT_ELEMENT').
    Now, you can get the static attribute value of selected  drop down value & let us say your drop down list values are populated from context node 'ND_DRP_DOWN'
                   data ls_data type wd_this->element_nd_drp_down.
                             lo_element->get_static_attributes(
                                       importing
                                       static_attributes = ls_data ).
    Hope this helps you.
    Regards,
    Rama

  • How to set default value to date type attribute.

    Hi,
    How to set default value to date type attribute.
    E.g I want to set u201C01/01/1999u201D to date attributes.
    First i want to set value and then i want to fetch the same & want to check equals.
    please suggest solution.
    Regards,
    Smita

    Hi,
    In wdinit() method u can set the date
    DateFormat df = new SimpleDateFormat("MM/dd/yyyy");
    Date today = Calendar.getInstance().getTime();
    String reportDate = df.format(today);
    wdContext.currentContextElement().setFromDate(reportDate);
    Another way you have set the this formate like that
    1. Create a Simple type under "Dictionaries->SimpleType" called DateFormat
    2. Select the type as "date"
    3. Go to the "Representation" tab and set the format as "dd/MM/yyyy" (or whatever u want, but month should be MM)
    4.Bind the context attribute to the type created now.
    Hope this helps u.
    Best Regards
    Vijay K

  • Select year from date

    help me..urgent..
    how set query to select year from date by using expression where.
    ex: select sum(salary)
    from table
    where year(date)=2007
    group by name;
    just something like that..help me.plezz..

    select *
      from (
             select 1 as rn, to_date('09052007','ddmmyyyy') as dt from dual union all
             select 1 as rn, to_date('09052006','ddmmyyyy') as dt from dual
    where to_char(dt,'yyyy') = '2007'; or
    select *
      from (
             select 1 as rn, to_date('09052007','ddmmyyyy') as dt from dual union all
             select 1 as rn, to_date('09052006','ddmmyyyy') as dt from dual
    where extract(year from dt) = 2007;

  • About SELECT VALUE FROM NLS_INSTANCE_PARAMETERS WHERE PARAMETER =""

    I am developing a web application based on Oacle 10g .But after the DBServe was startedup for about 5~6 hours, the max connection process exceeded. From the DB Administration Tool it shows that there were many INACTIVE Connections which executed
    SELECT VALUE FROM NLS_INSTANCE_PARAMETERS WHERE PARAMETER ='NLS_DATE_FORMAT'
    But it seems that this is called by the JDBC driver, not my application. How to avoid this, or release the inactive connection?
    By the way,who and when call that sql?
    Thanks a lot.

    By the way,who and when call that sql?Also for this you can take an 10046 level 8 sql trace and format the output with sys=yes option of tkprof - http://tonguc.wordpress.com/2006/12/30/introduction-to-oracle-trace-utulity-and-understanding-the-fundamental-performance-equation/
    Since we are talking about a web application you may use a database logon trigger to start sql trace for your application user, or if possible you may set sql_trace database parameter to true at instance level for a while and since you are at 10g you can use new package dbms_monitor and trcsess utility - http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/sqltrace.htm#sthref2001
    Best regards.

  • Displaying ui element when selecting value from dropdown

    hi,
    i have a requirement when user select value from dropdown( some x from dropdown) textedit ui(where user can enter some text) should be displayed and submitted. please give some idea

    Hi Babanmohi     ,
    First create a node in your context and under that create an attribute. Then add a Dropdown by Index and TextEdit UI on to your view. Bind both the UI element with the same attribute.
    Then create an action on onSelect event of the DropDown UI element. Go to its implementation and write the following:
    wdContext.current<Node name>Element.set<attribute name>(wdContext.current<Node name>Element.get<attribute name>)
    For example, if in my context there is a node called testnode and under that if im having an attriburte called name, then do the following coding in the onSelect method of dropdown:
    wdContext.currentTestnodeElement().setName(wdContext.currentTestnodeElement().getName());
    Reply me if you have any issues
    Regards,
    Jithin

  • How to get selected value from OADefaultListBean.

    Hi All,
    How to get selected value from OADefaultListBean ?
    Thanks,

    Hi,
    To identify the user's selection(s) when the page is submitted, you would add the following logic to your processFormRequest() method:
    OADefaultListBean list =
    (OADefaultListBean)webBean.findChildRecursive("positionsList");
    String name = list.getName();
    String[] selectedValues = pageContext.getParameterValues(name);
    To retrieve all the values in the list box, call list.getOptionsData().
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for