Iterator refreshing after validation

Hello

JDev 11.1.2.4

I have two buttons, which committed one and one that refreshes the iterator. The user adds a row to a wrong position (problem with sorting in memory). In any case as the user clicks the validation, registration is in the database and to the right when I update the iterator. The added row is still in the wrong position. Then, the user clicks the refresh iterator and magically the added line is in the right position. It makes no sense to me, why the update after the validation does not sort the lines directly appeal is sort the rows. When the update is called, I can see the SQL query with good running ORDER BY clause.

{} public void commit (ActionEvent actionEvent)

Super.Commit (); Call the validation on the data control operation

refreshIterator(); Does not sort the lines

}


private void refreshIterator() {}

DCIteratorBinding it = ADFUtils.findIterator ("MyView1Iterator");

it.invalidateCache ();

it.executeQuery ();

IT. Refresh (DCIteratorBinding.RANGESIZE_UNLIMITED);

}

{} public void refreshIterator (ActionEvent actionEvent)

refreshIterator(); Sort the rows

}

Thank you

I fixed it. It was my mistake, I called the wrong actionListener on the page.

Tags: Java

Similar Questions

  • refresh after validation error mess

    Hi, I use JDev 11.1.1.4

    I have the table.
    validation is performed so that the action of validation...
    After the mess of validation error, I want 2 update the table of...
    This exercise takes place at the entity level.
    can any 1 help me in this?

    Vincent,

    Simply put immediately = "true" to your validation button, in order to avoid validations occur on the client side.
    your action event will then be fired...
    even if you're invoking the operation binding then rises the validation error as it is managed at the level of the entity.
    You can then check it with the method hasErrors in my previous post, to see if there is an error.
    If his error, then you can erase the dirty iterator and refresh the table, see my previous post for more details.

    Kind regards
    Sicard.

    Published by: Santosh Vaza July 29, 2011 08:58

  • Windows 7 Ultimate: Explorer is not refreshed after deleting a file, the deleted file still appears in the window, on the manual "Refresh" the file is deleted

    Windows 7 Ultimate: Explorer is not refreshed after deleting a file, the deleted file still appears in the window, on the manual "Refresh" the file is deleted.

    I have also changed the CLASSID HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\ {BDEADE7F-C265-11D0-BCED-00A0C90AB50F} / instance DontRefresh value to 0

    Hello

    (1) have you made changes before the start of this issue?

    (2) what happens when you try to start in safe mode?

    To start your computer in safe mode, you can see the link below:

    http://windowshelp.Microsoft.com/Windows/en-us/help/323ef48f-7b93-4079-a48a-5c58eec904a11033.mspx

    I suggest you to place the computer in a clean boot state and check if the problem is resolved:

    1. sign the computer by using an account with administrator rights.

    2. click on Start, type msconfig.exe in the Start Search box and press ENTER to start The System Configuration utility. If you are prompted for an administrator password or for confirmation, type your password, or click continue.

    3. on the general tab, click Selective startup, and then click on to clear the load startup items check box. (The check box use the file Boot is not available.)

    4. on the Services tab, click to select the hide all Microsoft services check box, and then all disable.

    5. click OKand then click restart.

    6. check if you still have the problem.

    See the link below for more details:

    How to troubleshoot a problem by performing a clean boot in Windows Vista

    http://support.Microsoft.com/kb/929135

    Reset the computer to start as usual after you have finished troubleshooting, follow these steps to reset the computer to start as usual:

    Click Start , type msconfig.exe in the Start Search box and press ENTER.

    1. If you are prompted for an administrator password or for confirmation, type your password or click on continue.

    2. on the general tab, click the Normal startup option, and then click OK.

    3. When you are prompted to restart the computer, click restart.

    If this does not work, try to run a SFC scan. To do a SFC scan follow the steps below:

    Use the System File Checker tool, which is also called scan SFC.

    File system (CFS) auditor verifies that all Vista system files are where they should be as they are by default and not corrupted, changed or damaged.

    1. click on Start, click principally made programs, Accessories, right-click on command promptand select Run as Administrator.

    2. click on continue or provide administrator credentials if prompted.

    3. in the command prompt window , type the following, and then press ENTER:

    sfc/scannow

    4. you should see messages on the screen the following:

    From the analysis of the system. This process will take time.

    Start of the phase of verification of the scanning system.

    % Of verification complete.

    5. once scanning is complete, check to see if the problem you are experiencing is resolved or not.

    Hope the helps of information.

  • What is the use of refresh after Update/Insert in Wizard EO?

    Hello!

    What is the use of refresh after Update/Insert in Wizard EO? When I need it and when not?

    Thank you.

    -These checkboxes are for columns whose values change after that db triggers run.

    BR, 906099

  • How can I get the page to refresh after a certain period of time, so he jumps at the beginning of a page of the site? Its for an exhibition

    Hello

    I'm in an exhibition space where I need to post my Muse site in offline and locally on the desktop. I'm looking for a way for the website to refresh after a certain period of time, so he can come back at the beginning of the page. Can anyone help? Please, I beg you!

    You can try the steps here:

    http://StackOverflow.com/questions/2787679/how-to-reload-page-every-5-second

    http://StackOverflow.com/questions/17886578/refresh-part-of-page-div

    http://crunchify.com/how-to-refresh-div-content-without-reloading-page-using-jQuery-and-AJ ax.

    Thank you

    Sanjit

  • With regard to 'shift indicator + historical column refresh after update.

    Hello

    In our application, we not using any separate column for the change indicator and using LastUpdateDate as a witness of change and history Column(Modified On) as well.
    The problem is that what "Refresh after update" option is not selected for this column, then RowInconsistentException, it's throw on commit for scenario of multi user and when "Refresh after Update" option is selected for this column, then the exception is thrown, but is also not updated. Here is the summary of comments:

    Parameters for the LastUpdateDate column:

    Accomplished only historic column (changed the)
    Single - value update, no exception is thrown.
    Multi User - throws (oracle.jbo.RowInconsistentException) Houston-25014: another user has modified the line containing oracle.jbo.Key [3 primary key]. for the second user.

    History of column (modified on) & property of verified change indicator.
    Single - value update, without exception
    Multi User - throws (oracle.jbo.RowInconsistentException) Houston-25014: another user has modified the line containing oracle.jbo.Key [3 primary key]. for the second user.

    Shift indicator property checked historical column (modified on) & refresh after update option is enabled.
    Single - value not updated, no exception thrown
    Multi User - value not updated, no exception thrown

    What I want, is that in the multi user scenario, the value of LastUpdateColumn must be updated and no exceptions should also be lifted.
    Is this a bug Techstack ADF or am I missing something?

    Thank you
    Lalit.

    Hey Lady,

    "Refresh after update" property on an entity object attribute when selected results in the query clause to RETURN IN. The attribute on which "refresh after update" is selected do not go in the query for the update of the rather this attribute is assigned the value of VOTING.

    Thus, historical column LastUpdatedDate with "refresh on update" set fire request
    UPDATE TABLE_NAME SET COLUMN1 =: 1, UPDATED_BY =: 2, VERSION_NO =: 3 WHERE TABLE_PRIMARY_KEY =: 4 LAST_UPDATED_DT IN RETURN: 5;

    [1061] update link param 1: column1UpdatedValue
    [1062] update link param 2: updatedByValue
    [1063] update link param 3: versionNoValue
    [1064] where the param binding 4: primaryKeyValue

    So in your last scenario when this happens that it only updates the last update which is your indicator of change. This is why even if there are lost updates where multiple users change the values you still get any errors.

    Kind regards
    Harmeet Saini K

  • Question about sort after validation

    Hello!
    I have a view object. I put in "order by clause" some sort (in the tab query this object to display). I created the jsf page and dropped this display as a table object. Also, I gave up a posting as button operation. When I change a value in the line and press validate, does not my 'order by clause' on the view object and I get unsorted data. When I press Commit the second time, performs a "order by clause. Can suggest you how to bypass this "Commit" behavior?
    JDeveloper version 11.1.2.2.0

    I thank the of to get answers.
    Best regards, Stanislav

    Hello

    Perform execution after validation. You can do this by running the two actions in the actionListener validation button. Search this forum to find out how to perform the action of support of bean binding.

    Arun-

  • Character Styles panel not refreshing after adding character styles

    Hello

    Anyone know how to get the Illustrator character Styles Panel to refresh after programmatically adding new styles by calling CreateCharStyle()?

    Currently, the user must save the document and reopen that Illustrator refresh list of character within the user interface style.  This is obviously not ideal.

    You can reproduce this problem in the code example running the snippet text SnippetRunner and then Styles running of the extract from CreateCharacterStyle.  Also successfully, this code example adds a new character style but is unable to update the Panel character within the user interface Styles.


    A note: the AIATECurrentTextFeaturesSuite has an Invalidate() method.  I tried to add this call, but he don't seem to have any impact.

    Any help would be greatly appreciated.

    Thank you

    Peter

    This was a bug in Illustrator since the new text engine was introduced. That I produced it as a beta bug in at least two versions, but no luck in getting it still not fixed

    If you want to give the panels a kick, try the kATEDocumentResourceChangedNotifier with the AINotifierSuite of broadcasting. In my opinion, that's why it update.

  • Meta tags, refresh after

    I'm a newbie, getting ready to load my first site. Works for my client on meta tags. Dreamweaver extension meta tag generator calls for "refresh after." I guess that shortly, but how many seconds normally used for this?

    In addition, reading the other posts, it looks like I can go out with the help of metas only on the index.htm page. Can customize metas for other pages more later (?).

    All advice appreciated.

    Tom

    Here is a link to a good article on Meta tags...

    http://searchenginewatch.com/2167931

    You should have your metatags on each page.

    Lawrence * Adobe Community Expert *.
    www.Cartweaver.com
    All Shopping Cart Application for
    Dreamweaver, available in ASP, PHP and CF

  • I have a problem with a graphic refreshing after its related data provider changes.

    I have a problem with a graphic refreshing after its related data provider changes. After calling the subsetHighLowData.refresh () I expect the table to redraw, but he looks always the same. I even checked the debugger to see if the range had occurred and he had.

    Ideas of friend codes?

    "nikos101" wrote in message
    News:gib6aa$PRR$1@forums. Macromedia.com...
    > I have a problem with a graphic refreshing after its related data provider
    > changes.
    > After calling the subsetHighLowData.refresh () I expect the graph
    > to
    > redraw, but it still looks like the same. I even checked the debugger to see
    > If
    > the slice took place and he had.
    >
    > Any ideas friends coding?
    >
    > subsetHighLowData.source =
    > highLowData.source.slice(slider.values[0],slider.values[1]);

    Just use the removeItemAt collection ArrayCollection, and it must handle the event
    a distribution for you.

    HTH;

    Amy

  • Browser does not refresh page after validation!

    Hello all, I use JDeveloper 11.1.2.3.0

    I have a big problem here. I create a simple page and insert a form, a createInsert button and a button of validation , for example. I run this page and all is well. I create a new record, fill in the form, and then validate. Right now if I press F5 to reload the page, the browser asks me confirmation "to view this page, Firefox must send information that will repeat any action (for example, a search or order confirmation) that was carried out earlier." I do not understand why he should repeat any action, I checked for Sales transactions after the validation operation and transactions are clean. If I leave this page to another and back to the first it works fine, F5 refreshes without problem.

    If I have a table with multiple lines and that I have updated first line for example and then click on the third line and then perform a refresh (Confirm on above message), the third row will get the all the information of the first line...

    Does anyone know how to fix this?

    OK I found the real problem and the solution to it. As I said the reopening of the page brings no problem, but only to hit F5 don't. My buttons 'submit' and 'committed' a 'partialSubmit = false' who must perform a total of pages submitted in this case. Apparently this is not "detected" by the browser when you press F5, although the presentation is made. Change "partialSubmit = true' the buttons did the trick." Tung

  • Table not refreshing after the cancellation of the changes.

    Dear friends Jdev.

    We head to the last stages of the migration of our desktop application for the web app adf based and serious problems come lately.

    We use arrays of the ADF to alter data in the form of bulk... When we made changes in the editable fields and the user cancels them ADF operating tables are not updated. I mean the changed data of the iterator are indicated in the tables and the original data are displayed when I click on the next record in the table or reload the page.

    I'm pasting my code.

    {} public void onCancelListener (ActionEvent actionEvent)

    setDmlMode (null);

    Links DCBindingContainer = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

    DCIteratorBinding pmIter = bindings.findIteratorBinding("AgeingParamsIterator");

    pmIter.getCurrentRow (.refresh (Row.REFRESH_UNDO_CHANGES));

    pmIter.executeQuery ();

    AdfFacesContext adfctx = AdfFacesContext.getCurrentInstance ();

    adfctx.addPartialTarget (tblAgeing);

    adfctx.addPartialTarget (socModule);

    }

    my table is 'tblAgeing' and the component inside the table, I'm editing is "socModule".

    for the iterator, I set CacheResult to false.

    I wonder even after execution of the iterator again why the data is not updated?

    Ashraf

    Have you tried tag?

  • Run a view after validation of the database

    Hi all

    I am a beginner with ADF 11 g.

    I have a database view that makes some calculation based on the tables in the db. I have let down on the top of my template. Using this model, I create other pages with tables, and now I want to rerun this view after the transaction to commit on any table in my application. How can I do?

    Any help will be appreciated.

    Kind regards
    Wojtek.

    Hello

    a way to handle this use case would be to define a managed bean and create a JSF component binding (using the table binding property) for the table. To do this, you go to the table in the model, select the binding of the table property, then click the right arrow. Choose Edit from the context menu, and then create a managed bean (for example you named the managed bean "templateBean" and the bean class name is "TemplateBean") and a name for the set/get methods that are created and referenced by EL (say that you named the 'templateTable1' table property). This creates a bean managed in the config.xml file by default adfc, this bean is in the scope of the request.

    Create a method in the same managed bean

    public void refreshTemplateTable(){
    
      RichTable table = this.getTemplateTable1();
      CollectionModel model = (CollectionModel) table.getValue();
      JUCtrlHierBinding adfTableBinding = (JUCtrlHierBinding) table.getWrappedData();
      //re-execute the View Object (iterator) displaying in the table in the template
      DCIteratorBinding iter = adfTableBinding.getDCIteratorBinding();
      iter.execute();
      //PPR the table in the UI
      AdfFacesContext.getCurrentInstance().addPartialTarget(table);
    
    }
    

    Now, whenever you need to update the table in the model - for example when a user validates data - you dial the following code

          FacesContext fctx = FacesContext.getCurrentInstance();
          ELContext elctx = fctx.getELContext();
          ExpressionFactory efactory = fctx.getApplication().getExpressionFactory();
          //get access to the managed bean that is referenced by the table in the template
          ValueExpression ve = efactory.createValueExpression(elctx, "#{templateBean}", Object.class);
          TemplateBean templateBean = (TemplateBean) ve.getValue(elctx);
          //re-execute the query for the table in the template
          templateBean.refreshTemplateTable();
    

    This solution gives you explicit control when the iterator must be refreshed (which can also be useful in other cases of use)

    Note: If the template is used on stubborn workflows, so make sure that you explicitly create the definition of bean managed in the configuration of the workflow of the stubborn workflow

    Frank

  • Purchased in UK/Oz apps does not refresh after changing store in the USA.

    I was in the United Kingdom and Oz and had a UK or OZ account and bought apps - they updated very well (although never automatically as promised).

    Now, I moved to the United States and updated my account to USA store.

    The apps I bought previously refreshes (much).

    If I click on an app in the store I, iTunes think I haven't it and install it.

    Does anyone have the same problem and the solution? I fed it to Apple.

    On a latest operating system Mac and iTunes.

    Before changing countries make sure that you have downloaded and saved all your previous country store purchases.  You will not be able to re - download it again once you change of country and it won't be easy to change the country to another once you lose your mode of payment for the old country (such as a waiting period).  As long as you have on your computer you'll be fine.  You also will be able to update all the apps that you have purchased.

    Change your iTunes Store country or region - https://support.apple.com/HT201389 - "After changing the country of your account, you won't see what you bought the previous country store in the purchase section."

  • Satellite L50D-B-147 - refresh after no Wi - Fi connection

    After doing a refresh of the habit of my wifi doesn't connect or... router cable works as my laptop marry connects via wifi... help... I think Ive tried everything

    What do you mean by "Refresh"?

Maybe you are looking for