Dependent Selectonechoice boxes error

Hi All,
I am using jdeveloper 11g.
I have two dependent dropdown boxes (Category and services).
Everytime i change the category, the services dropdown needs to be refreshed.
I am not using any view objects.
The dropdowns are working fine (that is when i change the category, services do get refreshed), but lets say i select a category "A"
and then select a service "serviceA" then go back to category and change that to "B", it refreshes the services dropdown
but adds an empty row above "select service" option.
and logs show the following error
<SimpleSelectOneRenderer><_getSelectedIndex> Could not find selected item matching value "2,Satisfaction Survey"
in RichSelectOneChoice[UIXEditableFacesBeanImpl, id=soc4]Following is the code for the dropdown menus
<af:selectOneChoice label="Report Category"
            binding="#{backing_RequestForm.soc3}"
             id="soc3" valueChangeListener="#{backing_RequestForm.loadServiceList}"
autoSubmit="true" required="true" immediate="true">
            <f:selectItems value="#{backing_RequestForm.reportCategoryList}"
                            id="si26"/>
          </af:selectOneChoice>
            <af:selectOneChoice label="Service"
                              binding="#{backing_RequestForm.soc4}"
                              id="soc4" partialTriggers="soc3" autoSubmit="true"
required="true" immediate="true">
            <f:selectItems value="#{backing_RequestForm.serviceListFinal}"
                            id="si27"/>
          </af:selectOneChoice>i tried the above code removing immediate, requried attributes, yet in the logs i get the same error.
Any idea on what i could be missing ??
Thanks
ash

Hi,
What difficulty are you facing exactly.
Is your depended dropdown fetching values correctly??
My problem was that when i select a value in dropdown A and a value is dropdown B, then go back and change the value of A, the values in B got refreshed but added an extra blank entry in the dropdown and also in the logs shows the following error
SimpleSelectOneRenderer><_getSelectedIndex> Could not find selected item matching value "2,Satisfaction Survey" in RichSelectOneChoice[UIXEditableFacesBeanImp
Is this the problem you are facing??
If so, in valuechangelisterner method, i added the code for the resetting the selectonechoicebox.
    if(event.getNewValue().equals("") || event.getNewValue() == "" || event.getNewValue() == null || event.getNewValue().equals(null) ){
   // reset the drop down to avoid <SimpleSelectOneRenderer><_getSelectedIndex> Could not find selected  error  
// soc3 and soc4 are the ids of selectonechoice component
      soc3.resetValue();
      soc4.resetValue();
      serviceListFinal = new ArrayList<SelectItem>();
     this.serviceListFinal.add(new SelectItem("","Select service"));
else{
soc4.resetValue();
  String catDesc = event.getNewValue().toString();
  // code for populating the dependent dropdown
   }Hope this helps
ash

Similar Messages

  • ADF Faces Dependent list boxes in an editable table

    Hi,
    I'm working with JDeveloper 10.1.3.1.0.
    I saw the topic "How to build dependent list boxes with ADF II" on F. Nimphius' Blogbuster.
    There it is shown how to handle dependent list boxes in an ADF Faces form. I tried this for an editable table but it doesn't work correctly: If there is more than one row in the resultset of the table, both dependent list boxes have the same content in all the rows though the content in the database is different.
    Can anyone help me?
    Thanks.

    Ok - I will try.
    I built the listboxes like it is described in "ADF Faces: How to built dependent lists boxes with ADF and ADF Faces Part II", Frank Nimphius' Blogbuster July, 2006.
    This is the full code of my ManagedBean:
    package asdb.view.backing;
    import javax.faces.context.FacesContext;
    import javax.faces.el.ValueBinding;
    import javax.faces.event.ValueChangeEvent;
    import javax.faces.model.SelectItem;
    import oracle.adf.model.OperationBinding;
    import oracle.adf.model.binding.DCIteratorBinding;
    import oracle.adf.view.faces.component.core.input.CoreInputText;
    import oracle.binding.BindingContainer;
    import oracle.jbo.Row;
    import oracle.jbo.ViewObject;
    import oracle.jbo.client.Configuration;
    import oracle.jbo.uicli.binding.JUCtrlValueBindingRef;
    public class AktMitFktEdit {
    private BindingContainer bindings;
    public AktMitFktEdit() {
    public void kategorieWechsel(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    BindingContainer bc = this.getBindings();
    DCIteratorBinding kategorienIter = (DCIteratorBinding)
    bc.get("OrganKategIterator1");
    Row rw =
    kategorienIter.getRowAtRangeIndex(((Integer)valueChangeEvent.getNewValue()).intValue());
    String kategorie = (String)rw.getAttribute("Kategorie");
    OperationBinding opBindingOrganeLovIter = (OperationBinding)bc.get("ExecuteWithParams");
    opBindingOrganeLovIter.getParamsMap().put("kategorieParam",kategorie);
    opBindingOrganeLovIter.execute();
    public void setBindings(BindingContainer bindings)
    this.bindings = bindings;
    public BindingContainer getBindings() {
    return bindings;
    It works fine, when the user only want to update existing rows. But if he had inserted a new row and afterwards want to update existing rows, the listboxes don't show the correct contents. No error messages are displayed.

  • Need help with dependent lists boxes with ADF.

    Hello,
    I am doing a project that use tree dependent list boxes.
    Ex. State---->
    College---->
    List of courses of the college chosen above----->
    The way this should work is when I select the state automatically I want it to change to the correspondent list of colleges of that state and after i choose the colleges I want to be able to get all the courses that are given in that college.
    To implement the first two list boxes I create tree views on JDeveloper and and using SelectOneChoice for both State and Colleges. In the binding editor I bind the first View with the second and then the second view with the third and at this point if I execute the first SelectOneChoice would give me all the state and the second SelectOneChoice would give me the list of all the colleges that exist.
    Now on the third view that I create a binding variable and i put a Where state=:TheBindingVariable on the query.
    Also I set the first SelectOneChoice the outoSubmit property to true, id to StateId and PartialTrigger property to CollegeId.
    On pageDef.xml in the bindings I create action form where I select the third view from Date Collection and select Action as ExecuteWithParams. And I set the value under the parameters section to #{bindings.state.inputValue}.
    Under executables still in pageDef.xml I create a invokeAction and I set binds = ExecuteWithParams.
    On first SelectOneChoice on the ChangeValueListener i create a new ManageBeans which generate me a java class and I create a new method as well to use it to change the binding variable on the second SelectOneChoice.
    Here is the method:
    public void Change_StateId(ValueChangeEvent valueChangeEvent) {
    String StateId;
    valueChangeEvent.setPhaseId(PhaseId.INVOKE_APPLICATION);
    FacesContext adi = FacesContext.getCurrentInstance();
    ValueBinding vb = adi.getApplication().createValueBinding("#{bindings}");
    DCBindingContainer bc = (DCBindingContainer)vb.getValue(adi);
    if(valueChangeEvent.getNewValue().toString().equals("0")){
    StateId = "MA";
    OperationBinding opBindingCollegeLovIter = (OperationBinding) bc.get("ExecuteWithParams");
    opBindingCollegeLovIter.getParamsMap().put("TheState",StateId);
    opBindingCollegeLovIter.execute();
    }else{
    DCIteratorBinding statesLovIter = (DCIteratorBinding) bc.get("CollegeProvaView1Iterator");
    Row rw = statesLovIter.getRowAtRangeIndex(((Integer)valueChangeEvent.getNewValue()).intValue());
    StateId = (String) rw.getAttribute("State");
    OperationBinding opBindingCollegeLovIter = (OperationBinding) bc.get("ExecuteWithParams");
    opBindingCollegeLovIter.getParamsMap().put("TheState",StateId);
    opBindingCollegeLovIter.execute();
    I don't know what I have done wrong because I am new in this field and a little support would be really helpful.
    I am using JDeveloper 10.1.3.1.0 and Oracle SOA Suite 10.1.3.1.0.
    I would appreciate any help.
    Thanks a lot.

    user8116089 wrote:
    For some reason the first selectonechoice doesn't give me all the states that are in the database it gives me just the first 10.check the value of RangeSize for itarator in pageDef. in this case to show all items it must be set to -1
    Also there is a way to assign the first value of the first selectonechoice to null at the start.this is a problematic requirement since all items are bound to iterator and basically this should serve for navigation purpose so the first item is set as selected, but maybe some workaround exists...
    regards,
    Branislav

  • Dependent selectOneChoice

    Hi,
    I have a table called Parish with attributes ParishId, CountryId, CityId and AreaId.
    i have created a custom method in my application module for creating records with parameters the table parameters.
    I build the dependent selectOneChoices using normal selectOneChoice and partial triggers. When the Country is changed, then in a bean i set the where clause of the view bind variable and execute the query to bring up the result and so on.
    Everything works fine (by the way i am in the create process). When i test this situation, something goes wrong. I open my form and without entering any data i click submit which calls my method in the Application Module and tries to set the values and commit. Errors appear for all fields as they are mandatory. This is fine. I click cancel (which redirects my to my main page) and the click again create to direct me to my create form.
    I fill in all the fields and when i click save, i get an error that the city is is missing (null) which is not null. I have selected a value.
    Did anyone face any similar problems?
    Thanks
    Antonis

    Please note that when creating the Area (which consists of CountryId, CityId and Area Name) this does not occur.
    Thanks

  • Dependent combo boxes using webservice

    Hi All,
    I'm trying to create a depended combo boxes using af:selectOneChoice, using webservice datacontrol. When i try to change the value of the first combo box which has hard coded values (eg. Continent), The depended combo box (eg.Country) is empty. (which is returned via webservice) When i again change the value of the first combo box, I get the corresponding values(Countries) generated. The very first time when a value is selected is not binded to the model. Why is this happening and how to overcome this issue. I tried using the value change listener and assigned the current value to binding but there was no change in the behaviour.

    Thanks for your response Frank. The Sample worked fine. But when i try to implement the same i ran into issues.
    First, I created a combo box for continents and a managed bean.
    <af:selectOneChoice label="Region" id="soc1" autoSubmit="true"
                                  valueChangeListener="#{locateBean.setRegion}">
                <af:selectItem label="Asia" value="Asia" id="si3"/>
                <af:selectItem label="Europe" value="Europe" id="si2"/>
                <af:selectItem label="NA" value="NA" id="si1"/>
              </af:selectOneChoice>Then I created a combo box for countries using the webservice data control.
              <af:selectOneChoice value="#{bindings.Country.inputValue}"
                                  label="Country"
                                  required="#{bindings.Country.hints.mandatory}"
                                  shortDesc="#{bindings.Country.hints.tooltip}"
                                  id="soc2" partialTriggers="soc1">
                <f:selectItems value="#{bindings.Country.items}" id="si4"/>
              </af:selectOneChoice>In the managed bean as
        public void setRegion(ValueChangeEvent event) {
            this.region = (String)event.getNewValue();
        }1. When i run and select an continent, the values are not getting populated in the country combo box. If i refresh the page or select another value for the continent, then its is getting populated.
    2. When i tried to execute the operation manually at pagedef on value change event,
            OperationBinding operBinding = getBindings().getOperationBinding("GetCountryList");
            operBinding.execute();I'm getting an warning as <FacesCtrlListBinding> <getInputValue> ADFv: Could not find selected item matching value Afghanistan of type: java.lang.String in the list-of-values.Why the value binded to the managed bean or model is not getting updated for the first time. Is this the expected behavior.

  • Validation problem with dependent selectOneChoice

    Hi,
    I have two af:selectOneChoice box. Both have valueChangeListener. 1st box will load the value in 2nd box and the 2nd box listener has some logic for rendering other component. Required and immediate attribute are true for both the box.
    Now if I change the 1st box then automatically 2nd box "required" validation gets executed, ideally it should happen when I will click the submit button.
    Plz help.

    I am going to Lov from a multi line table Inv Lines to get the current row. and then set where clause based on that.
    I also have another requirement to set where clause based on the columns that are not set as criteria.
    It is like, it is not mandatory to enter two base page columns, but if entered I need to consider in filter my Lov rows.

  • Dependent List Boxes

    Can't figure what is wrong with this code. Any ideas? My page
    is blank unless I remove this code. If I remove the below code the
    page shows the form and the list boxes but the last dependent list
    box is not functioning properly...
    <!-- Dynamic Dependent List box Code for *** JavaScript
    *** Server Model //-->
    <script language="JavaScript">
    <!--
    var arrDynaList2 = new Array();
    var arrDL2 = new Array();
    arrDL2[1] = "lmConsumer";
    // Name of parent list box
    arrDL2[2] = "frmAddendum";
    // Name of form containing parent list box
    arrDL2[3] = "lmICPDate";
    // Name of child list box
    arrDL2[4] = "frmAddendum";
    // Name of form containing child list box
    arrDL2[5] = arrDynaList2;
    <%
    var txtDynaListRelation2, txtDynaListLabel2,
    txtDynaListValue2, oDynaListRS2;
    txtDynaListRelation2 = "SID"
    // Name of recordset field relating to parent
    txtDynaListLabel2 = "ICPDate"
    // Name of recordset field for child Item Label
    txtDynaListValue2 = "ICPDate"
    // Name of recordset field for child Value
    oDynaListRS2 =
    rsICPDate
    // Name of child list box recordset
    var varDynaList2 = -1;
    var varMaxWidth = "1";
    var varCheckGroup =
    oDynaListRS2.Fields.Item(txtDynaListRelation2).Value;
    var varCheckLength = 0;
    var varMaxLength = 0;
    while (!oDynaListRS2.EOF){
    if (varCheckGroup !=
    oDynaListRS2.Fields.Item(txtDynaListRelation2).Value) {
    varMaxLength = Math.max(varCheckLength, varMaxLength)
    varCheckLength = 0;
    %>
    arrDynaList2[<%=(varDynaList2+1)%>] =
    "<%=(oDynaListRS2.Fields.Item(txtDynaListRelation2).Value)%>";
    arrDynaList2[<%=(varDynaList2+2)%>] =
    "<%=(oDynaListRS2.Fields.Item(txtDynaListLabel2).Value)%>";
    arrDynaList2[<%=(varDynaList2+3)%>] =
    "<%=(oDynaListRS2.Fields.Item(txtDynaListValue2).Value)%>";
    <%
    if (oDynaListRS2.Fields.Item(txtDynaListLabel2).Value.length
    > varMaxWidth.length) {
    varMaxWidth =
    oDynaListRS2.Fields.Item(txtDynaListLabel2).Value;
    varCheckLength = varCheckLength + 1;
    varDynaList2 = varDynaList2 + 3;
    oDynaListRS2.MoveNext();
    varMaxLength = Math.max(varCheckLength, varMaxLength)
    %>
    //-->
    </script>

    Try something like this:
    <span spry:region="dsStates" id="stateSelector">
    <select spry:repeatchildren="dsStates" name="stateSelect"
    onchange="document.forms[0].citySelect.disabled = true;
    dsStates.setCurrentRowNumber(this.selectedIndex);">
    <option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}"
    value="{name}" selected="selected">{name}</option>
    <option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}"
    value="{name}">{name}</option>
    </select>
    </span>
    City:
    <span spry:region="dsCities" id="citySelector">
    <select spry:repeatchildren="dsCities" id="citySelect"
    name="citySelect" onchange="document.forms[0].schoolSelect.disabled
    = true; dsCities.setCurrentRowNumber(this.selectedIndex);">
    <option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}"
    value="{name}" selected="selected">{name}</option>
    <option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}"
    value="{name}">{name}</option>
    </select>
    </span>
    <span spry:region="dsSchools" id="schoolSelector">
    <select spry:repeatchildren="dsSchools" id="schoolSelect"
    name="schoolSelect" onchange="window.location=this.value;">
    <option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}"
    value="{url}" selected="selected">{name}</option>
    <option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}"
    value="{url}">{name}</option>
    </select>
    --== Kin ==--

  • How-to create dependent list boxes in a table -Frank Sample

    hi everyone i would like to ask a suggestion about Frank's example on How-to create dependent list boxes in a table -Frank Sample ...
    i want to extend this example for 3 dependent lists... including locations, departaments and employes....
    this the ListboxBean java that Frank is using in his example.... and this is only for locations and departaments tables and it works ok... i want to add the third list for employers wich is dependent only from departaments list.... as i am not good in java i would like to ask u a suggestion on how to develop the third list in this java class ...
    public class ListboxBean {
    private SelectItem[] locationsSelectItems = null;
    private SelectItem[] departmentsSelectItems = null;
    public SelectItem[] getLocationsSelectItems() {
    if (locationsSelectItems == null){
    FacesContext fctx = FacesContext.getCurrentInstance();
    ValueBinding vbinding = fctx.getApplication().createValueBinding("#{bindings.LocationsView1Iterator}");
    DCIteratorBinding locationsIterBinding = (DCIteratorBinding) vbinding.getValue(fctx);
    locationsIterBinding.executeQuery();
    Row[] locRowsArray = locationsIterBinding.getAllRowsInRange();
    // define select items
    locationsSelectItems = new SelectItem[locRowsArray.length];
    for (int indx = 0; indx < locRowsArray.length; indx++) {
    SelectItem addItem = new SelectItem();
    addItem.setLabel((String)locRowsArray[indx].getAttribute("City"));
    addItem.setValue(locRowsArray[indx].getAttribute("LocationId"));
    locationsSelectItems[indx] = addItem;
    return locationsSelectItems;
    return locationsSelectItems;
    public SelectItem[] getDepartmentsSelectItems() {
    FacesContext fctx = FacesContext.getCurrentInstance();
    ValueBinding vbinding = fctx.getApplication().createValueBinding("#{row}");
    JUCtrlValueBindingRef rwJUCtrlValueBinding = (JUCtrlValueBindingRef) vbinding.getValue(fctx);
    Row rw = rwJUCtrlValueBinding.getRow();
    if (rw.getAttribute(6) != null){
    OperationBinding oBinding = (OperationBinding) fctx.getApplication().createValueBinding("#{bindings.ExecuteWithParams}").getValue(fctx);
    oBinding.getParamsMap().put("locId",rw.getAttribute(6).toString());
    oBinding.execute();
    ValueBinding vbinding2 = fctx.getApplication().createValueBinding("#{bindings.DepartmentsView2Iterator}");
    DCIteratorBinding departmentsIterBinding = (DCIteratorBinding) vbinding2.getValue(fctx);
    departmentsIterBinding.executeQuery();
    Row[] depRowsArray = departmentsIterBinding.getAllRowsInRange();
    // define select items
    departmentsSelectItems = new SelectItem[depRowsArray.length];
    for (int indx = 0; indx < depRowsArray.length; indx++) {
    SelectItem addItem = new SelectItem();
    addItem.setLabel((String)depRowsArray[indx].getAttribute("DepartmentName"));
    addItem.setValue(depRowsArray[indx].getAttribute("DepartmentId"));
    departmentsSelectItems[indx] = addItem;
    return departmentsSelectItems;
    public void setLocationsSelectItems(SelectItem[] locationsSelectItems) {
    this.locationsSelectItems = locationsSelectItems;
    public void setDepartmentsSelectItems(SelectItem[] departmentsSelectItems) {
    this.departmentsSelectItems = departmentsSelectItems;
    Thanks in advance :0

    Hi,
    I think that all you need to do is to look at how I implemented the dependent detail for querying the Employees select items
    Then you make sure the DepartmentsVO and the EmployeesVO have bind variable to query them according to the pre-selected value in their respective master list
    Frank

  • Customize Out of the Box Error message

    How can i customize the out of box error message for exceeded max rows configured?
    thanks

    How can i customize the out of box error message for exceeded max rows configured?
    thanks

  • Dependent selectonechoice validation problem

    I have in my page two dependent selectonechoice's, the first of countries an second of states. States has a not null validation. First time two selectonechoice's starts with a blank item first, nothing selected, the problem is when I select a country the selectonechoice of states execute the validation before filters the states and I never can't select states. Sorry for my english....

    Or use empty values in lov, then validation won't trigger on client side.

  • Selecting Date fields from selectOneChoice box

    Hi all
    i am having the below problem.
    i have a SelctOneChioce Box which has a list of TimeStampObject from a View object.
    i am getting a below error when i selct any values from the drop down list and submit the page.
    *Cannot convert 2011-08-03 00:00:00.0 of type class oracle.jbo.domain.Timestamp to class [Ljava.lang.Object;*
    Below is code which displays the Box
    *<af:selectOneChoice value="#{bindings.IndberetningskravView1.inputValue}"*
    *label="#{bindings.IndberetningskravView1.label}"*
    *id="sml1">*
    *<f:selectItems value="#{bindings.IndberetningskravView1.items}" id="si1"/>*
    *</af:selectOneChoice>*
    Can anyone let me know what might be a problem
    Thanks
    Ranjith

    You can try following code.
    List items= new ArrayList<SelectItem>(); // Write getter and setter
    while (VO.hasNext()) {       
      items.add(new SelectItem(VO.next().getAttribute("TimeStampField").toString()));           
    <af:selectOneChoice value="#{bindings.IndberetningskravView1.inputValue}" label="#{bindings.IndberetningskravView1.label}" id="sml1">
    <f:selectItems value="#{pageFlowScope.YourManageBean.items}" id="si1"/>
    </af:selectOneChoice>

  • Closing pop-up box error

    Hello,
    Im getting  a frustrating problem'  Access via 'NULL' object reference not possible ' when I try to close the popup box , I am assuming its something to do with either setting up my nodes or attributes, unfortunately i tried everything I could but nothing worked.
    this is the part of the code action to generate a popup box, subscribe and assign the OK button an action
    method ONACTIONADD_NAME .
      Data: context_node         type ref to if_wd_context_node.
      data lv_action_view          TYPE REF TO if_wd_view_controller.
      DATA lv_title                    TYPE string.
      DATA lo_nd_add_name    TYPE REF TO if_wd_context_node.
      DATA lo_el_add_name     TYPE REF TO if_wd_context_element.
      DATA ls_add_name         TYPE wd_this->element_add_name.
      data lo_window_manager  type ref to if_wd_window_manager.
      data lo_api_component    type ref to if_wd_component.
      data lo_window                type ref to if_wd_window.
    generate a popup box
       lo_api_component  = wd_comp_controller->wd_get_api( ).
       lo_window_manager = lo_api_component->get_window_manager( ).
       lo_window         = lo_window_manager->create_window(
                       window_name            = 'W_ADD_NAME'
                       title                  = 'Add a Tester'
                       close_in_any_case      = abap_false
                       message_display_mode   = if_wd_window=>co_msg_display_mode_selected
                       close_button           = abap_true
                       button_kind            = if_wd_window=>co_buttons_okcancel
                       message_type           = if_wd_window=>co_msg_type_none
                       default_button         = if_wd_window=>co_button_ok
    Subscribe the action handler methods to the popup ok and cancel buttons
      lv_action_view = wd_this->wd_get_api( ).
          lo_window->subscribe_to_button_event(
                 button            = if_wd_window=>co_button_ok
                 action_name       = 'ON_OK_ADD_NAME'
                 action_view       = lv_action_view
    lo_window->open( ).
    endmethod.
    and this is the action where I have the issue of closing the popup box
    DATA lo_nd_ui_manipulation TYPE REF TO if_wd_context_node.
      DATA lo_nd_add_name        TYPE REF TO if_wd_context_node.
      DATA lo_el_add_name        TYPE REF TO if_wd_context_element.
      DATA lo_nd_sname           TYPE REF TO if_wd_context_node.
      DATA ls_add_name           TYPE wd_this->element_add_name.
      DATA lo_nd_sname_copy      TYPE REF TO if_wd_context_node.
      DATA lt_sname_copy         TYPE wd_this->elements_sname_copy.
      DATA lv_msg_text           TYPE string.
      DATA lv_param1             TYPE symsgv.
      DATA lv_param2             TYPE symsgv.
      DATA lv_param3             TYPE symsgv.
      DATA lv_elements_count     TYPE i.
      data lo_window             type ref to if_wd_window.
    get message manager
      data lo_api_controller     type ref to if_wd_controller.
      data lo_message_manager    type ref to if_wd_message_manager.
    Read the values user entered in add name popup
      lo_nd_add_name = wd_context->get_child_node( name = wd_this->wdctx_add_name ).
      lo_el_add_name = lo_nd_add_name->get_element(  ).
      lo_el_add_name->get_static_attributes(
        IMPORTING
          static_attributes = ls_add_name ).
      IF ls_add_name IS INITIAL OR ls_add_name-first_name IS INITIAL.
    display messages fill in the required field in the pop-up windows
       lo_api_controller ?= wd_This->Wd_Get_Api( ).
       CALL METHOD lo_api_controller->GET_MESSAGE_MANAGER
         RECEIVING
        MESSAGE_MANAGER = lo_message_manager.
       CALL METHOD lo_message_manager->REPORT_T100_MESSAGE
         EXPORTING
         MSGID         = '00'
         MSGNO         = 055
         MSGTY         = 'E' .
      ELSE.
      Check if the name  is already present
        lo_nd_sname_copy = wd_context->get_child_node( name = wd_this->wdctx_sname_copy ).
        CHECK NOT lo_nd_sname_copy IS INITIAL.
        CALL METHOD lo_nd_sname_copy->get_static_attributes_table
          IMPORTING
            table = lt_sname_copy.
        READ TABLE lt_sname_copy WITH KEY first_name = ls_add_name-first_name TRANSPORTING NO FIELDS.
        IF sy-subrc EQ 0.
        If a same name  exist, raise error message
          lv_msg_text = 'name exist, please enter a different name'.
          lo_api_controller ?= wd_This->Wd_Get_Api( ).
          CALL METHOD lo_api_controller->GET_MESSAGE_MANAGER
           RECEIVING
             MESSAGE_MANAGER = lo_message_manager.
         CALL METHOD lo_message_manager->REPORT_ERROR_MESSAGE
           EXPORTING
             MESSAGE_TEXT             = lv_msg_text.
        ELSE.
    if the name doesnt exist
       lo_nd_sname_copy = wd_context->get_child_node( name = wd_this->wdctx_sname_copy ).
        CHECK NOT lo_nd_sname_copy IS INITIAL.
        CALL METHOD lo_nd_sname_copy->get_static_attributes_table
          IMPORTING
            table = lt_sname_copy.
        READ TABLE lt_sname_copy WITH KEY first_name = ls_add_name-first_name TRANSPORTING NO FIELDS.
      IF the name doesnt exist , add name
        lo_nd_sname = wd_context->get_child_node( name = wd_this->wdctx_sname ).
          CHECK NOT lo_nd_sname IS INITIAL.
          lo_nd_sname->bind_structure( new_item = ls_add_name set_initial_elements = abap_false ).
          CLEAR lt_sname_copy.
          CALL METHOD lo_nd_sname->get_static_attributes_table
            IMPORTING
              table = lt_sname_copy.
    add the name to the local context
          lo_nd_sname_copy->bind_table( lt_sname_copy ).
    add the name to the shared data name context
          lo_nd_sname->bind_table( lt_sname_copy ).
    set the table's visible row property in order to show the added record
          lv_elements_count = lo_nd_sname_copy->get_element_count( ).
          lo_nd_ui_manipulation = wd_context->get_child_node( name = wd_this->wdctx_ui_manipulation ).
          lo_nd_ui_manipulation->set_attribute( name =  `VISIBLEROW` value = lv_elements_count ).
          lv_param1 = ls_add_name-first_name.
          lv_param2 = ls_add_name-last_name.
          lv_param3 = ls_add_name-c_num.
    display a successfull message
    lo_api_controller ?= wd_This->Wd_Get_Api( ).
    CALL METHOD lo_api_controller->GET_MESSAGE_MANAGER
      RECEIVING
        MESSAGE_MANAGER = lo_message_manager
    report message
    CALL METHOD lo_message_manager->REPORT_SUCCESS
      EXPORTING
        MESSAGE_TEXT             = 'succesfully added'.
    Enable/disable delete button based on lead selection
          CALL METHOD wd_comp_controller->manage_delete_button .
    Save the last action in the context, this data will be shown in the idr
          CLEAR lv_msg_text.
          lv_msg_text = wd_assist->if_wd_component_assistance~get_text( key = '014' ).
          CONCATENATE lv_msg_text ls_add_name-first_name INTO lv_msg_text SEPARATED BY space.
          lo_nd_ui_manipulation = wd_context->get_child_node( name = wd_this->wdctx_ui_manipulation ).
          lo_nd_ui_manipulation->set_attribute( name =  `IDR_LAST_ACTION` value = lv_msg_text ).
    lo_window->close( ).
    every time I add the lo_window->close( ). I get the Null error.
    Thanks in advance

    Hi Abdul,
    I guess that you want the user to be able to modify the data in the table & then have the changes made saved to database. Right? SAP recommends using a BAPI for doing the same. (Using a [Service Call|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9cb5d345-0801-0010-6a8e-fc57c23fd600] you can call a BAPI from within your component & get the desired functionality.) If you however intend to just try out a sample example in your IDES then you can directly try using the normal ABAP MODIFY statement on the database table. Try check the sample code snippet below.
    Regards,
    Uday
    data:
          node_sflight           type ref to if_wd_context_node,
          elem_sflight           type ref to if_wd_context_element,
          lt_elements            type WDR_CONTEXT_ELEMENT_SET,
          stru_sflight           type if_main=>element_sflight_node,
          it_flights             type if_main=>elements_sflight_node.
    "   navigate from <CONTEXT> to <SFLIGHT_NODE> via lead selection
        node_sflight_node = wd_context->get_child_node( name = if_main=>wdctx_sflight_node ).
    "   get element via lead selection
    "    elem_sflight_node = node_sflight_node->get_element(  ).
         lt_elements = node_sflight->get_elements( ).
    "   get all declared attributes
        loop at lt_elements into elem_sflight.
        elem_sflight->get_static_attributes(
          importing
            static_attributes = stru_sflight ).
        append stru_sflight to it_flights.
        endloop.
        modify ZSFLIGHT99 from table it_flights.
        if sy-subrc eq 0.
        endif.

  • Creating Dependent Radio Boxes in Acrobat 9 Std

    When creating a form in Acrobat 9 Standard, how can you make radio boxes dependent on each other?
    For instance, one item in my form asks a question and the user can choose a "Yes" or "No" radio box.  I want to prevent the user from being able to check both boxes.
    In other instances, I want to prevent users from checking more than one box in a five-radio box sequence...I am hoping the solution is the same regardless of the number of radio boxes.

    I see how to change the export value now.  Within the field Properties, on the Options tab, the default Export Value is "On" and I can modify that to another value (not just "off").  I have changed the value to a number for example.

  • Organizations - out of the box error

    Dear All,
    I received the following error: "System error was encountered. Contact Oracle Identity Manager system administrator" from Administrative console (when click on Organizations->create or Organizations->manage
    This is Out of the box oim 9.1.0.1 installation
    application server: Oracle application server 10.1.3.1 patched to 10.1.5.0
    Database: 11g R2
    Is this a known issue?
    I will appreciate any feedback

    Kevin,
    Thank you for your feedback.
    I receive official confirmation from Oracle that version I use is supported.
    Application server is :oc4j 10.3.1.5
    I noticed the following error in the logs:
    10/06/21 12:58:14.812 ascontrol: null
    javax.servlet.jsp.el.ELException: Unable to find a value for "sameViewURL" in object of class "oracle.sysman.ias.studio.cluster.TopologyHelper"
    using operator "."
    at org.apache.commons.el.Logger.logError(Logger.java:481)
    at org.apache.commons.el.Logger.logError(Logger.java:498)
    at org.apache.commons.el.Logger.logError(Logger.java:611)
    at org.apache.commons.el.ArraySuffix.evaluate(ArraySuffix.java:340)
    at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)
    at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
    at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:190)
    at oracle.jsp.el.OracleExpressionEvaluator.evaluate(OracleExpressionEvaluator.java:69)
    at oracle.jsp.el.OracleExpression.evaluate(OracleExpression.java:54)
    at oracle.cabo.ui.expl.ELBoundValue._evaluate(Unknown Source)
    at oracle.cabo.ui.expl.ELBoundValue.getValue(Unknown Source)
    at oracle.cabo.ui.BaseUINode.getAttributeValueImpl(Unknown Source)
    at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.TableRenderingContext.getTableAttribute(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.TableRenderingContext.getDestination(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.TableRenderingContext.<init>(Unknown Source)
    at oracle.cabo.ui.laf.base.desktop.table.HGridRenderingContext.<init>(Unknown Source)
    at oracle.cabo.ui.laf.base.desktop.HGridRenderer.createRenderingContext(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.TableRenderer.getTableRenderingContext(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.TableRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.laf.base.desktop.TableRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.laf.base.desktop.HGridRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.laf.oracle.desktop.HeaderRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.laf.oracle.desktop.HeaderRenderer.renderContent(Unknown Source)

  • Search Box Error: LockFailedException Illegal hex characters

    When I enter any data into the JDeveloper Search Box (top right hand side of the IDE) the IDE throws up an error and wants to exit telling me that the system is unstable.
    This is a new install of Oracle JDeveloper 11g Release 1 11.1.1.2.0, everything worked fine in the previous version of JDeveloper I was using.
    I've tried restarting JDev and rebooting my PC, but the problem persists. It seems to be a problem with projects converted from the previous JDev version as well as for new projects.
    The Details of the error message are:
    19/11/2009 2:54:27 PM oracle.ideimpl.searchbar.index.IndexProvider searchProject
    SEVERE: Failed to search project AdminConsole.jpr
    oracle.ide.index.LockFailedException: java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: ".j"
         at oracle.ideimpl.index.IndexRoot.lock(IndexRoot.java:319)
         at oracle.ideimpl.index.IndexImpl.lock(IndexImpl.java:161)
         at oracle.ideimpl.searchbar.index.IndexProvider.searchProject(IndexProvider.java:272)
         at oracle.ideimpl.searchbar.index.IndexProvider.search(IndexProvider.java:178)
         at oracle.ideimpl.searchbar.BaseController$SearchTask.run(BaseController.java:213)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: ".j"
         at java.net.URLDecoder.decode(URLDecoder.java:173)
         at java.net.URLDecoder.decode(URLDecoder.java:83)
         at oracle.ide.util.PatternFilter.matchesImpl(PatternFilter.java:285)
         at oracle.ide.util.PatternFilter.matches(PatternFilter.java:138)
         at oracle.ide.util.PatternFiltersOptimizer$VanillaEvaluator.matches(PatternFiltersOptimizer.java:118)
         at oracle.ide.util.PatternFiltersOptimizer.getMatchingFilter(PatternFiltersOptimizer.java:184)
         at oracle.ide.util.PatternFilters.findMatchingFilter(PatternFilters.java:145)
         at oracle.ide.util.PatternFilters.isIncluded(PatternFilters.java:164)
         at oracle.ide.util.IntersectedFilters.isIncluded(IntersectedFilters.java:145)
         at oracle.ideimpl.index.file.AbstractFileTable.filePassesFilters(AbstractFileTable.java:706)
         at oracle.ideimpl.index.file.DirFileTable.updateDir(DirFileTable.java:368)
         at oracle.ideimpl.index.file.DirFileTable.processQueue(DirFileTable.java:288)
         at oracle.ideimpl.index.file.DirFileTable.fullUpdate(DirFileTable.java:201)
         at oracle.ideimpl.index.file.DirFileTable.updateFileTable(DirFileTable.java:136)
         at oracle.ideimpl.index.file.AbstractFileTable.update(AbstractFileTable.java:379)
         at oracle.ideimpl.index.file.AbstractFileTable$FileTableUpdater.call(AbstractFileTable.java:914)
         at oracle.ideimpl.index.file.AbstractFileTable$FileTableUpdater.call(AbstractFileTable.java:903)
         ... 5 more
    oracle.ide.index.LockFailedException: java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: ".j"
    o.ii.index.IndexRoot.lock(IndexRoot.java:319)
    o.ii.index.IndexImpl.lock(IndexImpl.java:161)
    o.ii.searchbar.index.IndexProvider.searchProject(IndexProvider.java:272)
    o.ii.searchbar.index.IndexProvider.search(IndexProvider.java:178)
    o.ii.searchbar.BaseController$SearchTask.run(BaseController.java:213)
    j.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    j.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    j.util.concurrent.FutureTask.run(FutureTask.java:138)
    j.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    j.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    j.lang.Thread.run(Thread.java:619)
    Caused by:
    java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: ".j"
    j.net.URLDecoder.decode(URLDecoder.java:173)
    j.net.URLDecoder.decode(URLDecoder.java:83)
    o.i.util.PatternFilter.matchesImpl(PatternFilter.java:285)
    o.i.util.PatternFilter.matches(PatternFilter.java:138)
    o.i.util.PatternFiltersOptimizer$VanillaEvaluator.matches(PatternFiltersOptimizer.java:118)
    o.i.util.PatternFiltersOptimizer.getMatchingFilter(PatternFiltersOptimizer.java:184)
    o.i.util.PatternFilters.findMatchingFilter(PatternFilters.java:145)
    o.i.util.PatternFilters.isIncluded(PatternFilters.java:164)
    o.i.util.IntersectedFilters.isIncluded(IntersectedFilters.java:145)
    o.ii.index.file.AbstractFileTable.filePassesFilters(AbstractFileTable.java:706)
    o.ii.index.file.DirFileTable.updateDir(DirFileTable.java:368)
    o.ii.index.file.DirFileTable.processQueue(DirFileTable.java:288)
    o.ii.index.file.DirFileTable.fullUpdate(DirFileTable.java:201)
    o.ii.index.file.DirFileTable.updateFileTable(DirFileTable.java:136)
    o.ii.index.file.AbstractFileTable.update(AbstractFileTable.java:379)
    o.ii.index.file.AbstractFileTable$FileTableUpdater.call(AbstractFileTable.java:914)
    o.ii.index.file.AbstractFileTable$FileTableUpdater.call(AbstractFileTable.java:903)
    j.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    j.util.concurrent.FutureTask.run(FutureTask.java:138)
    j.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    j.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    j.lang.Thread.run(Thread.java:619)
    About
    Oracle JDeveloper 11g Release 1 11.1.1.2.0
    Studio Edition Version 11.1.1.2.0
    Build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536
    Copyright © 1997, 2009 Oracle and/or its affiliates. All rights reserved.
    IDE Version: 11.1.1.2.36.55.36
    Product ID: oracle.jdeveloper
    Product Version: 11.1.1.2.36.55.36
    Version
    Component     Version
    =========     =======
    ADF Business Components     11.1.1.55.36
    Java(TM) Platform     1.6.0_14
    Oracle IDE     11.1.1.2.36.55.36
    Versioning Support     11.1.1.2.36.55.36

    :) yeah it's a super useful search box especially with projects with lots of files nested down in some deep packages ;p
    The interesting thing is I'm not searching for .j.
    The same error message comes up regardless of what I search for.
    For example:
    MyFile.txt
    or
    FuBar
    both return the same error and both report errors list .j and Illegal hex characters.... it must be some weird config thing under the hood that got munted during the install.
    Edited by: T-Syd on Nov 20, 2009 9:36 AM

Maybe you are looking for