How can I refresh a calling page on return from a TF activity ?

Hi,
I have a (sounds easy) case where a view activity invokes a BTW with fragments. The called BTF has been declared with isolated data control scope. Inside the BTF some updates happen and when the BTF returns the calling view should display the modified data. The BTF should not be opened as a dialog and the above take place inside a region. There are examples in the Internet for how to implement such case but only calling a taskflow with pages from a dialog.
I tried creating first the Taskflow binding definition [19.10.1 How to Associate a Page Definition File with a Task Flow Activity|http://docs.oracle.com/cd/E35521_01/web.111230/e16182/taskflows_activities.htm#sthref539] , then I set the related operations (Execute, setCurrentRowWithKey, ...) in the Page Definition and invoke the operations inside the “After Listener” Listener (<after-listener>) of the taskflow activity but the binding context is not accessible inside the listener, I get NPE accessing the binding.
After some tests I have found that I can call the Operations using “#data.taskflowdefinition..” but I afraid using this technique because of so many papers stating that this is a bad practice.
Additionally I tested using an invokeAction in the calling page definition page and it works but I prefer “refreshing” the model from the activity (there are many pages calling the same activity).
I am wondering if there is a more elegant solution that I haven’t seen yet.
Thanks for any ideas,
Yiannis
Edited by: Tses on Mar 8, 2013 11:15 PM

Hi Timo and thank you for your reply,
As far as I know any method executed in the BTF has no effect in the calling page because of the isolated data control scope.
Consider the following layout of a very simple TF diagram. The BTF has "Share data controls with calling task flow" unchecked and "Always begin new transaction"
View --> Method Call --> BTF
Now imagine that a user navigates from the View to the BTF, make updates and finally commits the transaction from a taskflow return activity. The updates are executed inside the "private" BTF's data control scope because of the BTF settings.
Returning to the calling View the user sees stale data from the Data Control of the View, until he re-queries the model.
ADF supports execution of code during the call of the BTF (through Method Call) and also sending and returning parameters from the View to the BTF.
Conversely on return from the BTF there is no handler for executing code (something like "Return Method Call") in order to refresh (e.g. re-query and set current row) the View exploiting the return parameters.
The "After Listener" in the taskflow call activity has not access to the bindings context. Using #{data.bindingTFXXX} I guess that has a risk in a high availability environment for NPE where the http call to the BTF might be processed in a different server than the returning http call so the #{data.bindingTFXXX} might not exists.
The other solution I found using invokeAction with RefreshCondition depends on the returning values of the BTF, bloats the View with Bindings that I would prefer to be in a central place.
Am i missing something in the whole flow above ?
Yiannis

Similar Messages

  • Urgent-How to retain data in main page after returning from personalize pag

    Hi,
    i have a query,
    Like if I have a region 'CertificationRN' when I run the page a link stating “Personalize Table: (CertificationRN)” appears above the Region
    Now when I enter some data in this region, and then click on 'Personalize Table: (CertificationRN)’ link, personalize page appears.
    On personalize page when clicked on “Return to Application’ it returns to the previous page, but the data which I had entered in the region is lost.
    i.e. I get empty Textboxes as they where just after running the page.
    What should I do to retain the data in the region?
    Thanks & Regards
    Shilpa

    Shilpa in that case personlization links should not be shown to business users, using profile option
    1)Personalize Self-service Defn (FND_CUSTOM_OA_DEFINTION)
    2)FND: Personalization Region Link Enabled
    (FND_PERSONALIZATION_REGION_LINK_ENABLED)
    , then where does the question comes of them clicking personalize link.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How can I refresh a web site that I use often but it also changes its content frequently. Where is the refresh icon?

    I use to refresh my browser & web pages by clicking on the "refresh" button. This button is no longer on my browser. how can I refresh a web page or keep it up to date if there is no refresh icon to use.?

    Firefox 4 and later use a combined Stop/Reload/Go button that is positioned at the right end of the location bar.<br />
    During the page load process it shows as a Stop button and after the loading has finished the button is changed to a Reload button.<br />
    If you type in the location bar then that button becomes a Go button.<br />
    Middle-click the Reload button to duplicate the current tab to a new tab.<br />
    *https://support.mozilla.com/kb/common-questions-after-updating-firefox

  • How can I display the HTML page from servlet which is called by an applet

    How can I display the HTML page from servlet which is called by an
    applet using the doPost method. If I print the response i can able to see the html document. How I can display it in the browser.
    I am calling my struts action class from the applet. I want to show the response in the same browser.
    Code samples will be appreciated.

    hi
    I got one way for this .
    call a javascript in showDocument() to submit the form

  • ListOptions what event is called on refresh?how can i refresh the sessionB

    Hi everyone, i'm currently starting my studies on this platform ...and i'm now going trough some problems that i hope someone can help me out on them.
    I have a project that involves accessing a xml file , and i managed to put some random values of the file on a ListOptions for a listbox.Now i would like to know how can i refresh the session bean or refresh the listbox when i change something on the file?
    Thanks
    DMS

    Hi everyone, i'm currently starting my studies on this platform ...and i'm now going trough some problems that i hope someone can help me out on them.
    I have a project that involves accessing a xml file , and i managed to put some random values of the file on a ListOptions for a listbox.Now i would like to know how can i refresh the session bean or refresh the listbox when i change something on the file?
    Thanks
    DMS

  • How can I make a intro page for my website, then after the intro has run make the page automatically change to my we site home screen

    how can I make a intro page for my website, then after the intro has run make the page automatically change to my website's home screen

    You can do this using a meta refresh but the problem is you have to add it to the html file for the page very time you publish changes.
    A better way is to create a splash page and upload it to the server outside of the folder produced by iWeb. Example HERE.
    The meta refresh is added to the head section of the html file...
    <meta http-equiv="refresh" content="32;url=http://www.domain.about.com/Page-Name.html">
    The delay time in seconds is marked in blue and the URL to the redirect page is in red.

  • How can I tell if a page is secure

    How can I tell if a page is secure? There used to be an option to view a security certificate although this has been removed from the toolbar?
    Also, how can I refresh a page now that the button has been deleted from the toolbar?
    Thanks

    It has been changed. Please read this article:
    https://support.mozilla.com/en-US/kb/Site%20Identity%20Button
    You can use this add-on to get the classic icon back:
    https://addons.mozilla.org/en-US/firefox/addon/padlock-icon/
    Refresh Button:
    It has been incorporated into the far right end of the Address Bar. When you load a page, it is a "Stop" button, when it finished loading, it turns into a "Reload" button.
    If you want it to be somewhere else in the Toolbar, you can drag it out to wherever you want. If that doesn't work, try this:
    View > Toolbars > Customize and drag the Refresh/Stop icon into the window, then drag it back out to wherever you prefer.

  • How can I "expire" a web page (prevent BACK button access)

    How can I "expire" a web page ?
    I know some sites will display the following message if we click on the
    BACK button in your browser.
    Warning: Page has Expired The page you requested was created using
    information you submitted in a form. This page is no longer available. As a
    security precaution, Internet Explorer does not automatically resubmit your
    information for you.
    To resubmit your information and view this Web page, click the Refresh
    button.
    How do I implement this feature??

    U want to disable back button click
    if yes i think
    javascript:window.history.forward(1);

  • How can I stop the Drudgereport page from autorefreshing? None of the standard answers work.

    How can I stop the Drudgereport page from autorefreshing? None of the standard answers work.
    ''locking - https://support.mozilla.com/en-US/questions/775159 ''

    Drudgereport includes JavaScript code that refreshes the page. You could disable JavaScript for the drudgereport site, that will stop it from refreshing. You can do that by installing the [https://addons.mozilla.org/firefox/addon/4922/ YesScript] extension which allows you to block JavaScript on sites that you specify.

  • How can i print just one page of photo book without printing the entire book

    how can i print just one page of photo book without printing the entire book

    Jim,
    Take heart.  We can help.
    First turn on page view so you can see how the content of your sheet fits on the page(s).  A Numbers document contains sheets (listed on the left) which in turn contain tables, charts, text, and graphics.  Select the sheet you want to print on the left, then enable page view by selecting the menu item:
    "View > Show Print View":
    Now you should see your content and how it fits on one, or more, pages.  If thie content is too big for one page use the controls and the bottom left of the window to expose the sheet controls:
    Here a table is too big to fit on one page:
    slide the "Content Scale" slider so the content fits:

  • How can I view as "single page continuous" in full screen mode?

    how can I view as "single page continuous" in full screen mode?
    preferences->page display:
    preference->accessbility:

    Not possible.

  • How can we define custom error page in protal application

    How can we define custom error page in protal application, like we define "jsp Error page " in JSPs

    Hi,
    Check these:
    Customization of Portal Runtime Errors and portal standard error codes
    http://help.sap.com/saphelp_nw04/helpdata/en/9a/e74d426332bd30e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/ec/1273b2c413b2449e554eb7b910bce7/frameset.htm
    Regards,
    Praveen Gudapati

  • How can I make a decorative page border in Pages?

    How can I make a decorative page border in Pages?

    Hi Janet,
    I suppose that you are asking how to include a decorative border of your design into a pages document. How you design that border is rather out of the range of these discussions. So, let's say that you have a graphic that approximates a picture frame and has the required dimensions to frame your content.
    If you want to have the graphic appear on every page, Drag or Insert > Choose, to incorporate your design in to the document. The position it as you want it, and then Arrange > Send to Background and Format > Advanced > Move Object to Section Master.
    If there is more than one section in your document, there may be more considerations, but if you do this at the outset in the creation of your document, the design of the first section will flow to subsequent sections.
    Regards,
    Jerry

  • How can I make a call from iPad

    How can I make a call from IPad

    Oh, you have to get the iPhone app.
    Seriously, though .... you are aware that it's not a telephone, right? Any calls you make will be using VOIP and any of the apps and/or services (Skype, Google Talk, etc., etc.) which support that. Some of those are US-only, all have various restrictions and cost structures.

  • How can I "refresh" my iTunes Library?

    How can I "refresh" my iTunes Library? I recently moved my library to an external and made the source folder change in preferences. My library now shows all exclamations asking me to locate the files. What is the quick fix to locate or "refresh" all?

    Michael,
    Your response here seems exaclty like the answer that I need.  My logic board broke and I had to get a new one.  Sent to Apple and all is working again.  I didn't have an super recent time machine back up....my last one was 2 months old.  I was able to salvage my music from the computer before sending in for repair and when I got it back, I reloaded my music file onto my machine.  I use iTunes match so maybe that kept many of my files/playlists etc in order.  But my iTunes is asking me to download many songs that are showing in iTunes and are in a folder in iTunes.  These are songs I downloaded during that 2 month break between time machine backups.  I think a refresh will fix this issue.  But when I follow your steps above, I not certain what file to choose.  I tried to go to my itunes ---> itunes media ---> music but that doesn't work.  Do I need to choose the "iTuens Library.itl" file?  I use my playlists for my job so I don't want to just guess here and lose everything.  I did do a backup of my playlists so hopefully I'm protected if something happens but just want a bit more guidance on this.  Thank you for your help and your time and let me know if you have any questions. 
    Best,
    Kirk

Maybe you are looking for

  • Calendar syncing cannot be enabled because there are no calendars available.

    I have iCloud calendars and a google calendar, but iTunes says I have no calendars. Endless loop. How do I break out of this?

  • EJB Container error - Urgent

    Hi, I have a 3 tier architecture, and i am getting the following exceptions when i clik on a link exactly after 20 mins. If i click on the link before 20 mins i do not get any error. The logs are as follows : [#|2008-05-30T07:45:59.578-0400|FINE|sun-

  • Cross-platform links in ID CS3

    Hello all, here's the story. We have 4 Mac Users and 2 PC users working in In-Design CS3. (The Mac users have the whole CS3 Design Suite) The In-Design files are stored on a PC Server (2003). The image files are stored on a Mac Server (running Server

  • Displaying bash-3.2$ in terminal [SOLVED]

    So, every time I start a terminal (konsole) it would display 'bash-3.2$' instead of [username@hostname~]$. And I have to do a 'source /etc/profile' every time to make it look like the latter. So, is there a way for konsole to do it automatically when

  • PSE 8 - Help with Editing Group Layers

    I am working with some templates right now that are apparently set up in Grouped layers.  I've looked into it, and the best result I can find is that I hav eto "simplify" the group in order to be able to edit the layers.  That doesn't seem to allow m