refresh the list of selection - keep value

Hi all

I'm having a problem where I don't have a solluion for. Maybe can someone help?

The (Simplified) situation is as follows:
There are 2 selection lists in my page:
-one with articles (you see the name of the topic and the price). The source of this selection list is a query more ITEMS from collection.
-one with countries (source is not important)

When a user runs the page, the content of the selection with the items list is defined by a process that calls a procedure in a package to database; This package fills the collection of ARTICLES. So far so good. But when the user selects a country in the second, select list, the same procedure is called to update the ITEMS collection, because for some countries, the price is different. But how do I update the list of selection, while keeping the same selected article? When I run a dynamic action of refresh type, the value of the selection list is cleared. If I backup the value before updating the selection list and after refreshing, set the value of the selection list does not work or the other.

I hope that the above is clear enough. Otherwise I'll set an example on apex.oracle.com.

Thanks for your answer in advance!

Edit: Version of the Apex is 4.2

Edited by: tomvdduin, 3-dec-2012 0:16

Hello

The value of the P2_ARTICLES_BACKUP page element was not defined in the session state (as seen in the option 'session' in the developer toolbar).

I changed the following:
1. use of an action "Set the value" of the body of the function type pl/sql to update the value of P2_ARTICLES_BACKUP
2 removed the last DA update the P2_ARTICLES value using javascript. It is not necessary. You had this code:

$s('P2_ARTICLES',$v('P2_ARTICLES_BACKUP'));

3. update the default value of P2_ARTICLES to & P2_ARTICLES_BACKUP.

The changes described above solves your problem. Please test.

Thank you
Rohit

Published by: jaouad khalifi on December 3, 2012 03:44

Tags: Database

Similar Questions

  • How to refresh the list of selection LOV

    Hello

    I use a search of VO show three fields as a, b, c.

    My query VO is selet 'a,' b, "double c.

    For these 3 attributes, I created three different LovVO with queries to display in the database.

    Select a from table1 - values of retrun as a1, a2, a3

    Select b from table1. - return as b1, b2, b3 values

    c select table1. -returns the values such as c1, c2, c3

    Based on the input parameters I am looking for data and I am also erase data from database using callable statement.

    For Eg: I select a1 lov of an attribute and search and click on delete button. record a1 will be deleted from the DB but it shows in the dropdown attribute one.

    When deleting, I want to update my list of selection.

    How can I do this? Please notify.

    Thank you

    1925321 wrote:

    I LOV VO'; attached s looking for VO.

    The method you gave, I tried to implement even in SearchVORowImpl.java and AMImpl.java

    This method should be in the SearchVORowImpl.java only and NOT in the AMImpl.

    Here is the screen shot of JDev 11.1.1.6, so you can see there is method get: ListBindingDefs()

    The lovs list - it is just java.uitl.List, so import that class in theSearchVORowImpl.java, or simply declare

    java.util.List lovs is getViewDef () .getListBindingDefs ();.


    Then go to the section Java in SearchVO and this method in the customer line to export Interface:

    Now you can add this method in the method of the pageDef and executables, as methodAction:

    Then simply call him when you need it ;-)

  • Refresh the list of VIAccounts with PowerCli to select a newly created group

    Hi all

    I use a script that creates groups in Active Directory and connects to my server vCenter by using New-VIPermission. The trick is that it does not find the groups unless I restart the script (and so, I suppose, the connection).

    $My_Group = New-QADGroup -Name $My_AD_GroupName -SamAccountName $My_AD_GroupName -ParentContainer $My_OU -Connection $My_adConnection

    New-VIPermission -Entity $param_objects -Principal "Domain\$My_AD_GroupName" -Role ($My_Role.Name) -Propagate:($My_Role.Value) | Out-Null

    This script is going to create the group in my ad, but if you link to a new authorization in my vCenter, he'll be backNew-VIPermission Could not find VIAccount with name 'Domain\MY_GROUP_NAME'.

    When you restart the script, he will pass on the creation of group directly to the new VIPermission and properly bind to the vCenter object.

    I tried to add a waiting order, and a sleep of 5 seconds, but used to change one thing...

    How can I manage to reload and refresh the list of available groups without having to restart the vCenter connection?

    Thanks in advance!

    Well, I added the following:

    "while (!). "(() Get-VIAccount-groupe-nommer"REDOUTE_FRANCE\$ My_AD_Task_GroupName")) {Start-sleep - s 1}.

    And it works. Slow but it works

    Thanks, LucD!

  • ADF 11 - stop the user to select some values of a LOV

    Hello
    Jdev ADF BC 11

    I have a DB table countries hence, I've created a VO EO for the creation of country
    and a second reading only VO to be used as a country LOV in other tables.

    I have a second holiday table that uses the country LOV to choose the country for which
    the holiday must be registered.

    A country may be Active, blocked or cancelled

    What I have to do is to stop the user to select a value from the LOV country
    who is blocked or cancelled.

    How is it possible...

    Concerning
    Paul

    OK, this will be much better than just having it scattered randomly in the list.

    What you want to do is to create another view (to the same instance of VO) accessor, this time in your entity object. For this class accessor, you include a named view criteria (change the accessor for that) which limit the selection that the entries 'selectable '. Then, set a validation rule 'List' to the entity object attribute target, select 'In', 'View attribute accessor', and your display accessor and the attribute. Given that the VO attribute uses the more general accessor, which will determine what appears in the LOV, but an attempt to choose something that is not in the narrow view accessor will send a validation error.

  • How to get the content of the list item selected ListView using CPP?

    Hello

    I do a simple application, get the content of the list item selected ListView using CPP, in the main.qml file, I created a listview using XMLDataModel and I got the selected listview using dataModel.data (row) .attributeNameInXmlfile in qml. content as in the same way the ListView using cpp.please help me I want to get the content of the listitem selected.

    Here is my code

    hand. QML

    import bb.cascades 1.0
    
    Page {
        content: Container {
            id: mainContainer
            objectName: "container"
            // property alias selectedText: selectedTextField.text
            //property alias deselectedText: deselectedTextField.text
            ListView {
                objectName: "listView"
                dataModel: XmlDataModel {
                    source: "models/items.xml"
                    id: model
                }
                listItemComponents: [
                    ListItemComponent {
                        type: "item"
                        StandardListItem {
                            title: ListItemData.title
                        }
                    }
                ]
            }
            TextField {
                id: selectedTextField
                objectName: "selectedTextField"
                text: ""
            }
            TextField {
                id: deselectedTextField
                objectName: "deselectedTextField"
                text: ""
            }
        }
    }
    

    App.cpp

    #include "app.hpp"
    
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    using namespace std;
    
    using namespace bb::cascades;
    QObject *textFieldSelected ;
    QObject *textFieldNotSelected;
    QObject *list;
    App::App() {
        QmlDocument *qml = QmlDocument::create("main.qml");
        AbstractPane *root = qml->createRootNode();
        list = root->findChild("listView");
        textFieldNotSelected = root->findChild("deselectedTextField");
        textFieldSelected = root->findChild("selectedTextField");
        QObject::connect(list,SIGNAL(selectionChanged (QVariantList, bool)),this,SLOT(changeText(QVariantList, bool)));
        Application::setScene(root);
    }
    
    void App::changeText(QVariantList indexPath,bool selected) {
    
    }
    

    App.HPP

    #ifndef APP_H
    #define APP_H
    
    #include 
    #include 
    #include 
    
    /*!
     * @brief Application GUI object
     */
    class App : public QObject
    {
        Q_OBJECT
    public:
        App();
    public slots:
    void changeText(QVariantList ,bool );
    
    };
    
    #endif // ifndef APP_H
    

    Try this.

    void App::changeText(QVariantList indexPath,bool selected) {
        XmlDataModel *model = (XmlDataModel *)list->dataModel();
        QVariantMap map = model->data(indexPath).toMap();
        // map is your data in QVariant
        qDebug() << map["title"].toString();
    }
    
  • Switch poplist display of the list item selected for its value of list item

    Is it possible to change the display in a poplist of the list item to its corresponding list item value?

    For example, I have a list item is filled with a group of records. Name of the country (e.g., Canada) is the list item, and the country code (e.g. CA) is the value of a list item.

    I want users to be able to see the names of countries, when the list is expanded. However, once users choose and click on a country, the country code must be included in the display.

    I suppose that if it is possible to do at all, he would be using a trigger a times-news-point-instance, but I do not know where to go to from there. Please let me know if you need clarification or more information from me. I'd appreciate any help you can give me.

    With the help of Oracle Developer Suite 10 G
    Version of Forms - 9.0.4.3.0

    Hello
    Welcome to the forum,

    Just an idea. Why you do not keep the country with the description at the time code. I mean, it's like you say you query group will be like this...

    SELECT code, description
    FROM table_name;
    

    So, I mean just change this query to concatenate the code with description. for ex.

    SELECT code, code||' - '||description as description
    FROM table_name;
    

    It will show you the code and the name in the list. So, it will not trigger etc.

    -Clément

  • Skillbuilders Super LOV, refresh the list of SLOV values dynamically

    Hi, another question.

    I have 2 SLOVs. 1 is a relative of the 2nd.

    The first has its value dynamically for a reason any.
    I can not then dynamically change the value of the 2nd until the cascading effect is triggered by the opening of the 2nd SLOV via the button.

    If the page has LOV1 with value 'A' with LOV2 have child values "A1", "A2", "A3" available and I then proceed as follows

    $('#P1_LOV1).apex_super_lov ('setValuesByReturn', 'B'); (where B is a valid value)

    followed by
    $('#P1_LOV2').apex_super_lov ('setValuesByReturn', 'B1'); (assuming that B1, B2 and B3 are values of child for B)

    Then, it does not work.

    In fact
    $('#P1_LOV2').apex_super_lov ('setValuesByReturn', 'A1');
    $('#P1_LOV2').apex_super_lov ('setValuesByReturn', 'A2');
    $('#P1_LOV2').apex_super_lov ('setValuesByReturn', 'A3'); Still work, even if the parent is now wrong.

    So, basically, it seems that dynamically change the SLOV parent value is not triggering of the ripple effect that manually the SLOV itself chosen.

    Is it possible to force the list of values for updated after change dynamically children parent cascading?

    Concerning
    Mark

    Hi Mark,

    Some problems with the State of session here! Your lov EMP is limited to documents that match the DEPT value in session state. Initially this will be null and no value. Suppose you select a Department and send the page, so that the values are stored in session state. When you open the lov, employees would be only those for the Department which the value is stored in session state. Understand the State of Session, Oracle docs

    You were on the right track with cascading lists, but it breaks your choice by default features. So I've ignored this output, I don't want the default functionality. We need to do our own for this. Don't worry, not too!

    Off, when dept in the default settings or dept lovs changes because of a choice, the selected Department must first go to session state. This is necessary for the lov emp can find the correct records. So I added a dynamic action to fire on the change of P14_CHOOSE_DEFAULTS and P14_DEPT. The real action is a PLSQL code execution. PLSQL is always on the server side, and we can provide items to submit to the session state. The executed code is simply

    NULL;
    

    because we don't need to run anything, but P14_DEPT has the value that will be submitted to the session state when the call is made.

    With these changes, everything works. But EMP must be blanked when DEPT changes. Otherwise, you could spend DEPT autour but are not yet in a bad EMP.
    So I added another dynamic action that fires on the evolution of the DEPT and blanks in the EMP. No worries about default values, picking, because that won't change due to values only being edited
    javascript change events that are not performed.

    PS: don't forget to assign the answer useful/correct labels to messages that are :-)

  • Dynamic action fails using the null value on the list of selection change event

    I have a selection list that I created a dynamic action to which I added a value set to to clear the values of other controls on the form by assigning the value NULL.

    This doesn't seem to work, and I can't understand why it does not work.

    Event = change
    Selection type = Items
    Items = P4_MYSELECTLIST
    (no other condition for this action, I want it to reset for each change in the selection list).

    Fire on the Page Load = False (I only want what he reset values when I use this list of choices, not the page load).
    Set Type = static assignment
    Value = NULL
    Items = P4_ITEM1, P4_ITEM2, P4_ITEM3 (including 2 other lists of selection and control of text)
    Remove the Change = No event

    Xanas,

    If you set the values NULL and not the literal string "NULL" you must change your DA slightly. Modify your game to run JavaScript Code.

    Action = run the JavaScript Code
    Fire on the Page Load = False (I only want what he reset values when I use this list of choices, not the page load).
    Code = this.affectedElements.val ('');
    Items = P4_ITEM1, P4_ITEM2, P4_ITEM3 (including 2 other lists of selection and control of text)

    Edit:
    You can also change the real action to the following if you want to leave your DA as setpoint:

    Fire on the Page Load = False (I only want what he reset values when I use this list of choices, not the page load).
    Set Type = Expression JavaScript
    Value = "
    Items = P4_ITEM1, P4_ITEM2, P4_ITEM3 (including 2 other lists of selection and control of text)
    Remove the Change = No event

    Good luck
    Janet Tyson

    Published by: Tyson Janet on January 10, 2012 09:52

  • Reset the other values in the list of selection when it is clicked on a selection list.

    I'm currently developing a report based on various selection lists. I have three selection lists. When I select a value in that I want them to have the value zero. Like that when I select my button GB the report displays only the information related to the value in the selection list, I clicked. (I've already worked my report based on a function, plsql referring to different queries depending on the valuses of selection lists and he needs 2 of the three to 0).

    Thank you
    Greg

    Greg,

    I've made a few changes (no worries, you can export your application as x min there is to get him back if you like):
    1. I have modified your reports to simple sql queries and put logic in the where clause.
    2. I changed the first to the elements to make them more standard.

    Play with the page a bit and I would like to know if it's on the right track...

    Kind regards
    Dan

    http://danielmcghan.us
    http://sourceforge.NET/projects/tapigen
    http://sourceforge.NET/projects/plrecur

    You can reward this answer by marking as being useful or correct ;-)

  • Retrieve the list of available control values IOName/IVILogicalName

    Is it possible to programmatically retrieve a list of all values of an IOName control (or more precisely IVILogicalName in this case)? I refer to the list of values that appears when you click the arrow on the menu drop-down control. For example, if I set the control to NO-SCOPE (IVI select class-> IviScope-> niScope) from the drop-down list shows only the names of the bodies that are present (for example, "PXI2Slot6"), including the sessions 'duplicate' (e.g. ' PXI2Slot6 (1) ").


    I can get the value currently selected control quite easily, but I would like to get a list of all available values. Is this possible? Values are just there in the control as surely there must be a way to access.

    My goal here is to find a way to recover all sessions IVI and then close them. If there is another way to do this, I'd be happy to hear it.

    Some related posts, I found:
    https://forums.NI.com/T5/instrument-control-GPIB-serial/close-all-open-IVI-sessions/TD-p/1752560
    https://forums.NI.com/T5/Digital-Multimeters-DMMs-and/what-is-the-proper-way-to-close-all-open-Sessi...

    DropDownList (with VI active scripting)

    I use it to find niDMM you can modify it to work with niSCOPE by changing the

    IVI of the results matrix class

    I use this for VISA

  • Refresh the list of Presets in development settings?

    Is it possible to force a refresh of the presets list in the settings menu to develop?  I want to work around this problem:

    (1) right click on an image and select develop settings - a list of the presets in the CameraRaw/Settings folder appears in the submenu.

    (2) with the bridge remaining in the open air in the foreground, change the content of the presets in the CameraRaw/Settings folder (I do this with a jsx script in my case).

    (3) right click on an image and go again the parameters of development - the list is the same as the list in step 1.

    (4) give any other focus of the application, and then come back straight into the bridge.

    (5) right click on an image, select parameters of development again - this time the preset list reflects what is in the CameraRaw/Settings folder.

    It is therefore possible to force the bridge to refresh this list somehow in my jsx script?

    Sorry no, you cannot change a menu once it is created.

    You can access one of the elements in the development settings with...

    //Develop Settings > Camera Raw Defaults
    app.document.chooseMenuItem("CRDefault");
    //Develop Settings > Previous Conversion
    app.document.chooseMenuItem("CRPrevious");
    //Develop Settings > Copy Settings
    app.document.chooseMenuItem("CRCopy");
    //Develop Settings > Paste Settings
    app.document.chooseMenuItem("CRPaste");
    //Develop Settings > Clear Settings
    app.document.chooseMenuItem("CRClear");
    

    You cannot bring the focus to another application, but you can send commands to another application on Adobe using BridgeTalk

    You can deselect all the thumnails and select the ones you want to work, a few orders below might be useful...

    //change Bridge to folder
    app.document.thumbnail = Folder(Folder.desktop + "/myfolder");
    //de-select all thumbnails
    app.document.deselectAll();
    //select thumbnail
    var thumb = new Thumbnail(thumb);
    app.document.select(thumb);
    
  • Fill in a text box based on the list box selection?

    I'm relatively new to using scripts in forms.  So I hope that someone can help me here.

    I have a list box called 'Name', which uses the user selects a name.  I have a text box called "DOB", I need to be filled in automatically with the date of birth of the corresponding name that has been selected.

    I tried to adapt some scripts to fit my needs here, but nothing helps.  Although it seems like it should be pretty easy.  Any ideas?  Thanks in advance for the answers.

    ' 1. fill the list box with the name of "and place the date of birth in the option 'value exprot '.

    2. for action 'on blurr"add the following script:

    this.getField('DOB').value = event.value;

    When you tab or the mouse out of the list box, the value displayed in the field "DOB".

  • How to displaly the list of selection based on a radio button w\o send a page

    : P10_Fail is a radio button with value (Y or N)
    : P10_Reason is a selection of value list (lLOV) for 10 different values


    Objective:
    in the form: P10_result default radio button is N, when the user clicks on, I want the: P10_Reason appear and allow users to select the right. How can you do this without submitting the page first. That's if: P10_Fail N, it is unnecessary to select: P10_Reason. It seems that what I need is an attributes of the element on the question, but I can't understand what?


    Can U please help? It is a disappointment.




    Zen

    Zen

    Add the following code in the 'footer text.

    
    

    CITY

  • Control of VISA resource name: to refresh the list of COM ports programmatically

    When the application runs, and you first click this control, it takes 2 to 5 seconds to respond and complete the list for the first time.

    I would like to auto fill in the first time that the application is busy. Can I do this?

    Before allowing the user to click & Select resource VISA name, first use the 'VISA find resource' in your program to do the same thing & then allow or prompt the user to select resources.

    Given that loading EXE, it will execute the FIND VI-first & Labview will inform the resources available.

  • Fast Windows asks me to select a user from the list, but there is no user on the list to select

    Here's how stupid I am. I recently tried a problem with my control panel. I couldn't open half of the icons in the Control Panel folder for "Windows/rundll32.exe is not found" after some internet research, I tried various ways to solve this problem. To resolve this problem, I had to be the administrator. I bought the computer out of Craigslist and have no idea what happened to the previous administrator password. I disabled somehow the administrator user and all users. Essentially, when I start my computer, I gives me the splash screen windows XP telling me to "click on a user" in the list but there is no list of users. My only option is to close. I tried to hit CTRL/alt/del, which brings up a window where the user is the administrator and he asks me for the password that I have no idea what it is. I have looked through the commissioning in BIOS and Boot mode but do not know how I can bypass the first screen prompts the user of Windows XP. I locked myself out of my computer. Someone please Help! The computer came with Windows XP Professional already installed, so I don't have too much of the Windows CD.

    Hi CheddarBob,

    We recommend to start your computer in safe mode and check if you can connect to windows using the default administrator user account. To do this, try the following steps:
    a. start your computer and press the F8 key to display the advanced startup options.
    Hit and b. Select safe mode enter.
    c. connect on the default administrator user account.

    Note: You can also try to start your computer in "Last known good configuration" and check the result.

    See start the computer in safe mode

    If nothing works, then going to use Windows XP disc to continue to solve the problem.

    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for