How to refresh the region after inserting data by dynamic Action?

Hi friends

I use APEX 4.1. I created a form master detail and wrote an insert command in dynamic Action through which the data is inserted into the secondary table. I want to refresh the detail region as data is inserted and data must demonstrate in the detail area.

How can I do this? Help, please. I will be grateful.

Kind regards.

Hi Kam_oracle_apex,

Add real action to the existing dynamic action

Action: update

selection type: region

Region: Detail (the region that you want to refresh).

Kind regards

Jitendra

Tags: Database

Similar Questions

  • Refresh the region in a table using dynamic action

    Hello

    I'm stumped on this scenario please advise. I have a dynamic action a button that when clicked fires real action pl/sql that will add a member to a collection, it works as expected, but the second real action on the same button will refresh the tabular form/report region. This isn't refreshing my form/report.

    To know that if we can indeed I created a report on the same page, based on the same point of view and dynamic action works.

    So why the dynamic action of refreshing working on my new report and not on the form of tables. I found a tabular presentation just a report of updateble.

    I use apex 4.1.0.00.32

    Help, please.

    Right-click of the tabular form > click attributes report > go to layout and pagination > set yes partial page refresh

  • How to generate the script to insert data tables present in a

    How to generate the script to insert data from one table in an entire schema under environment sqlplus




    with toads it please help me please!

    905310 wrote:
    How to generate the script to insert data from one table in an entire schema under environment sqlplus
    with toads it please help me please!

    The correct method by using the pump of the database or import/export or unload the data in CSV format for loading using SQL * Loader.

    Generate instructions insert with literals is very bad choices - the bind variable is missing. It will be quite slow because many other CPU cycles are spend on hard analysis. The shared pool will become fragmented. This can cause errors of memory for other applications when they attempt to analyze SQLs for cursors.

  • How to refresh the table after changing model

    12.1.3 JDEV

    My Table of the ADF is limited to a list of dataRows in my SampleDataModel class.

    My button is limited to a method of createDataRow of SampleDataModel class.

    Then click the button, a new item is added to the list of dataRows.

    There is a partial trigger button on the table.

    I expect after the button clicked, the table is updated with the newly added row.

    But what I see is: new dataRow is added to the list of dataRows and the flashes of the table, but it does not show the line.

    Anything I missed? Thank you.

    < af:toolbar id = 't3' >

    < af:button actionListener = "#{bindings.createDataRow.execute}" = "createDataRow" text "

    Disabled = "#{!}" Bindings.createDataRow.Enabled}"id ="b7"partialSubmit ="true"/ >

    < / af:toolbar >

    < af:table value = "#{bindings.dataRows.collectionModel}" var = 'row' "

    Rows = "#{Bindings.DataRows.rangeSize} '"

    emptyText = "#{bindings.dataRows.viewable?" "{'No data to display.': 'Access Denied.'}".

    rowBandingInterval = '0 '.

    selectedRowKeys = "#{bindings.dataRows.collectionModel.selectedRow} '"

    selectionListener = "#{bindings.dataRows.collectionModel.makeCurrent} '"

    rowSelection = 'unique' fetchSize = "#{bindings.dataRows.rangeSize}" id = "t1" "

    "partialTriggers =": b7 "editingMode ="clickToEdit">

    How you have implemented the createDataRow method to add the line?

    A table using an iterator in the pagedef, you have updated this iterator?

    Timo

  • How to refresh the Listview after adding a new item

    Hello

    I have the following list:

     ListView {
                                        id: channelsList
    
                                        dataModel: categoryModel
    
                                        listItemComponents: [
                                            ListItemComponent {
                                                type: "item"
                                                StandardListItem {
                                                    title: ListItemData.name // Channel name
                                                    imageSource: ListItemData.imageFile
                                                    status: ListItemData.id
    
                                                    id: channelItemId
    
                                                    contextActions: [
                                                        ActionSet {
                                                            //title: contentView.title
                                                            ActionItem {
                                                                title: "Add to Favorites"
    
                                                                onTriggered: {
                                                                    console.log(ListItemData.id + " will be added to the Favorites");
                                                                    //categoryModel.addFavorite(ListItemData.name, ListItemData.imageFile, ListItemData.id);
                                                                    channelItemId.ListItem.view.viewTriggered(ListItemData.name, ListItemData.imageFile, ListItemData.id);
                                                                }
    
                                                            }
    
                                                        }
                                                    ]
                                                }
                                            }
                                        ]
    
                                        onTriggered: {
                                                var chosenChannel = dataModel.data(indexPath);
                                                console.log("indexPath: " + indexPath);
    
                                                var playingPage = playpagedef.createObject();
    
                                                playingPage.chname = chosenChannel.name;
                                                playingPage.cid = chosenChannel.id;
                                                playingPage.init();
    
                                                Qt.nav.push(playingPage);
    
                                        }
    
                                        attachedObjects: [
                                            // The bucket categoryModel is a non visible object so it is set up as an attached object.
                                            // The categoryModel itself is a QListDataModel defined in categorymodel.h and registered
                                            // as a type in the creation of the application.
                                            CategoryModel {
                                                id: categoryModel
                                                // The path to the JSON file with initial data, this file will be moved to
                                                // the data folder on the first launch of the application (in order to
                                                // be able to get write access).
                                                jsonAssetPath: "models/channels.json"
    
                                                // The filtering is initially set to "Category 1" to show category channels
                                                filter: label.text
                                            },
    
                                            ComponentDefinition {
                                                id: playpagedef
                                                source: "PlayingPage.qml"
                                            }
                                        ]
    
                                        function viewTriggered(name, imageFile, id)
                                        {
                                            categoryModel.addFavorite(name, imageFile, id);
                                            categoryModel.clear();
                                        }
    
                                    }
    

    and the categoeymodel.h is as follows:

    #ifndef _CATEGORYMODEL_H
    #define _CATEGORYMODEL_H
    
    #include 
    #include 
    #include 
    #include 
    
    using namespace bb::data;
    
    // The category categoryModel is based on the QListDataModel template, which in turn
    // implements the abstract DataModel class.
    typedef bb::cascades::QListDataModel CategoryListModel;
    
    /* CategoryModel Description:
     *
     * CategoryModel class for the Category List application, the data categoryModel
     * reads and write from a JSON file that keeps all item data
     * for the list.
     */
    class CategoryModel: public CategoryListModel
    {
    Q_OBJECT
    
    Q_PROPERTY(QString filter READ filter WRITE setFilter NOTIFY filterChanged)
    
    Q_PROPERTY(QString jsonAssetPath READ jsonAssetPath WRITE setJsonAssetPath NOTIFY jsonAssetPathChanged)
    
    public:
        /**
         * Constructor that sets up the recipe
         * @param parent The parent Container, if not specified, 0 is used
         */
        CategoryModel(QObject *parent = 0);
        ~CategoryModel();
    
        QString filter();
    
        void setFilter(const QString filter);
    
        QString jsonAssetPath();
    
        void setJsonAssetPath(const QString jsonAssetPath);
    
    signals:
    
        void filterChanged(QString filter);
    
        void jsonAssetPathChanged(QString jsonAssetPath);
    
    public slots:
        void addFavorite(QString channelName, QString channelImageFile, int channelId);
    
    private:
        bool jsonToDataFolder();
    
        // Property variables
        QString mFilter;
        QString mJsonAssetsPath;
        QString mJsonDataPath;
    
        // A list containing all data read from the JSON file
        QVariantList mData;
    
        //Invocation variables
        bb::cascades::Invocation* mInvocation;
    };
    
    #endif // ifndef _CATEGORYMODEL_H
    

    My problem is that the listview is not get automatically updated when a new item is added to the datamodel (a favorite channel is added). I have to exit the application and restart to see the updated list.

    categoryModel.addFavorite(name, imageFile, id);
    categoryModel.clear();
    

    categoryModel.clear ();

    does not work. I get:

    Asset: / / / hand. QML:180: TypeError: result of expression 'categoryModel.clear' [undefined] is not a function.

    I would like to know how to achieve using approach "more correct".

    QListDataModel does not expose its internal storage directly. It is possible to reconstruct the map by performing an iteration in a loop (with the help of data() and size() methods), the dataModel entries:

    http://developer.BlackBerry.com/Cascades/reference/bb__cascades__qlistdatamodel.html

    but I don't see how this could help. If the filtered data is changed, it must be merged with the original sort data.

    Why the original approach has not worked?

    I could not understand from the description appearance of the interface user, please post a screenshot if possible.

  • How to refresh the region inner taskflow

    Hi all

    I use the nested structure taskflow.

    I have an external link in taskflow and when I click on the link, I would like to refresh/restart inner taskflow.

    I try to use partialTrigger. but it's not ' Refresh/restart.

    is there another way to achieve this scenario?

    With respect,
    Wai Phyo

    If you have tried partialRefresh, you should have something like
    RichRegion someRegion;

    Just call someRegion.refresh (FacesContext.getCurrentInstance ());

  • Refresh the screen after the removal of the UI elements

    Hello world

    I create a screen in which I use listfield to display data online as a way each line has a button Delete. I want to know how to refresh the screen after the deletion of data or a row of the screen?

    Because you actually using a HorizontalFieldManager to display each line, to remove it, you must remove the information in the underlying data store and then delete it HFM of his Manager.  That's it, removing the HFM will refresh the screen.

  • How to refresh the report region change which column of report selection list

    Hello
    I worked with apex 4.2 and I create a classic report with list (named loved) select a column in the list change in report, update the table with the new value via JavaScript (change) call and woke up very well, and I change the color of the line was updated to make it different from the other lines now I want to update to the report after doing update without submitting the page to show the new color of line update.
    I called javascript:apex.submit() in the update function, but

    My Question
    1. How do I refresh the report after change report column list without sending page
    2-can we enter column name selection list report to submit the Page to refresh the report area


    Thank you
    Ahmed

    See my answer above!

    Here's what I did:

    • Created two hidden page items

    • Created a dynamic action on the page with three real actions. (1) set the item values page. (2) to execute code to update the plsql table. (3) update the region report

    Thank you
    Vikram

  • Dynamic action to refresh the region-&gt; see the message to user

    Hello

    I have a page in the apex 4.2.2.

    In this page, I have an interactive report and a filter sets, users can choose.

    When users choose one of the filters, I implemented a dynamic action to refresh the interactive report region, so it should refresh the data being shown without submitting it.

    So far so good... but... when the region is refreshing there is point 'charge of circle' which displays and allows the user to know he is done on the page. But this icon is not so obvious.

    What I want is to add a message, for example to display a region, which showed a message like "being the updating of the report, please wait" (something like that).

    I tried to insert in my dynamic action, as 1st action, to SHOW this area and as the last action to HIDE. But nothing is done, the region is never shown.

    How can I perform this task? All I need is to be able to display a message, for the duration of the dynamic action, to inform the user that he or she must wait until the task is completed.

    All real common actions have been reported to "wait for result", if I didn't get this wrong, it means that he expects the previous real action remaining to be done, in order to trigger the next... This should show the region and then hide it, but it does not work.

    Can someone help me with this? Maybe give an idea?

    Kind regards.

    You can actually go several routes with a solution for this. A refresh of the IR will start forward and after updating the events that you can hang on to dynamic actions or jQuery, so you can show something at the start of the update and then hide it again. And since you can do all this in jQuery you could easily hold it in a javascript file and attach it to every page of the ir. This is probably the cleanest solution and more independable.

    Another way is to use the already existing waiting icon and play with his presentation a little. You know, that you are talking about loading icon. You can change this to something much better with minimal effort!

    Example:

    Run when the page loads, to execute javascript code:

    $("#apexir_LOADER").append("
    Please wait. Refreshing the data.
    ");

    Add this css to inline css in the page:

    span#apexir_LOADER {
    display: block;
    width: 150px;
    text-align: center;
    background-color: white;
    border-style: solid;
    border-radius: 5px;
    border-width: 2px;
    top: 20%;
    }
    

    It'll make a little white box with black borders rounded around the loading icon and put a text below.

    You can get the html code to add a bit more generic, or you can raise some html of the page if necessary. You can put it in a dynamic action on the load, put in a js file, or whatever. The css can be put in a page template or a css file.

    It's only less independable hanging in front or after updating because we are taking advantage of the system in place, which means that maybe he could change in the future - but this is hardly on the same scale as the 'hacking' the ir for example javascript.

  • How to clear the old cumulative game data in the collection of solitaire Microsoft - Windows 8

    How to clear the old cumulative game data in the collection of solitaire weird... is to say total games, victories, % etc...

    Hello

    Microsoft Solitaire Collection is a combination of card games and he has not a good reset option for all games.

    Some games have the New Deal option when you right click to start a new game.

    However, on some games have the ability to reset the cumulative Scores. Follow the instructions and check if this.

    (a) click here to open the game.

    (b) press on Windows key + C.

    (c) click settings.

    (d) click on Game Options.

    (e) whether specific game and click reset a cumulative Score .

    Let us know the status of the issue. If you need help, please after return. We will be happy to help you.

  • How to refresh the result iterator to uncommitted changes

    Hello

    JDev 11.1.2.4

    I have a VO with a VC. In my AM I exposed 2 VO:

    VO1 = VO without the VC

    VO2 = VO with the VC

    I have in my user interface:

    VO1-based array in which I can add, update, or delete rows.

    a button that shows a popup that contains a table based on VO2

    Scenario: update

    I make a modification on an existing line. The change is made on automatic transmission of true - field.

    I click on the button

    The table on the shortcut menu shows the changed value

    Ok

    Scenario 1: create

    I have create a new line. Fields to create the new line are all send auto = true

    I click on the button

    The table on the shortcut menu does not show the new line. It shows only the last State (original + changed lines lines)

    KO

    Scenario 1: remove

    I delete an existing line.

    I click on the button

    The table on the shortcut menu does not show the deleted row. It shows only the last State (original + changed lines lines)

    KO

    Q: what can I do, for the table on the shortcut menu shows the current status (non-validated data). I tried to refresh the iterator after a creation or deletion, but I still get the old data?

    DCIteratorBinding myIterator = ADFUtils.findIterator (iterator);
    myIterator.executeQuery ();
    myIterator.refresh (DCIteratorBinding.RANGESIZE_UNLIMITED);

    Thank you

    It depends on the vo and the Victoria Cross. The two vo must rest on the same area of occurrence. The Victoria Cross should have mode query so (memory and db) and the Victoria Cross on the second vo should be in a way that the new line would be part of the result set if given th could be read from db.

    Timo

  • Refresh the page after the fires of fileDownloadActionListener

    Hello experts!

    I use jDeveloper 11.1.1.7.0

    I have a table in a fragment of page jsfff with a button to upload the files that are shown in this table. After downloading the files, I need update the table.

    Downloading files when the user presses the button (partialsubmit = false) I invoke another button hidden (partialsubmit = false) which has af:fileDownloadActionListener that performs the action. (This is because I am doing other activities before you download files)

    It works fine, but I need to refresh the page (among others) after downloading the files. How can I do this?

    I tried to update the table of

    -method fileDownloadActionListener

    -Method of hidden commandButton action

    -The partial trigger table button

    But I could not update the table with any of these

    How can I refresh the table after uploading the files?

    Yes.

    I'm looking at the source code for FileDownloadActionListener.processAction ().

    After invoking the method property, he calls FacesContext.responseComplete (); which ignores the render response phase.

    And so you can not rynefall page at all.

    An in-depth, that you can do, is to use af:poll, IE, activate the survey by clicking on the button visible (in javaScript)

    Here you can see how to start the survey by javaScript:

    GEBS | Oracle Fusion Middleware 11g ADF progress indicator

    (search handlePoll )

    In the pollListener, you can refresh the page AND also disable survey by itself (by calling setInterval(-1))

    After questioning to stop, you must refresh the survey component, with

    AdfFacesContext.getCurrentInstance (.addPartialTarget(...your_poll...whatever));

  • Create the trigger after insert

    Hello

    I would like to ask how to create a trigger after insert on a table. Basically, what I wanted to do are when an insert to table1 it will insert the records to table2. But the problem is that folders that will be inserted in the new tables are entries/fields, who lived in NEW York City (on table of ld)

    after insertion, I wanted to add another field in table2 as status


    create table table1)

    Name varchar2 (55),
    City varchar2 (55)

    );

    create (table2)

    Name varchar2 (55)
    status int (1)
    )

    Hope you could help me.

    Thank you

    Best regards

    antok1015 wrote:
    Hello

    I would like to ask how to create a trigger after insert on a table. Basically, what I wanted to do are when an insert to table1 it will insert the records to table2.

    It's easy...

    SQL> create table table1(
      2    Name varchar2(55),
      3    City varchar2(55)
      4  );
    
    Table created.
    
    SQL>
    SQL> create table table2 (
      2    Name varchar2(55),
      3    status number(1)
      4  );
    
    Table created.
    
    SQL>
    SQL> create or replace trigger trg_tbl1 after insert on table1
      2  for each row
      3  begin
      4    insert into table2 values (:new.name, 1);
      5  end;
      6  /
    
    Trigger created.
    
    SQL> insert into table1 values ('Fred','Bob');
    
    1 row created.
    
    SQL> select * from table2;
    
    NAME                                                        STATUS
    ------------------------------------------------------- ----------
    Fred                                                             1
    
    SQL>
    

    But the problem is that folders that will be inserted in the new tables are entries/fields, who lived in NEW York City (on table of ld)

    after insertion, I wanted to add another field in table2 as status

    This is not sensible. Please explain what you mean.

  • How to refresh the entire screen?

    Hello

    Please can someone tell me how to refresh the entire screen?

    Refresh here means clear all fields and show empty fields.

    Thank you

    Afonso Tyagi

    Hey,.

    as I usually do, is to create a separate function that manually assigns to each field and property reverts to its original state. There is not a function that does it for you. You must create your own. hope that helps good luck!

  • How to refresh the listview that is in another function

    Hi all,
    I have a problem with a refreshing of the listview.

    I have 3 features in the application, let's say 'feature A' 'feature B' and 'C'.

    I also have 2 tables and sqlite db (local) .and 1 view their names are 'A table', 'table B' and 'see C.

    View C is like this:

    create view C as

    Select a.oneColumn

    Table has a

    Union

    Select b.oneColumn

    Table B b;

    Each function has the main amx.page and each of them has listview values from the (local) sqlite DB.


    According to A, I can add new row to the database (line update or delete) and the list is updated with the help of the "ProviderChangeSupport".

    Same thing happens in the function (B) everything is ok so far. But according to C, there also listview. When I delete operation or update functionality or B.

    the listview in C function is not updated.


    I hope you all can easily understand the problem and help me with the solution. Oracle Mobile Application Framework.

    Hello

    you need to reset a feature - navigating it--you want to ensure the functionality and so refreshes the view. The change of supplier support works in the ClassLoader (feature film) it is issued to. You can use a listener to refresh the controls collection of data used by a list, but it does not work automatically.

    Frank

Maybe you are looking for

  • iPhoto for pictures

    MacOS Sierra will update my photos from iphoto? I always use the iphoto on my current iMac. The last update from Apple (pre Mac OS) had problems with photos do not import not titles and records resulting in loss sevice... years in folders... and phot

  • I forgot the code open screen

    I was setting this up. But it turned back on it and forgot the code, I chose to open the form. Help!

  • upgrade important downloads failing

    ' error ' b100 - something "is not available on the list in the Help window. Why so much of the important downloads fail?

  • Flight Simulator 2000 works only on Windows 7, need help!

    I installed FS 2000, this FS 2000 Professional Edition used to work under Windows Millennium Edition. It istals fine but when I try to run it, it comes with the original window and try to read the disc 1 (inserted in the dvd player) and then sits the

  • Boot &amp; Firmware SG300-28

    I received a new SG300-28 with 1.2.9.44 FW and Boot version 1.1.0.6.  A couple of weeks, I got a SG500-28 and I udated on Sx500_FW_1.3.0.62 ros and Sx500_BOOT_1.3.0.03 rfb.  I checked for the current version for the SG300-28 and I downloaded Sx300_FW