2 Select lists do not change the value

Hi all,
I am having a situation. I have 2 select lists . The second one is dependent of the first one. Data are retrieved perfectly.
These select lists are done in page 0 and they are used in the referenced page. Apexlib is used in the page 0
When I change the item of the second list, the returned value used in a report, is ok. It takes the correct one.
If I change the item of the fist select list, the returned value of the second select list does not change(the displayed value are correct). the report is run (after changing the first select list) but the wrong returned value of the second list is taken.
The correct value of the second one is taken only if page is submited or we change the option.
it seems that it keeps the last value of the second list according to the previous selection.
Both select list is without submit.
How can I make a "refresh" of the returned values of the second select list (the records are ok) after changing the first one?
Thanks in advance
Raf

Hi Rafael,
is ApexLib integrated correct? Did you check against http://apexlib.oracleapex.info/howto_integrate_manual_steps.html ?
Or did you try and install the ApexLib Feature Demonstration Application and see if it works there?
brgds,
Peter
Blog: http://www.oracle-and-apex.com
ApexLib: http://apexlib.oracleapex.info
Work: http://www.click-click.at

Similar Messages

  • DYNP_VALUES_UPDATE does not change the value of my screen fields

    Hi,
    I have a screen with a header area and a control with an ALV.
    In my header area i have 2 fields shown as an icon.  These icons should change
    with an event triggered in the ALV (in handle_user_command)
    In handle_user_command I check the values of a column in my ALV - I have 3 possible cases : a green led, a yellow led or a red led.
    When i'm debugging the program, everything seems to be ok.  In my table i see the new values of the icons, but when I see the screen afterwards the old values have not been replaced.  (I also use an refresh of my ALV)
    Any help is welcome!
    THx,
    Helga

    Hi,
    declare the internal table like below:
    DATA: i_fieldvalues TYPE dynpread OCCURS 0 WITH HEADER LINE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR field.
      PERFORM Display_contion_types.
    FORM Display_contion_types.
    Search help for Condition Type
      PERFORM Display_contion_types.
    Update screen fields like below:
    Update Screen Field.
          CLEAR i_fieldvalues[].
          MOVE: 'V_TEXT'         TO i_fieldvalues-fieldname .
          WRITE i_t685-vtext TO i_fieldvalues-fieldvalue .
          APPEND i_fieldvalues.
          CALL FUNCTION 'DYNP_VALUES_UPDATE'
               EXPORTING
                    dyname     = sy-cprog
                    dynumb     = sy-dynnr
               TABLES
                    dynpfields = i_fieldvalues.
    endif
    regards,
    Raja

  • ChooseFrom List do not change the form mode

    Dear Sir,
    I have crated a form (using xml) based on a UDO.
    In  this form I have a chooseformlist box for the client code. WHen I am in OK mode and I modify the client code the form does not goes to UPDATE mode. To resolse this issue I ahve added the following ling and the choosefromlist event occur:
    If pVal.FormMode = "1" Then
       oForm.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE
    End If
    Now I am facing another problem is that When I modify the cleint code and the form goes to UPDATE mode and I go to a new record the system does not notify me that the data entered will be deleted if i continue the action without saving. You know the standard behavior of SAP BO
    Kindly help me with this isssue.
    Best Regards

    Hi!
    I use the MenuEvent-Handler to solve this.
    Code in MenuHandler:
                ' Switching to add, find and the yellow arrows
                If _
                    pVal.MenuUID = "1281" Or _
                    pVal.MenuUID = "1282" Or _
                    pVal.MenuUID = "1288" Or _
                    pVal.MenuUID = "1289" Or _
                    pVal.MenuUID = "1290" Or _
                    pVal.MenuUID = "1291" _
                Then
                    If pVal.BeforeAction Then
                        If Not OkLooseChangedData() Then BubbleEvent = False
                    End If
                End If
    And the called function is:
    Private Shared Function OkLooseChangedData() As Boolean
            Dim retVal As Int16
            OkLooseChangedData = False
            If oForm.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE Then
                retVal = _
                    SboCon.SboUI.MessageBox( _
                        "Changed data will be lost!" & vbCrLf & _
                        "Continue?", _
                        2, _
                        AddOnMain.GetResourceManager(AddOnMain.AddOnResources.Common).GetString("MSG_YES"), _
                        AddOnMain.GetResourceManager(AddOnMain.AddOnResources.Common).GetString("MSG_NO") _
                If retVal = 2 Then Return False
            End If
            OkLooseChangedData = True
        End Function
    No guarantee that it works for ALL cases
    Cheers,
    Roland

  • How to change the value in an Integer object?

    Hi,
    Is it possible to change the value that is contained in an Integer object.
    I know Integer objects are immutable. So it might not be possible to chage to value in an integer object once its been initalized a value @ the time of construction.
    Also does autoboxing and unboxing feature of 1.5 help acheive this?
    Please let me know of any other alternative
    Thanks
    Deepak

    Tried the autoboxing and unboxing feature doesnt
    help.It doesn't help in general. But in this special case it doesn't help because it doesn't anything to do with it. Do you really know what you're doing?
    So across the function its not changing the value.
    As I have created an object of Integer class and
    passed a reference of that object into the chage()
    ,So any changes should have been reflected
    acrosss method calls.?Since you let the newly created parameter-reference a point to a new Integer object: no. Why? You have two references to I(31). Then you move one reference to I(33). Why should 31 get another value?
    Does the the java compiler creates a new Integer
    object each time it does autoboxing Not necessarily. Some values are pooled. Actualy, the JVM does it. The compiler never creates any object.
    so that the value
    is lost across method calls?That's not the compiler's or the JVM's fault. It's all a misconception of yours.
    Is there any means to achieve this?What for?
    int a = 0;
    a = change(a);
    int change (final int i) {
      return i + 12;
    }Does exactly what you want, without side-effects.

  • Change the Value of column of the internal table at run time

    Hello Experts,
    With the below code i am able to determine the value hold
    by internal table at run time for a sepcific column but i am not getting the way
    of how to update the internal if one of the value is changed,
      lr_desc_table ?= cl_abap_typedescr=>describe_by_data( itab  ).
      lr_desc_struc ?= lr_desc_table->get_table_line_type( ).
    loop at itab assigning <fs_data>.
        loop at lr_desc_struc->components ASSIGNING <fs_comp_wa>.
          assign component  <fs_comp_wa>-name of structure <fs_data> to <fs_field>.
          lv_excel_row = <fs_field>.
         CALL FUNCTION 'SCP_REPLACE_STRANGE_CHARS'
            EXPORTING
              INTEXT  = lv_excel_row
            IMPORTING
              OUTTEXT = lv_excel_row.
          assign lv_excel_row to <fs_field>. "this is not changing the value actually hold in internal table
        endloop.
      endloop.

    Hi,
    Resolved this issue with the code mentioned below.
    Code:
    loop at lt_export_items assigning <fs_data>.
      ls_data = <fs_data>.
        loop at lr_desc_struc->components ASSIGNING <fs_comp_wa>.
          assign component  <fs_comp_wa>-name of structure <fs_data> to <fs_field>.
          lv_excel_row = <fs_field>.
          CALL FUNCTION 'SCP_REPLACE_STRANGE_CHARS'
            EXPORTING
              INTEXT  = lv_excel_row
            IMPORTING
              OUTTEXT = lv_excel_row.
              concatenate 'ls_data-' <fs_comp_wa>-name into  lv_var.
              assign (lv_var) to <fs_var>.
              <fs_var> = lv_excel_row.
        endloop.
        modify lt_export_items from ls_data .
        clear:ls_data.
      endloop.
    Take care,
    Sanju

  • How to change the value of project data in the BPM instance?

    Hi Everybody,
    I have a situation that after the bpm instance was created. We found that one of the project data/variable contains the incorrection information. Is it a way we can change the value of that project data/variable? I checked the BPM workspace, as administrator, there are not function for it and we can't stop/withdraw the instance. Can we change the MDS database for it? Please advise. It is so important for us that will stop us to move on of our project.
    Thanks

    As per my knowledge we can not change the value of BPM project variables from outside BPM. If you look at PAPI API also you will find methods to get values from BPM but not to set to BPM.
    If this is daily issue for your application then change your design to add a Edit Data Activity (Screen) and then use Grab functionality to get the control to this Edit Data Activity to change the required data.
    Else if it is an issue with the only one instance then it is better to Abort this instance and re-create the instance with correct data. Changing value in the MDS database is not encouraged.
    Hope this helps.

  • Change the value of a SharePoint List lookup control value using javascript

    hi,
    could you please help in changing the value of a SharePoint List lookup control value using javascript.
    Please note that i have to change the lookup value which is in the form of a drop down from the infopath form.
    Thanks

    https://stackoverflow.com/questions/5678210/select-dropdown-menu-option-with-javascript
    Does that help?

  • Can not change the control level of item attribute "Inventory Asset Value"

    I can not change the control level of the item attribute "Inventory Asset Value" from Master Level to Org Level. It's show me the message "FRM-40200: Field is protected against update".
    Version is below:
    Oracle Application: 10.7SC
    Form: INVIDCTL 6.0.26

    I did a trace when I chage the control level. the SQL is below:
    SELECT COUNT(*)
    FROM CST_ITEM_COSTS CHILD
    , CST_ITEM_COSTS MASTER
    WHERE MASTER.INVENTORY_ITEM_ID = CHILD.INVENTORY_ITEM_ID (+)
    AND MASTER.COST_TYPE_ID = 1
    AND CHILD.COST_TYPE_ID (+) = 1
    AND NVL(MASTER.ITEM_COST,0) != NVL(CHILD.ITEM_COST (+) ,DECODE(MASTER.ITEM_COST, NULL ,0,-99999))
    AND MASTER.ORGANIZATION_ID IN (SELECT MASTER_ORGANIZATION_ID
    FROM MTL_PARAMETERS
    WHERE ORGANIZATION_ID != MASTER_ORGANIZATION_ID )
    AND CHILD.ORGANIZATION_ID IN (SELECT ORGANIZATION_ID
    FROM MTL_PARAMETERS
    WHERE MASTER_ORGANIZATION_ID = MASTER.ORGANIZATION_ID )

  • I cannot change the value in about:newtab from "newtab" to "blank." The dialog is displayed but when I click Ok, the value is not changed.

    I cannot change the value in about:newtab from "newtab" to "blank." The dialog is displayed but when I click Ok, the value is not changed.
    ===Answer===
    Comment on usual method and solution, by a forum Moderator.
    As long as there are no confounding factors, such as certain extensions, or a user.jsfile the procedure is as follows
    # Open a new tab and type "about:config" in the address bar.
    # In the Search bar type: "newtab"
    # Locate and double click "browser.newtab.url"
    # In the "Enter String Value" box change "'''about:newtab'''" to "'''about:blank'''" and click OK.
    # Verify that the value has changed and now all new tabs will be blank.
    See post under by ''pirate048'' [/questions/976589?page=2#answer-509482] ~J99

    Have to say that I rather agree with Mark..all we want is a simple, unadorned clean page that doe not track and show usage!! WHY NOT!! Is it too simple for developers..we aren't all (nor do we want to be!) software experts! Come on Mozilla..tidy up and clean up..it might be a quicker programme too!!

  • SP2013: List does not exist / The page you selected contains a list that does not exist. It may have been deleted by another user

    There are dozens of entries regarding "
    List does not exist / The page you selected
    contains a list that does not exist. It may have been deleted by another user" and none of them are really SP 2013 so i thought I would create this entry. 
    I am getting the error above after creating a simple list with 4 columns.  the list is created during a new site definition activation but when I click on my list, I get the error above.  the list works if I deactivate the feature and re-activate
    it.  but has the error whenever the new site definition is created.  
    Has anybody encountered this issue on SP 2013?

    Hi,
    For your issue, there are plenty of possible reasons offered when we search this issue online.
    Here are similar issue posts, check whether they are helpful:
    http://sharepoint.stackexchange.com/questions/98239/list-does-not-exist-error-when-opening-the-views
    http://sharepoint2u.com/?p=56https://shareyourpoint.wordpress.com/2012/04/12/list-does-not-exist-the-page-you-selected-contains-a-list-that-does-not-exist-it-may-have-been-deleted-by-another-user-sharepoint-2010-error/
    http://spnovice.blogspot.com/2012/10/list-does-not-exist-or-does-it.html
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Lisa Chen
    TechNet Community Support

  • There was an attempt to change the value of a control that is not visible.

    I am getting the below error on submitting on a screen.
    "There was an attempt to change the value of a control that is not visible. The submitted value for this control has been discarded."
    I am setting the values of the controls in "OnGetScreenEventHandler, OnInvestigationEndedEventHandler" implementation. Is there any way to check if the control is visible?
    Thanks,
    Rajan

    Hi,
    How Do I Check for the control Visiblity in the above said event handler?
    Here is my code
    private void formattAllDate(SessionContext currentContext) {
         log.debug("R2_XSR: Formatting all date");      
    setGlobalInstanceValue(currentContext,"Date1",formatDate(getGlobalInstanceAttribValue(currentContext, "Date1")));
    setGlobalInstanceValue(currentContext,"Date2",formatDate(getGlobalInstanceAttribValue(currentContext, "Date2")));
    setGlobalInstanceValue(currentContext,"Date3",formatDate(getGlobalInstanceAttribValue(currentContext, "Date3")));
    setGlobalInstanceValue(currentContext,"Date4",formatDate(getGlobalInstanceAttribValue(currentContext, "Date4")));
    setGlobalInstanceValue(currentContext,"Date5",formatDate(getGlobalInstanceAttribValue(currentContext, "Date5")));
    setGlobalInstanceValue(currentContext,"Date6",formatDate(getGlobalInstanceAttribValue(currentContext, "Date6")));
    setGlobalInstanceValue(currentContext,"Date7",formatDate(getGlobalInstanceAttribValue(currentContext, "Date7")));
    private void setGlobalInstanceValue(SessionContext currentContext, String attribute,Boolean value){
         try{
              currentContext.getInterviewSession().getRuleSession().getGlobalEntityInstance().getEntity().getAttribute(attribute).setValue(currentContext.getInterviewSession().getRuleSession().getGlobalEntityInstance(), value);
         }catch(Exception e){
              e.printStackTrace();
    private String formatDate(String dt){
    String newdt[]=dt.split("/");
    if (newdt.length==3){
    return newdt[1]+"/"+newdt[0]+"/"+newdt[2];
    return "";
    }

  • I can not change the system sounds on my ipod example incomming mail is stuck on bell even though i have selected glass

    I can not change the system sounds i have tried every thing but a reset,any suggestions

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          

  • Multiple Select List does not Refresh with Dynamic Action

    All,
    Scenario:
    Using APEX 4.2.2, I have a Select List page item (P4_SPONSOR) set to allow multiple values which has a dynamic LOV to populate the list.  What I would like to do is highlight the display values based on another page item's value (P4_DRIVER_ID).  When I set the source of P4_SPONSOR to static text, such as a delimited string of 1:2:3:4, any display values where the return values are equal to the static text are highlighted when the page loads.
    Problem:
    The problem lies in trying to use a query as a source for P4_SPONSOR which is filtered based on the other page item, P4_DRIVER_ID.  For instance, my SQL Query (returning colon separated values) returns the same as the static text noted above.  In the query's WHERE clause, I specify that the driver's ID is equal to P4_DRIVER_ID:
    SELECT sponsor_id
    FROM sponsors_drivers_xref
    WHERE driver_id = :P4_DRIVER_ID;
    This, as I understand it, would necessitate a refresh of P4_SPONSOR whenever the value of P4_DRIVER_ID changes.  So, I have a Dynamic Action that does just that.  When executed on the page, I can see the P4_SPONSOR multiple select list actually refresh, but none of the display values become highlighted.
    Thoughts?
    Thanks,
    -Seth.

    Seth,
    A dynamic action refresh of your select list will refresh the list of values (this is what you are seeing), it will not refresh the value of the item itself.  In fact, it will remove any values that you had already selected.  To refresh the value you will need to add additional dynamic actions.
    Create another dynamic action with:
    Event: After Refresh
    Selection Type: Item(s)
    Item(s): P4_SPONSOR
    If this was a normal select list you could just create a Set Value action and use your query to set the value of the select list.  Since this is a multiple select list your will need to get your colon delimited value first and then use some javascript to set the values of your select list.
    Create an hidden page item name P4_SPONSOR_TEMP.
    Add a true action to your new dynamic action:
    Action: Set Value
    Set Type: SQL Statement
    SQL Statement:
    SELECT sponsor_id
    FROM sponsors_drivers_xref
    WHERE driver_id = :P4_DRIVER_ID;
    Page Items to Submit: P4_DRIVER_ID
    Selection Type: Item(s)
    Item(s): P4_SPONSOR_TEMP
    Add another true action to your new dynamic action:
    Action: Set Value
    Set Type: JavaScript Expression
    JavaScript Expression:
    $("#P4_SPONSOR_TEMP").val().split(":")
    Selection Type: Item(s)
    Item(s): P4_SPONSOR
    --Jeff

  • Change the value of a variable used in a View query

    I am using JDeveloper 11g to develop a simple portlet application which displays data loaded from database. I am displaying the data by dragging the ViewObject from the AppModuleDataControl to the View.jspx page and selecting the option ADF Read-only Table. My ViewObject has a single variable :empId. Now is it possible to change the value of this variable with a value that comes from the request object. On the internet I found the following code:
            FacesContext facesContext = FacesContext.getCurrentInstance();
            Application app = facesContext.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = facesContext.getELContext();
            ValueExpression valueExp =
            elFactory.createValueExpression(elContext, "#{data.AppModuleDataControl.dataProvider}",
            Object.class);
            ApplicationModule am = (ApplicationModule)valueExp.getValue(elContext);
            ViewObject emplVO;
            emplVO = am.findViewObject("EmployeeView1");
            emplVO.setNamedWhereClauseParam("empId", "1");I have put this code in the public void processAction(ActionRequest request, ActionResponse response) method. However this does not work when I deploy it.
    Does anyone know if the above code is correct in this case and if there is a better way how I can set this up?

    Hi there:
    Did you add a break point and debug the code to see what is the value for the :empid parameters passed in to your view object?
    If you are sure you have passed in the correct value for ":empid" parameter, then do the following:
    String amDef = "yourAmDef";
    String config = "yourConfig";
    ApplicationModule am =
    Configuration.createRootApplicationModule(amDef,config);
    ViewObject emplVO;
    emplVO = am.findViewObject("EmployeeView1");
    emplVO.setNamedWhereClauseParam("empId", "1");
    empVO.executeQuery();
    which will execute your view object with the new bind variable value and refresh the view.
    Please mark my answer as 'Correct' if it solves your problem, or 'Helpful' if it does.
    Thanks,
    Alex
    Edited by: Alexbie on 27-Aug-2010 8:52 AM

  • LOV single selection list is not working in my JDeveloper 10.1.2.3

    Hi!
    I'm stumped with this. I'm also new to JDeveloper. I used the sample tutorial from the OTN website entitled "JSPDataBoundLists.jws" to learn how to create drop-down lists in JDeveloper.
    My problem is I created a single selection list LOV from DepartmentListView Data Control and pasted it into an EmployeesView Input form. This is so I can just select the Department names to populate the DepartmentID field in Employees table. I setup the data binding in the UI Model of my jsp using the "List Binding Editor". I checked the UIModel file and it looks as follows:
    <DCControl
    id="DepartmentId2"
    SubType="DCListSingleSel"
    IterBinding="EmployeesViewIterator"
    DTClass="oracle.adf.dt.objects.JUDTCtrlListLOV"
    ApplyValidation="false"
    isDynamic="false"
    ListOperMode="0"
    ListIter="DepartmentsListViewIterator" >
    <AttrNames>
    <Item Value="DepartmentId" />
    </AttrNames>
    <ListAttrNames>
    <Item Value="DepartmentId" />
    </ListAttrNames>
    <ListDisplayAttrNames>
    <Item Value="DepartmentName" />
    </ListDisplayAttrNames>
    </DCControl>
    I run the jsp, selected a value from the drop-down list, do a submit and do a commit, but the DepartmentId from the DepartmentsListView was not stored in Employees. What is wierd here is that there is an exact same single selection list defined a row above mine which is working fine. How come that one is working and mine is not?

    Eureka! I finally found the answer to my own question!
    This simple problem of adding a drop-down list into a jsp page cost me 3 whole days (around 24 full working hours) to find the answer. Normally it only takes me a few minutes with the other web app languages I've learned. And I just stumbled into the answer just a few minutes ago (maybe all thanks should be given to God whom let me stumble into the answer since me and my wife have been praying for several weeks now ever since I started trying to learn Oracle JDeveloper. It is really very very difficult and time consuming to learn compared to other web app languages and tools).
    Anyway, the reason why my LOV does not work in my jsps using JDeveloper 10.1.2.3 is because JDeveloper 10.1.2.3 seems to allow only one input-form-element for the same field of the input table!
    For example, what happened to me was I had an input form created for the Employees table in the HR schema. I did this simply by drag-and-drop from the "Data Control Palette". This feature I like very much with JDeveloper. It is really easy and works instantly. And then, I drag-and-drop the departmentname field from the Departments table as a "single selection list" into the jsp and setup its bindings. So when I run the jsp, viola! The drop-down list does not populate the DepartmentId field of the Employees table. IT DOES NOT WORK! I've tried reinstalling both JDev and Oracle db and JDKs to no avail! I tried posting in this forum to no avail! I tried experimenting with newly created jsps to no avail! Then suddenly after repeatedly experimenting on this on different tutorials, guides and my own web app, it works! Why did it work? It was because I tried to add an LOV-single-selection-list on another sample tutorial with a READ-ONLY FORM on the jsp! Thus only the LOV is the input-form-element in the jsp for the table's field.
    So why can't you find such a simple and basic fact anywhere in the web, the tutorials, guides or the forum? I do not know. Maybe only I am using such an old version of JDev? But what about the users who used it when it just got out a couple of years ago? Didn't they have the same problem? Anyway, it seems like the answer to a lot of my simple basic questions about JDeveloper is not documented, or is buried very deep beneath all the other words of all these documents. Hopefully JDeveloper's documentations would get a lot easier to use very very soon!

Maybe you are looking for

  • Channel Scan installation starts when TV is turned on

    Toshiba 46UL605U LED TV - When you turn on the TV it always goes into channel scan (installation mode).  Just started within the last month. Is there a correction for this. What causes this

  • Error message: "Install Excel as viewer"  BRAIN871

    Hello Experts, I have installed SAP GUI 7.20 and all BW patches. Also installed the BE Analyzer But when I try to run Tr. RRMX.... I receive error message  BRAIN871 "Install Excel as viewer"  Know somebody any solution? Regards Juan

  • Partial clearing for noted item

    Hi I have created a bank guarantee (BG) given to customers as  a noted item. When receiving payaments from customer (after invoicing is done to customer), i need to clear this BG (noted item). This clearing of noted item needs to be done for partial

  • Where is my extension folder?

    I am having trouble with adding packages like javax.sql and javax.naming. From what have read, these packages should go into my extension directory but the compiler still complains when I reference a class from any optional package outside of jdk1.3.

  • Finding / Setting the Pane Level of a new folder

    I have added a new folder to the Business partner form but cannot seem to work out what the Pane Level is for the new folder - how do you do this ? The folder is showing but I cannot set the pane level or add items to it. I followed the SDK sample wh