Jdev 12.1.3: Refresh a VO summary when value changes

Hello experts!

I have a page with a table, and below jspx, a form with fields based on a query with sum() to summarize the data in the table.

The user wants to change the values in the table and the summary below get updated without no commit.


I tried to link the shape of a bean and run:

AdfFacesContext.getCurrentInstance () .addPartialTarget (this.getFormName ());

In a valueChangeListener with autosubmit = true assigned to the inputText of the table, but it does not work.

Thank you very much in advance!

Jose.

Hello

Thanks to all your comments, now I have exactly how to achieve my goal:

(1) forget :-) the VO with the select amount

(2) create transitional attribute with the summary using groovy as explained Alejandro

(3) create dependencies in the transient area are pointing to the base field. (Change = warn)

(4) add autoSubmit = true in the fields of the table that should refresh the summatory

Thank you!

Tags: Java

Similar Questions

  • Windows security for the family and parental controls not update/refresh when you change curfews, no matter what I do

    I have windows 8 and 7, two different computers. When I change a curfew on the WFS Web site, our computers do not receive the update and do not allow access monitored accounts. On the 7 machine, I go to Windows Live Family Safety Filter, hit the icon refresh at the top right and a popup says I already have the last parameters, or FS settings have been updated. but in no case can the user log on. When the monitored user tries to connect, a message says "your account has time restrictions... ».  What's wrong???

    Here are the parameters:

    Hi Peter,.

    Welcome to the Microsoft Community forums.

     
    I understand when you do the curfew change on the site Web WFS, computers
    do not get the update and not allow access to the monitored accounts as you have
    two computer windows 7 and 8.

    Please follow the response of the Rudi on July 13, 2012.

    You can also go through the link on the safety of the family
     
    Keep us updated on the results.
  • refresh the html region when the selection list or selected ir line chang

    Apex 4.2

    Hello

    I made a simple page for test actions.

    I have

    -an interactive report and a selection in my first area list.

    -a field of text (P5000_indid) to keep the selected indid

    -region of html where the source is:

    DECLARE

    CURSOR c_ind IS

    SELECT indid, ind, industry

    IND

    WHEN indid as: P5000_INDID;

    BEGIN

    FOR a c_ind IN LOOP

    HTP.p ("< style b =" white-space: nowrap;) "> Indid: ' |" a.indid |' ---> ' || a.Industry: '< /b > < br / >');

    END LOOP;

    END;

    I'm sorry, but I m a bit confused with all the things I read before and do not know what is possible or not and what is the best practice to:

    1. select in the selectList (is it also possible to retrieve the selected (highlighted) or line in the IR)

    2 update the P5000_INDID

    3. refresh the html box according to the value of P5000_INDID (I was able to refresh an IR according to value, but there was the possibility to say what variable to present, but I have no

    see for the region of html)

    I m doing this test, because in the end, I would like to be able to regresh a small chart according to the selected line of the IR.  Do you think that it is possible to s?

    Sorry for my newbie question

    Thanks for your help

    L.

    OK, I finally found everything that I needed,

    You can test it on:

    http://Apex.Oracle.com/pls/Apex/f?p=53793

    Demo/demo

    the content of the output area now is the result of an application process, according to a parameter.

    It is called with javascript onChange and response replace the contents of the region

    and you can also see that I can now select a line and show it by changing the color of the line, and then update the output.

    and when a line is selected, it resets the selection on the selectList to avoid triggering the event on the selection list.

  • Command to refresh a calculated field when you select an option from the drop-down list box

    When my form user selects an option in a drop-down list box, the value in the field (in this case, Total) I would like to update, but it isn't.

    A radio button option box makes the Total-development field to automatic update when the user clicks on the radio button. But the drop-down list box is not updated Total (without clicking away from the field). I would like to add a command in the Combo Box to refresh the Total field when you selected the option to drop-down list box.

    Someone at - it a code (Javascript?) to get there.

    Thank you very much.

    You don't need a script, simply select the 'Value selected to validate immediately' checkbox on the Options tab of the dialog list box drop-down list box field properties.

  • 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

  • Problem refreshing the page parent when a modal window is closed.

    I have the page that opens a modal window of a column in report link. In the modal window, I want to be able to make my changes and press a button so that the modal window is closed and the parent page is refreshed to display the details changed in the report. In Firefox all works well, but IE I get the error message 'Window.opener.location is null or not an object ".

    When I comment out window.opener.location.href = window.opener.location.href; the modal window is closed without error, but I want to refresh the parent page with the changes in the modal window.

    I'm afraid that my java script is very limited (the code is inspired other peoples examples.)

    Page parent I call this function of a column in report link to display a modal window. Sets the hidden field of the SAVE_STATUS to the landing page of "n".

    function modalWin (pshow)
    {
    var url;
    URL ='f? p = & APP_ID.: "+ pshow +": & SESSION. : SAVE_STATUS: NO;

    If (window.showModalDialog) {}
    window.showModalDialog (url, "name", "dialogWidth:650px; dialogHeight:700px"); }
    else {}
    Window.Open (url, "name", "height = 700, width = 650, toolbar = no, directories = no, status = no, menubar = no, scrollbars = no, resizable = no, modal = yes");
    }
    }



    Landing page (modal window)

    Header HTML.
    Function closeWindow should refresh the parent page and close the modal window.

    < base target = _self >
    < script language = "JavaScript" type = "text/javascript" >
    <!--

    htmldb_delete_message = "'DELETE_CONFIRM_MSG" ";

    function closeWindow() {}
    If (document.getElementById("SAVE_STATUS").value == 'Y')
    {
    Window.opener.Location.href = Window.opener.Location.href;
    Window.Close ();
    }
    }
    ->
    < /script >


    Attribute Html Body .
    onLoad = "closeWindow (); »


    P_UPDATE_DATE process called of the button changes. Games of the SAVE_STATUS flag 'Y' for the onload in the html body.

    UPDATE event
    SET event_date =: P5001_EVENT_DATE
    WHERE contract_reference =: P330_EVD_CONTRACT
    AND event_number =: P330_EVD_EVENT_NUMBER;

    : SAVE_STATUS: = 'Y ';


    Thank you in advance, I'll take a look when back in the office on Monday.

    Pete has soon

    Hi Pete,.

    In my view, that the refreshment of your page should happen on your parent Page. You can also check the JQueryUI there a beautiful modal dialog Widget.

    --
    Chris

  • 11.1.1.6 - unexpected behavior Jdev with POJO DC / refreshing region

    Hi all
    We are facing a weird problem when updating from one region.

    We have refreshIfNeeded for connection of the region on a page so that one of the changes in the parameters of entry... the fact taskflow gets refreshed.
    The problem is that the iterator that is essentially a POJO data control method implements cache values.

    I tried different things to counter this behavior-
    (1) I tried to put some RefreshCondition #{! adfFacesContext.postback} for the iterator that has not helped.
    (2) used an invokeAction in the same meaning, which did not help also.
    (3) we have added a default activity to the taskFlow that calls the method to the iterator... then also caching is present.

    I know that if I put cacheResults = false because the iterator, it will work, but it maybe to rerun the query for the table for each application.

    According to the documentation -
    http://docs.oracle.com/cd/E21764_01/web.1111/b31974/taskflows_regions.htm#CHDEIFBB
    example 17-8 says:
    You don't need to refresh an ADF area to refresh the data within the region of the ADF controls. During the cycle of the ADF, the events of refresh by saying updated iterators will be propagated to the container of the current page of the region of the ADF link.

    We found a post about what we are asked to explicitly re-run the query TF... is there not another way of declaritive or shoudn't this work as explained in the documentation?
    http://naive-amseth.blogspot.in/2011/07/force-iterator-refresh-with-EJB-Web.html

    Published by: Sudipto detrilles on 6 March 2013 20:12

    I stumbled on this post once again and thought that update with the real reason for the same.

    This is because the way in which ADF work with ADF BC as the business services layer and the appearance of the data that supports the interface model user of the Oracle documentation. Other non - commercial services ADF BC donot support implemented this model and we need to refresh the iterators by programming or clear cache etc. in order to take into account the most recent data when using POJO / WS Datacontrols etc.

  • 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

  • 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?

  • dialog box closed = &gt; refresh LOV = &gt; set the new value

    Hello

    I'm really struggling with the following problem. I want my users to pick up existing customers or create a new if it does not exist. So I have a form (P1), a form is LOV with existing customers and a "Create new customer" button next to the LOV that calls the form of the modal dialog box (P2), where the new customer can be added.

    In the P2 process customer's line is an option to return an item, so I return it to P2_CUSTOMER_ID (which is my primary key element). On P1, I created the dynamic action:

    Event: Dialog closed

    Selection type: button

    Button: AddCompany

    and there are 2 real actions.

    (1) item discount P1_CUSTOMERS_LOV

    (2) set

    Type: Dialog box return

    RMA: P2_CUSTOMER_ID

    Affected items = > product (s): P1_CUSTOMERS_LOV

    LOV customers is refreshed correctly but the value is not set. What is even more surprising, it's that if I "insert" another action between these two (run code alert javascript ("added customer");), the new value is set correctly as planned.

    I really have no idea of what Miss me, and any help would be highly appreciated.

    Kind regards

    Pavel

    Pavel,

    I could make it work with a Select list. See once more your example. There is a dynamic onload action using

    $("#P2_CUSTOMER_ID").bind ("apexafterrefresh", function() {}

    $ ('#P2_CUSTOMER_ID') .val ($ (' #P2_CUSTOMER_ID_H ') .val ());

    });

    then, who is only triggered if the refresh of the selection list is completed.

    Denes Kubicek

  • APEX 5 - page partial refresh of specific IR refreshing all IR regions when they are in a "main" region

    I created a page with several interactive reports. The main report at the top is a report of "companies". All other reports are partial reports (addresses, Contacts, etc.). I have a page that I put the value with javascript (company code) by clicking on a line from 'Companies' parent report. I have a dynamic action on the change of the page element, which then updates from subreports in society, they have chosen. When interactive reports are not in a region, it works very well. When I try to put them all inside a region main standard HTML page/visual layout purposes, they do not work and looks like it is refreshing to all reports (including the main ' firms' one). When I separate everything out of the main area, they all work very well yet. All subreports have a condition in the SQL query to limit the rows in the place where company_id =: P2_COMPANY_ID. The ir companies, does not have this condition. Right now, I just them removed from the main area, but I wonder if it is a bug.

    Hi Jen,

    We agree it shouldn't / desired behavior and filed bug #21207953 for what should be fixed in the first series of patch 5.0.1.

    During this time, John has proposed the following solution for me, which just is to reorganize a little, your regions such as the IRs child are not direct descendants of the parent IR so maybe you have something like this:

    IRR1

    IRR2

    IRR3

    That could be changed to:

    R1

    IRR1

    R2

    IRR2

    IRR3

    Where R1 and R2 use models of simple region (for example 'white with attributes' the universal theme) which show nothing visually on your page, and because they are no longer the direct descendants of level higher IRR, prevent you unwanted refreshment.

    Kind regards

    Anthony.

  • 11.1.2.3 JDEV get the selected value of RichSelectOneChoice at the bean (but not in the value change listener)

    We have implemented our own listener of downloading files to export the table data in Excel. The reason for this was that we did not want certain columns to export.

    We have the collectionmodel table. All columns have been extracted from the table and for each column the value inside the component was read and written in the outputstreamwriter.

    Now the problem is, we have a few selectonechoice fell in the columns of the table read-only. For components, it exports the data that the index selected and the value selected.

    Is it possible that I can get the selectedValue of the component of type RichSelectOneChoice in the bean?

    We use Jdev pointers 11.1.2.3... Any are appreciated...

    Found the solution. Add LOV VO as iterator in a combination to page and access it as below... use index that selectonechoice.getvalue returns as well as the name of the iterator.

    BindingContainer links is BindingContext.getCurrent () .getCurrentBindingsEntry ();.
    DCIteratorBinding dciterContainer = (DCIteratorBinding) bindings.get (iteratorName);
    Ri rank = dciterContainer.getRowAtRangeIndex (index.intValue ());
    String val = (String) ri.getAttribute (attrName);

  • How to set the time to refresh the page items when the Page is loaded

    Hi all

    When my pages load, some hidden page items are displayed, and when the page load they are hidden again. Is it possible to keep hidden without this time to refresh?

    Thank you

    Bsalvador

    bsalvador wrote:

    You know the syntax of css to hide the label too?

    #P1_ITEM_X, label[for="P1_ITEM_X"],
    #P1_ITEM_Y, label[for="P1_ITEM_Y"],
    #P1_ITEM_Z, label[for="P1_ITEM_Z"] {
      display: none;
    } 
    

    However this will not affect the underlying layout grid, which still affects the appearance of the page. If possible you can put the items in question in separate regions [sub] and show/hide those, rather than the individual elements.

    Post edited by: fac586

  • When you change the date range, some data refresh some is not the case.

    In looking at some the report explore end-user (EU - FxM cartridge), I noticed that some data are updated based on the data and the time I selected. I noticed that the response time service level and measures processing time service level (metric in the green circle) doesn't refresh at all. I noticed the same behavior when you look at some different indicators in the report to explore end-user. Anyone encountered this?

    I think you are referring to this point of view, but I don't know how you got there from the browser of the end user:

    Looking at the Design tab in the right pane of Action and selecting the view "user end/FxM/Applications/Application Service level Layout" to inspect, it turns out that "jelly bean" service level indicators are configured to display:

    / responseTimeServiceLevel/value/latest/min

    / processingTimeServiceLevel/value/latest/min

    As the notes of Osama, the "last" value here will not change when the time interval of page is updated.

    Contrary to what he says, if this dashboard has been configured to display the "current" value, these indicators would show the last value not expired before the end of the time range of page.

    You can:

    -Open a session to demand that this configuration of the dashboard be changed in a future release, a matter of pension

    -change this system view (which will not survive an upgrade of the FxM cartridge)

    -(deep) to copy the view "User end/FxM/Applications/FxM information request" and change the copied view (which survive and upgrade). You must also change the type mapping "FxM Application result" in Applications/FxM/end user to point to your point of view, updated the.

    Kind regards

    Brian Wheeldon

  • JDev 11 g: problem view VO criteria ignore Null values

    Hello

    I don't know if it's a bug or do something wrong but here is my case:
    I created an original Version of a database table.
    In page view of all of VO, aaa I bind a variable named
    Then I add a criteria-> display I add an element of criteria including bing my previously create variable to an attribute of VO-> I have defined validation on "necessary".
    Then a race my request and made a few test/dev.

    After a while, I needed to change my display criteria 'optional' with 'Ignore Null values' checked.
    I changedit, run my application and the display criteria did not work... I don't add no rows returned when I went to my variable named "null".
    After 1 or 2 days to research, I managed to notice that in fact, an attribute is missing in my VO object source.

    I needed to add explicitly in the XML of the source of this attribute:
    GenerateIsNullClauseForBindVars = 'true '.

    in the desired so ViewCriteriaItem it ignores Null values.

    I tried various combinations of the interface for presentation but non of them generated this attribute set to "true".
    Only when I put the validation 'Optional' and ' ignore values null ' unchecked, GenerateIsNullClauseForBindVars = 'false' appears in the XML source code.

    Is this a bug?
    Here's my version JDev: Build JDEVADF_11.1.1.1.0_GENERIC_090615.0017.5407

    Jack

    To report a bug, you must go through the MOS (aka Metalink). You need a support contract valid to log into MOS.

    Timo

Maybe you are looking for