Partial auto-refresh of an af:table required after a change

Hi all

I'm doing a "reset" button in some data that I can change into my project. The problem is, when I enter a value in an inputText field, press my reset button, the display of the label correctly, but the af data: table are updated to an incorrect value. It's as if it were an auto-commit to the database.

There's my code:

variables
private String nameEmp; Save the name in another function
Private RichInputText nameEmployee;

the button:
+ < af:commandButton actionListener = "#{EmployeeOperations.resetFields}" +.
text = "Reset".
ID = "cb10".
+ Binding = "#{EmployeeOperations.buttonReset}" +.
+ disabled = "true" / > +.

* Reset earpiece button: *.
+ ' public void resetFields (ActionEvent actionEvent) {+
+ reset(); +
+}+

* the function reset: *.
+ ' public void reset() {+
+ nameEmployee.setValue (nameEmp); +
+ AdfFacesContext.getCurrentInstance () .addPartialTarget (nameEmployee); +
+}+

* Af: table *.
+ < af:table lines = ' #{bindings. " EmployeeCreation1.rangeSize} ' + '.
+ fetchSize = "#{bindings." EmployeeCreation1.rangeSize} ' + '.
+ emptyText = "#{bindings." EmployeeCreation1.viewable? "{'No data to display.': 'Access Denied.'}". +
+ var = 'row' rowBandingInterval = '0 ' +.
+ value = "#{bindings." EmployeeCreation1.collectionModel} ' + '.
+ selectedRowKeys = ' #{bindings. " EmployeeCreation1.collectionModel.selectedRow} ' + '.
+ rowSelection = "single" id = "t1" +
' + partialTriggers =": cb2: cb3: cb5: cb4: cb7: cb8: cb1 +.
+ styleClass = "AFStretchWidth" +.
+ inlineStyle = "height: 120.0px +;
+ selectionListener = "#{EmployeeOperations.selectRow}" +.
+ binding = "#{EmployeeOperations.queryTable}" > +.
+ < af:forEach elements = "#{bindings." EmployeeCreation1.attributeDefs} ' + '.
+ var = 'def' > +.
+ < af:column headerText = "#{bindings." EmployeeCreation1.labels [def.name]} ' + '.
+ sortable = "true" sortProperty = "#{def.name}" +.
+ id = "c1" > +.
+ < af:outputText value = "#{row [def.name]}" id = "ot1" / > + "
+ < / af:column > +.
+ < / af:forEach > +.
+ < / af:table > +.

There are the complete problem explained in pictures:

http://S7.PostImage.org/ve4gifv97/Sans_titre.PNG

If you need more code, I can add a little, I only wrote that I thought essential.

I use Jdev 11.1.1.6

Thanks ;)

Hi, Maxim,.

You'll have better luck posting in the forum JDeveloper & ADF.

In any case, I would try to explain what is happening with your code. When the user clicks on the Reset, the current value in the text box becomes defined the variable binding. Your code only resets the value of the text box, but not the value of the binding variable itself. The table gets updated with the current value on the binding variable.

See if the "" matches your use case. Alternatively, the best way to code this would be to get the current row of the view object and reset the value of the attribute on the VO.

--
BK

Tags: Fusion Middleware

Similar Questions

  • Restart required after domain change, same situation after reboot

    Hello community,

    as you may already assume the position, my question is on the little arrow next to the domain configured in Configuration - & gt; Software - & gt; DNS and routing. If I remember correctly, this means that a reboot is necessary for the value inserted being caught up in the configuration, but why is it always present after the reboot the ESX?

    Thank you in advance.

    BR

    Marburg

    Hello

    Which is in fact just warning you that change of the name or domain will not take effect until the system is restarted. I have this on my hosts.

  • automatic refresh of the secondary table ADF on the main record in the table selection

    Hello
    I use adf table for all master detail.
    My requiremant is as such when I select any master record its coresponding details should auto refresh in the secondary table
    PL. help if you have any solution for it.

    Thanks in advance.

    Ajit

    You use what version of jdeveloper?

    Why you cannot create the component master table table-details directly by drag and drop from the data control palette. If you want to continue cannot achieve this goal, and then set the property autosubmit to the option button in a master table to true. give the name of id in the table msater. And for the details table, set the property partialtrigger to the id of the main table.

    Vikram

  • APEX 4 Auto-refresh in a table

    Hi guys!

    I'm doing my presentation tabular auto refresh every 5 sec. I managed to achieve this for a classic report using

    var must = function() {}

    apex.jQuery('#P105_MISSED_APPTS').trigger ('apexrefresh');

    setTimeout ("has ()", 5000);

    }

    but it does not work for a tabular presentation. I found this http://stackoverflow.com/questions/5583522/apex-tabular-form-automatically-refresh and the solution would be to "select the partial updating of the tabular form '... But I am unable to find this option in the Apex 4.2.3

    No work around for this?

    Thank you very much!

    Mithandir wrote:

    I found this http://stackoverflow.com/questions/5583522/apex-tabular-form-automatically-refresh and the solution would be to "select the partial updating of the tabular form '... But I am unable to find this option in the Apex 4.2.3

    No work around for this?

    go to right click on the region in a table > change attributes report > layout and pagination

    in what allow partial Page Refresh which is fixed to Yes.

    I hope this helps...

    Leave.

  • Partial page refresh eliminates the change table event

    I have a filter region where a user enters search criteria then a button that is defined by a da DA for the button that a refresh on a tabular presentation.

    The partial page refresh works fine, but the events of change on the fields in the form of tables fire. Once the page is submitted that those changes events start pulling again.

    We are on 4.2.2.00.11 and the latest Chrome.

    I tried Firefox and it behaved the same.

    Harry

    You make no mention of how change events when added to the fields in a table.  If they were done by a dynamic action, make sure that the scope of the event for dynamic action is set to "Dynamic" and not "static".

    -Jeff

  • OAF Page works only with the manuscript of java for the auto refresh

    Hi gurus,

    I have a problem with deployment of the page.

    I created a custom page and I have written a java script to make and auto refresh page.

    Please find the code I wrote to processRequest below

    OABodyBean rtBodyBean;

    rtBodyBean = pageContext.getRootWebBean ((OABodyBean));

    JavaS string = "javascript:setTimeout ('window.location.reload ()', 11000);

    / * This method is called to call java script function each time that for

    * refresh the page every 11 seconds * /.

    rtBodyBean .setOnLoad (javaS);

    When I run the page of Jdeveloper's get updated. but once I've deployed the page, and start it from the applications it is not refreshing.

    I tested the page of mozilla and it works fine but when I run IE it is not refreshing.

    Help, please

    Hi guys the problem is resolved.

    The problem was that I was using the old version of Jdeveloper which created oa_html with the older version files and the internet explore search the latest files from version of.js.

    and the code has been changed as below.

    Create a timer

    OABodyBean bodyBean = pageContext.getRootWebBean ((OABodyBean));

    JavaS string = 'JavaScript:setTimeout('window.location=window.location',11000);';

    bodyBean.setOnLoad (javaS);

    end timer

    OALinkBean linkBean;

    linkBean = (OALinkBean) webBean.findIndexedChildRecursive ("PayslipFile"); / * The ID of the column * /.

    BindValue OADataBoundValueViewObject;

    bindValue = new OADataBoundValueViewObject (linkBean, 'Url'); / * VO attribute * /.

    OALinkBean _temp = linkBean;

    / * - Required placeholder for the url column added by vo Extention *.

    linkBean.setAttributeValue (OALinkBean.DESTINATION_ATTR, bindValue);

    OAApplicationModule am;

    AM = pageContext.getApplicationModule (webBean);

    OAViewObject vo;

    VO = (OAViewObject) am.findViewObject ("ViewPayslipVO1");

    vo.clearCache ();

    vo.executeQuery ();

  • Auto refresh without pressing on enter

    I want to know if West a way to make an auto refresh for every word typed in the text field...
    Im trying to do a search in a table..., I create a fild of text to search for the name or words typed in the fild... but I have to press ENTER to select... There's a way to Auto search for each word? without pressing on enter or click a button?

    tnks a lot and sry for my English

    Here's an example - its slow as hell because his polling object, but basically, it's just based on the region draw Carl Backstrom demo. It went directly from the Oracle Application Express Pro book.

    http://Apex.Oracle.com/pls/OTN/f?p=20569:1

    Here's the relevant part:
    JS

    
    

    The region where the report has this in the source:


    The textfield object has this part objects the form element:

    onkeyup="AjaxReportRefresh(this);"
    

    Then the report page 14 essentially what the query:

    select object_type, object_name, status
      from all_objects
    where instr(upper(object_name), upper(nvl(:P14_SEARCH, object_name))) > 0 and
    rownum <= 30
    

    Sorry I don't have time to explain it better - but look at the examples from the region, and it of really the same idea, just to extend.

  • How can I stop auto refreshing a web page in XP immediately after its opening?

    Under XP, once I have access to a new web page Firefox auto update this page once the page is ~ 80 - 90% open - how can I stop this refreshment?

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of your modules is causing your problem (switch to the DEFAULT theme: Tools > Modules > themes).
    See the extensions, themes and problems of hardware acceleration to resolve common troubleshooting Firefox problems and troubleshooting questions with plugins like Flash or Java to solve common Firefox problems

    If this does not work in safe mode and then disable all your extensions and then try to find out who is causing by allowing both the problem reappears.
    You can use 'Disable all add-ons' on the start safe mode window.
    You will need to close and restart Firefox after each change through "file > exit" (on Mac: "Firefox > Quit")

  • How to activate the Explorer to auto-refresh in Windows 7

    I would like to allow Explorer to auto-refresh in Windows 7.

    To my knowledge, auto-refresh depends on the site you visit, not IE itself. You can try to search for AutoRefresher tools/plugins for IE in the web.

  • Worklist BPM using Active data ADF to auto-refresh?

    Hi all

    Jdev: 11.1.1.7.1

    Oracle BPM worklist use ADF Active Data Services to automatically refresh the task list table when a new item is pushed into the queue of the user?

    Just happened to get a stacktrace error and found ADSFilter at the launch of the BPM list.

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.bpel.services.workflow.client.worklist.util.WorkflowFilter.doFilter(WorkflowFilter.java:248)


    Thank you

    Srini

    Hi Srini,

    I do not think that the Oracle BPM Worklist using ADF ADS to automatically refresh the queue of the user (you must manually click the Refresh button).

    Antonis

  • (Classic) Report losing paging when the partial page refresh - APEX feature request

    I have a page with an interactive report and parts of report classic.

    From the user updates, there are many occasions where I need to do a partial page refresh.

    Thanks for the plugin http://www.apex-plugin.com/oracle-apex-plugins/dynamic-action-plugin/refresh-interactive-report-1.0_361.html

    I am able to update my IR, but not my usual report (unless I do a send this entire page) without losing the pagination.

    Request: A dynamic action "Refresh without losing paging" will be part of future versions of apex?

    Now, in the apex 4.2, is there another work around available for classic reports?

    (I use "submit page" now as action, but it's at least a second more slow as a partial update, and because that I need on each update of the user, the second becomes a great addition to the frustration of users).

    Thank you, JP

    Here is the solution for your problem:

    https://Apex.Oracle.com/pls/Apex/f?p=31517:243

    Denes Kubicek

    -------------------------------------------------------------------

    http://deneskubicek.blogspot.com/

    http://www.Apress.com/9781430235125

    https://Apex.Oracle.com/pls/Apex/f?p=31517:1

    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494

    -------------------------------------------------------------------

  • Auto refresh page by click on checkbox

    Greetings!

    I created checkbox on a regional report and I want to when you click on the check box the page goes to State autorefresh (means page auto refresh after 15 seconds). is it possible to do?

    Please drivers

    Attributes page, Javascript, function and declaration of global variables

    var gtReloadPage;
    

    "autorefresh" dynamic action


    • 2 real actions:

      • Run the PLSQL code

        null;
        

        Page items to submit: P1_CHECK_BOX

      • Fire on loading the page: CHECKED

      • Execute javascript code

        alert('ok - setting timeout');
        gtReloadPage = setTimeout("location.reload(true);",8000);
        

      • Fire on loading the page: CHECKED



    • 2 false actions:

      • Run the PLSQL code

        null;
        

        Page items to submit: P1_CHECK_BOX

      • Fire on loading the page: UNCHECKED

      • Execute javascript code

        clearTimeout(gtReloadPage);
        alert("Timeout has been removed!");
        

      • Fire on loading the page: UNCHECKED


    By checking that its value is stored in session state, so that when the recharge page (which is not a shipment) the check box will be activated. The time-out period is stored in a global variable gtReloadPage.
    When the check box is clear, session state is saved again and the timeout is disabled.

  • An interactive report partial Page Refresh

    Hello

    I use apex 4.0.1 and I have a page with an interactive report that displays different data to the user. The user can change the data by clicking on a column that uses a href link to open a page of DML in a modal window. The user can then modify some data in the modal window, tap on save that closes the modal window and uses the process of partial page refresh to refresh the report. (With the help of apex.event.trigger('#SOME_REGION'), 'apexrefresh')).

    If I navigate through the interactive report to show lines 31 to 45 and then click a href to edit a record. Pressing save, the interactive report is updated, but the displayed lines goes back to 1-15.

    How can I get the interactive report for stay showing lines 31 to 45?

    See you soon

    Paul.

    Hello

    You can try to use the undocumented feature

    gReport.pull();
    

    Kind regards
    Jari

  • Auto refreshing Tree control

    Hello

    I need to reload the tree control every 1 minute.

    Reloading is done using the HttpService result

    Can someone give me a sample code for auto-refresh?

    Timer installation code might look like this (in an init() function):

       import flash.utils.Timer;   import flash.events.TimerEvent;
    
       // create a timer which fires every minute (60 * 1000 ms)   var timer:Timer = new Timer( 60*1000 );
    
       // add a listener to the timer   timer.addEventListener( TimerEvent.TIMER, refreshTree );
    
       // start the timer   timer.start();
    

    Then your method refreshTree() could hit the service to get the new XML.

    Let me know if that helps...

    Ben Edwards

  • Auto DataGrid refreshing when the source of the XML file changes.

    I'm new to Flex2 and tried to look everywhere, including this forum, but I don't always have it clear.

    I want to auto-refresh of a DataGrid control that contains an XML data, whenever the XML file changes.
    I read something about data binding, but still the dataGrid control is not data refresh.
    The program should display data in real time all the time.

    I use HTTPService to connect to the XML file.

    I do not know that this is not the first time requested, so if you could me link to a site, or another post, that would be great.
    Thanks for any help,

    ######################

    <? XML version = "1.0" encoding = "utf-8"? >
    < mx:HBox
    ' xmlns:MX =' http://www.adobe.com/2006/mxml '
    Width = '100% '.
    Height = "450".
    creationComplete = "memosSv.send ()" >

    < mx:Script >
    <! [CDATA]
    Import mx.collections.ArrayCollection;
    Import mx.rpc.events.ResultEvent;
    [Bindable]
    private var memos: ArrayCollection collection;
    private function memosHandler (event: ResultEvent): void {}
    Memos = event.result.memos.memo;
    }

    []] >
    < / mx:Script >

    < mx: states >
    < name mx: State = "memoCuerpo" >
    < mx:AddChild position = "lastChild" >
    < mx:Panel width = "342" height = "402" layout = "absolute" title = "Contenido Del Memo" >
    < mx:TextArea
    x = "10" y = "10".
    width = '304 '.
    height = "342".
    cornerRadius = "10".
    Editable = "false".
    Selectable = "false".
    .Contenido Text = "{MEMOS.getItemAt (dgMemos.selectedIndex)}" fontSize = "12" / > "
    < / mx:Panel >
    < / mx:AddChild >
    < / mx: State >
    < / mx: states >

    < mx:HTTPService
    ID = "memosSv".
    ' URL =' http://222.222.221.225/distefanoRIA/memos.xml '
    result = "memosHandler (Event)" "
    showBusyCursor = "true" / >

    < mx:DataGrid
    dataProvider = "{memos}".
    width = "301".
    sortableColumns = "false".
    ID = "dgMemos".
    a click = "currentState ="memoCuerpo"" >
    < mx:columns >
    < mx:DataGridColumn width = "190" id = "columnaTitulo" dataField = "titulo" headerText = "Titulo del Mémo" / >
    < mx:DataGridColumn id = "columnaFecha" dataField = "date" headerText = "Date created" / >
    < / mx:columns >
    < / mx:DataGrid >

    < / mx:HBox >
    ##################

    Here is an example:
    http://www.CFLEX.NET/showFileDetails.cfm?ObjectID=560

    Tracy

Maybe you are looking for