Refresh a graph in a region.

Hi,
I am using JDEV 11.2.1.0
I have used VO1  as a graph in a region in JSF page. Same JSF page has a method which updates another VO2.
EO of VO1 and VO2 is the same. I am trying to refresh VO1 by requerying in the page but the graph does not refresh. I am using PPR for the region.
Please let me know how to refresh graph in a region.
Thanks in advance.

After you update your VO2, if you press F5, does the graph refresh? If not, the the issue is not with PPR.
Try setting ChangeEventPolicy to PPR on the executable iterator instance from your regions page definition. (Go to your regions page definition,in the executables section select your iterator and from properties change the option). If the option is already selected, then you can try to call Execute method which is an operation in your VO1. Try dragging and dropping the method from your DC as a button in your REGION next to the graph. Run the app, update the VO1 and then press Execute button.
Hope this helps.

Similar Messages

  • Refreshing Multiple Graphs in Keynote from linked Number's table

    I have a number of graphs in a Keynote presentation that are linked to a Numbers file. If I click on the graph in Keynote, I have the option to refresh the graph with any update to the data I did in Numbers. Is there any easy way to refresh all graphs within my Keynote presentation from all the new data I put in the Numbers file? I only know how to refresh one at a time right now.
    Thanks.

    Hi,
    I am not sure how this could be done with the views as the number of facilities is variable.  Could you expand as to how you could see views being used?
    Thanks,
    Mel

  • How to refresh a graph

    How do I make the BI beans graph reread the underlying view objects after they have changed?
    I have a master/detail graph and two JTables showing the master and detail data on one (JClient) form. I change the where clause of the detail, and see the tables changing. However, the graph does not change.

    After you update your VO2, if you press F5, does the graph refresh? If not, the the issue is not with PPR.
    Try setting ChangeEventPolicy to PPR on the executable iterator instance from your regions page definition. (Go to your regions page definition,in the executables section select your iterator and from properties change the option). If the option is already selected, then you can try to call Execute method which is an operation in your VO1. Try dragging and dropping the method from your DC as a button in your REGION next to the graph. Run the app, update the VO1 and then press Execute button.
    Hope this helps.

  • How to show refreshed modal window(2nd report region window) - reposting

    Hi,
    I have a requirement where i scroll thru different rows in grid region.
    Moment I tab out from first row, I pop up 2nd report, where I show related detailed data lines for the tabed out line of first grid.
    So my 2nd window is a report region query, whose 'where' clause contains the primary key from the row of first grid window.
    On tab out of a row of first window, I have a javascript function, which shows 2nd report region using:
    var mywindow =
    window.showModalDialog
    ('http://MY-URL-/ebus/apexQA111/f?p=&APP_ID.:25:&SESSION.',myObject,'dialogWidth=800px;dialogHeight=300px;dialogLeft:50;dialogTop:50');
    Problem:
    On First tab out, I get the correct data display on 2nd window, which is related to current tabbed out row.
    However, If I tab out from next record, modal window pops up and it still shows my detailed data of first tabbed out row.
    Somehow the 2nd window is not getting refreshed/recalculated based on my new tabbed out row. I only have showmodaldialog in my JS function.
    Anyway to refresh the window based on new values of the where clause variable? and then showing the window?
    Please help!!
    Regards,
    Ravi.
    Edited by: Rave on Nov 26, 2009 6:15 AM

    Hi Rave,
    You can refresh any window with the java script below, just make it conditional on the value of an item within your page so that it dose not run every time the page is loaded.
    if ($v('P1_MY_ITEM') === 'foo' ) {
    window.location.href = document.location.href;
    }

  • Refresh a graph programmatically

    Hi
    I'm trying to capture a screenshot af XY graph and print it to a PNG file.  I'm using Write PNG file to print the image which I grab using theget image invoke node.
    My VI is split inot three frames.  
    Frame 1 - display VI on the graph
    Frame 2 - Modify the two cursor red limit lines using the propert nodes & modify the y axis scale in the ssame fashion.
    Frame 3 - Grab the image
    The works fine when I have the VI open but when I run it as a subvi the limit lines and y scale modification does not happen, see attached.  It appear the VI has to be openand the disply refreshing.  Does anyone know if there is any way to refresh the display programmaticlaly?
    Attachments:
    PNG good.PNG ‏9 KB
    PNG bad.PNG ‏9 KB

    LV does not update the front panel unless it is open.  If you ever compare the performance of a complex VI with the subVIs opened and closed you will quickly see that there is a very good reason for this.  That said, there are a few instances (this particular one comes up several times) where it would be useful.  Someday it would be nice to have a VI property to force FP udpates even when closed which you could use once in a blue moon in cases like this.
    When I can't redesign my program to avoid this issue I tend to set the subVI to open when called and to run transparently.  This updates the FP and gives the desired result.  Sometimes the taskbar flashes, but I am used to it.  Perhaps there is a cleaner solution these days, I haven't tried it in a while.

  • Refreshing Entire page vs Center Region

    I have a web center portal application where i have a three column template. I have links (these are 'golinks' as of now) in the left region on click of which i am loading content in the center region. This content is coming from an ADF taskflow as part of shared library jar file. When i click on a left link, it is refreshing the entire region instead of just the center region, but the client wants only the center region to be refreshed. is there a way to achieve this using webcenter - adf taskflow approach or should i change the implementation to use an ADF pagetemplate/UIshell instead? Thanks for helping out.

    Thanks for the reply Daniel. I should have been more clear with my code. Here is my scenario with code snippets:
    In my template page (HIETemplate.jspx), code for left side link:
    {code}
    <af:goLink text="My Home" id="pt_gl1"
                               destination="/faces/oracle/webcenter/portalapp/pages/MyHome.jspx"/>
    <af:commandLink text="My Home command link" id="pt_gl4"
                                    partialSubmit="true"/>
    {code}
    MyHome.jspx page has the center content launched from an ADF library jar as below:
    {code}
    <af:pageTemplate viewId="/oracle/webcenter/portalapp/pagetemplates/HIETemplate.jspx"
                             value="#{bindings.pageTemplateBinding}" id="pt1">
              <f:facet name="content">
                <af:region value="#{bindings.onboardingbtf1.regionModel}" id="r1"/>
              </f:facet>
    {code}
    I am not sure how would i change the goLink to a commandLink and launch the jspx as corresponding to the above code and even then i am not sure it would refresh only the center region.

  • Refreshing icons to right of region title

    Hi,
    I have a number of icons to the right of my region title. These may well be for adding a new record, deleting all records etc.
    The deleting all records icon is only shown if there are actually records shown in the report region, i.e. there are records to delete.
    Using Skillbuilders modal page popup, I populate a record, and this uses the refresh region which means the region now shows the record. However, as discussed in numerous other discussions, the region title does not get refresh. I know I could use jQuery to change the region title, however I wish to effectively refresh the region title so that the delete all records icon appears if it was not already there.
    So my senario is,
    1. No records shown in report, so delete all records icon not displayed.
    2. Use presses add record icon, and using modal page plugin, a new record is added.
    3. Close modal page refreshes the region so that new record is displayed.
    4. THIS IS THE PROBLEM - I need to refresh the region title as well so that the delete all records icon is now shown.
    Any ideas?
    Thanks,
    Jeremy.

    Jezzer
    Use the After Refresh event on the region to fire your dynamic action.
    Using a javascript expression as when condition you can use a "add class"  "remove class" to display or hide the delete icon.
    Notice that the delete icon must always be rendered on the page to be able to show it after a region refresh.
    I have done something similar in this demo. Change the number of rows in the regions to change the colour of the tabular form when it becomes below a threshold.
    Nicolette

  • Contextual Event refresh/redraw issue between 2 regions (taskflow w/ jsffs)

    Working on JDev 11.1.1.2.0
    I have one jspx
    which contains 2 regions - bounded taskflow with jsffs
    Now, I want to communicate between region1 and region2
    so, producer is : region2pageDef and consumer is: region1pageDef, and Handler is pointing to a Java Bean Data Control , listening for ActionEvent
    Contextual events works fine as expected , but when region1 listenes the contextual event , at that time entire jsff gets refreshed / redrawn, why?
    How contextual event works from the ADF side ,and what causes it to redraw the page fragment
    Thanks

    When I have 3 dynamic regions on a jspx page, where every region loads taskFlow with jsff page.
    One of the pages produces the contextual event, the other receives the contextual event and the 3rd one does nothing.
    Then 3rd region is not refreshed. It works correctly.
    But when I place eventMap in the pageDef of the jspx page, then all regions are refreshed no matter if they receive the contextual event.
    This is not the right way. Why is that? Do you have an idea?
    I am using JDev 11.1.1.3.0
    Edited by: Nikolay Minchev on Dec 22, 2010 2:44 AM

  • Could not Refresh  Popup  Iterators located in region by using TP3

    Hi i have the following problem which appears when i switched to TP3:
    I have a create form, which i included as a region in a page.
    I create a new row in a caller page by using createInsert operation.
    The problem is that when i open the popup, create form is not refreshed with a newly created row as it expected. The form is positioned on the last selected row (before execute create) in a caller page
    As it seems region iterator is not refreshed and the newly created row is not inserted inside the iterator.
    Is it necessary programmatically to do region iterators refresh and how ?
    If not programmatic iterators refresh is needed as i mean it should be , where is the problem?
    In TP2 that was working.
    Regards,
    Krasimir
    Message was edited by:
    K.Penev

    HI Frank , actually the problem is more general:
    It consists of inability of synchronizing different regions iterators.
    For example , if i have a search form placed in a region, and an edit or summary form for example, placed in another region (which points to the same view object),
    <f:view>
    <af:document>
    <af:form>
    <af:region value="#{bindings.staffSearchDR.regionModel}"
    id="staffSearchDR"/>
    <af:region value="#{bindings.staffSummaryDR.regionModel}"
    id="staffSummaryDR" partialTriggers="staffSearchDR"/>
    </af:form>
    </af:document>
    </f:view>
    the iterators in different regions are not getting synchronized (That was working in TP2). I tried to synchronize the iterators on the following way:
    BindingContainer bc = ADFFacesUtils.findBindingContainer(pageDefName);
    DCIteratorBinding iter = (DCIteratorBinding)bc.get(iteratorName);
    iter.setCurrentRowWithKey(rowKey);
    And that is working , but i cannot refresh JSF Components, even by using partialTriggers or AdfFacesContext.addPartialTarget() method
    Can you help me with this?
    Krasimir

  • Refresh chart graph by clicking a specific node in HGrid or a link

    Hello,
    I've a page that includes HGridRN & GraphRN. I would like to relate between both.. so that when a user selects a specific node/link beside it, the chart will refresh based upon this specific node organization_id for example.
    How could this be done.. By a View Link between both HGrid & Graph? will it refresh automatically if so? Will it work for each node with respect to drillldown? Do I have to use PPR? If so how can I pass a parameter for organization_id to the graph's View Object or should the View Link do this by itself?
    Thank you in advance.
    BR,

    Jaap,
    Can you describe your exact use case in a bit more detail?
    Do you wish to link to a specific page or generate links to all pages (iterating through the pages) in the space? If it is the former, how do you identify the specific page? If it is the latter, consider creating a custom navigation model that contains only a pages query and iterate over this.

  • How to refresh regions of same fragment used twice as region

    Hello,
    I have a fragment A which uses fragment B as a region twice. The state of the fragment B is kept on a viewScope bean. So each instance of the fragment B region has its own instance of the viewScope bean.
    I have a button in fragment B which does a WebService call. The requirement is to refresh both instances of the region of fragment B, as well as the content of the fragment A after that buttons action is finished.
    Refresh should happen as if the user entered the page first time.
    Any ideas how to solve this problem?
    Thanks a lot.
    Jdeveloper 11.1.1.5

    Hi Frank,
    The article that you want me to look for seems to be region-to-parent communication. It partially solves my problem.
    I need region-to-region as well as region-to-parent communication.
    Note: fragment B is used two times as a region within parent view (i.e fragment A).
    The state of fragment B content is kept on viewScope bean.
    I need to access the bean of the parent page, as well as the viewScope bean of the "other" instance of the region B.
    Can you confirm that the article you are pointing me can do that ?
    Otherwise I will try Contextual Events option.
    Thank you.

  • Refresh/Redraw SVG Graph onChange of DatePicker

    Hi,
    Is it possible to redraw/refresh a graph when I change the time in a datepicker?
    The graph is dependent on the datetime value for where it shows the corresponding graph values. The idea is that the user can change the time and either automatically refreshes graph or on pressing a button the graph will change to start at the new time
    I've tried a general web search and nothing looks promising. I've also tried asynchronous autorefresh but this doesn't appear to obtain the new value of the date picker even if I change it.
    Any ideas on how I could implement this in any way possible?
    Thanks in advance
    Regards,
    Rory

    Hi thols,
    I pressume based on the description you made and the result after I run the code which you have attached, you have an issue with the missing Plot 0 when Plot 1 passes it? Have you tried removing the flat sequence structure?
    Warmest regards,
    Lennard.C
    Learning new things everyday...

  • Region refresh on clicking button

    Hello,
    I have created one report and report should be refresh on clikcing REFRESH button.so for that i have created DYNAMIC ACTION that action is fired on clicking REFRESH (DOM objects).
    But region can not refresh as other SET VALUE action fired.
    Can anyone please help me where i m wrong?
    Thanks.

    Hi
    Set the controller at the page layout region and test.
    BM

  • Update report dynamically? (without page refresh)

    I have a page with several regions, and only one region is visible at a time. Each region contains a report as well as a drop-down to alter the data displayed in the report. Currently each time a drop-down value is changed it submits the page, which causes the "main region" to become visible since it is set by default to display first.
    Is there a basic tutorial I can follow on how to dynamically update the report output without a page refresh?
    Thanks,
    Steve

    Steve wrote:
    I have a page with several regions, and only one region is visible at a time. Each region contains a report as well as a drop-down to alter the data displayed in the report. Currently each time a drop-down value is changed it submits the page, which causes the "main region" to become visible since it is set by default to display first.
    Is there a basic tutorial I can follow on how to dynamically update the report output without a page refresh?The easiest way to do this is using dynamic actions. Create a Refresh dynamic action for each region that executes when the associated select list is changed:
    h4. When
    Event: Change
    Selection Type: Item(s)
    Item(s): <select list associated with region>
    h4. True Action
    Action: Refresh
    Fire On Page Load: Yes or No depending on the requirements of your application
    Region: <region to be refreshed>
    Ensure that the value of the associated select list is submitted into session state before the refresh by specifying it in Page Items to Submit in the Source section of the report region definition.
    There are some dynamic action tutorials on the Oracle Learning Library. Doesn't specifically mention Refresh in the abstract, so it may not cover this specifically, but it is an introduction to dynamic actions in general.
    (It's probably possible to create a single dynamic action to handle refreshing all of the regions: we'd need more comprehensive details of your application, preferably reproducing it or a simplified version on apex.oracle.com.)

  • Apply request values from a region on an event from another region

    Hi,
    I am quite new to ADF and that's my first question/post here (and as a matter of fact pretty much anywhere),
    so i hope i manage to make my problem clear enough.
    First i am using ADF Faces + ADF BC using JDeveloper 11.1.2.1.0 with the integrated WebLogic Server
    Now the what is the case:
    I have a page with two af:regions in it.
    The first one is basically a single selection table.
    The second one is a to put is simply an edit form for the selected row of the first table.
    I don't use the contextual events mechanism ( i have spent some week or more playing around with it awhile ago, but from that exprience i don't recollect any particular thing that might solve my problem) so what i do is pass as parameter to the first(table) region a "delegate" that would listen/handle selection events and in the backing bean of the table i have the selection listener that fires the events/calls the delegate's handleEvent(String eventType,Object data) method so that the main page knows and refreshes the second/edit form region
    with the newly selected ID of the entity.
    My problem is that if i had entered data in the form in the second region it is lost after selection
    has been made in the first one.
    I see (in the http request content of the selection event, or in the requestMap), that all that was in the html page, including the second region is transmitted to the server - so are the newly entered values. However the jsf components that are a part of the second region are not applied with their new values, nor their model is updated in the next jsf phase.
    Now I suspect that has something to do with the (Adf)RichRegion being a EventRoot or something.
    I tried putting partialTrigger to the second region (though i currently and for various reasons call the AdfFacesContext.addPartialTarget programmatically at about one million places in the java code after the selection event)
    I even tried hacking the javascript AdfRichRegion object, so that it would always return false if asked isEventRoot. :) that's how desperate i was
    The only solution i have so far is:
    First to make clear. When i say refreshing the second region i don't mean calling RichRegion.refresh(), but rather RichRegion.queueActionEventInRegion(....., "refresh",PhaseId.ANY_PHASE) which in the second's region taskflow is just a method call, that sets the right current row of the iterator and then loops back to the same (one and only view in this taskflow - the edit form) and adds some parialTargets to the AdfFacesContext, so we see the new data
    then in that methodCall (which i think happens in the INVOKE_APPLICATION phase) i add those few lines to make sure the values are applied to the jsf components sub-tree of interest:
    RichPanelGroupLayout fl = getFl();//that's a binding of the UIComponent, that holds all the inputTexts i care about
    fl.processDecodes(FacesContext.getCurrentInstance());
    fl.processValidators(FacesContext.getCurrentInstance());
    And when i say make sure that the values are applied... i actually mean - get on my knees and pray because the whole thing looks too hacky already, but so far it works.
    But now i have to make sure the validation has been ok (otherwise i get a funny effect of seeing the red popups at the invalid text inputs just for a second and then my region is refreshed to the new entity or i get an JBO exception depending of whether i call the next lines that follow without the if(..){processUpdates}
    How do i check this:
    System.out.println(FacesContext.getCurrentInstance().isValidationFailed());
    //The above line would print false nomatter what happenned so i decided to use this "something":
    boolean validationFailed = FacesContext.getCurrentInstance().getMessageList().size()>0;
    if(validationFailed){
    //dont update the iterator's current row and return to the edit form page
    return "fail";
    }else{                    
    fl.processUpdates(FacesContext.getCurrentInstance());
    //update the current row and return to the edit form page
    It took me days to come up with this...i would call it hack...And a day or two more to adapt the rest of the page's logic with the whole design changes i had to make but i still believe there must be some better solution that i am missing because for a number of reasons i don't feel right eith this one, which, while implemented and working (i hope) makes the whole real case a lot more complex than it used to be (and still feels like a hack),
    just for the simple reason that I want to get some updated values back in the model.
    Just as an example of a design change i had to make i give you the afformentioned methodCall i had to add, because the processUpdate would not work if not called with the right adf bindings context... first i tried calling them from a custom PhaseListener i have but at that moment nobody knows what #{bindings.MyEntityId.inputValue} is.
    Thanks and Greeting
    trout
    Edited by: trout1234 on Aug 2, 2012 10:47 AM
    Edited by: trout1234 on Aug 2, 2012 10:57 AM

    Oh yes... and i have also noticed that if the action is triggered from a component(e.g. clicking on a commandLink) that is a part of the main page
    the values are updated in all regions (i think so :) ) ... so i even tried a client listener in the first region that calls javascript function that queues a custom event with a source component from the main page, but yet the selection event is propagated to the server even with the event.cancel() and evt.stopBubbling()
    and i could not make my custom event force the apply request values... but here i might have done somthing wrong i dont know it is a mess anyway... sure this one sound more of a hack than my current option....by my criteria at least

Maybe you are looking for

  • Adding self made Xcelsius dashboards to the cockpit in B1 8.8 PL

    Hello, How can I add self made Xcelsius dashboards to the cockpit in SAP Business One 8.8 PL12? Thanks.

  • Can't access AirPort Snow from the utility... :-(

    dear all, a couple of days ago I got a 2nd hand AirPort base "Snow", with the idea of setting up a wifi network at home but still having the PowerMac G4 connected via ethernet, as it doesn't have an AirPort card and I don't really want to install one

  • Photoshop CS3 loading times when opening file or creating new

    Hi all, Every time I open any kind of file or when I create a new file it takes Photoshop at least 30 secs to open or create the file. I also have PS installed on another computer (with the same specs) where I don't have this problem. Does anyone hav

  • Create Physical Inv document

    Hi, I have tried creating a phy. inv doc using both  - BAPI_MATPHYSINV_CREATE_MULT and using - BAPI_MATPHYSINV_CREATE Both the times I got a success message with the document number. I did a commit. When I go to mi03/ or ikpf, I dont find the documen

  • ILife Installation on 10.5 Server

    Ok, I searched and it seems this is possible with 10.5 server (or there are some comments that indicate people have done this). In the past, the iLife install checked for the OS version and would not install on Server products without a little "hacki