Periodic data refresh on the page or refresh on command?

Hello!

I have a start page of my application that displays data from a couple of iterators. This page is intended mainly to access certain tasks on these data, but the task is based on the data itself. So I have to make sure, when the user clicks a command link (let's saj in a column of the table) the data in this table is updated. I thought a lot about some features that cause the data on the page to refresh periodically since there is also a picture showing the current positions of certain transport units (or at - he or she is not, I have no update in real time). Second option is to update the required iterator somehow when the user clicks on the line because sometimes it happens that a user clicks on the link of the line, but when the task starts data are not the line clicked on but a completely different recording since there are a few changes of data of another user that caused the order of the lines in this table.

Please let me know what is the best way to deal with my needs and if the periodic refresh is OK, how to implement a periodic refresh of the page or so concidering these tips: http://radio.weblogs.com/0118231/stories/2005/06/16/whyIsntRefreshingTheBrowserPageEnoughToRefreshTheDataDisplayed.html - update all iterators on the page.

I hope my question is clear.

Kind regards
BB

BTW
With the help of ADF BC 10.1.3.3

Published by: Brokenbone on July 22, 2009 11:41

Hello

I think you can use the poll with specified interval and pollListener tag, you can find more information on links below

http://www.Oracle.com/technology/pub/articles/Jellema-Muir-ADF-part2.html
http://thepeninsulasedge.com/frank_nimphius/2007/09/18/ADF-faces-using-afpoll-to-refresh-a-table

Jean Lou

Tags: Java

Similar Questions

  • Is there a trial period I can test the Pages ability to open Word documents on my iMac?

    Is there a trial after the purchase period, during which I can test the Pages ability to open Word documents on my iMac?

    N °

    You are free to use the web version to iCloud.com as you like, however.

  • Is it possible to access control with data binding to the page

    Hello

    I want to know if we can access the datacontrol operations in the bean with managed to link these operations to the definition of the page.

    For example: I have a method in the application Module that is under the control of data and create an impression of the page with link of this operation to the definition of the page.
    I created a button on the page and when you click on the button it calls a method in the managed bean.
    Can I run the operation in the data from the managed bean code control? Can I handle for the data from the managed bean code control?

    Please let me know if this can be done or not.

    Thank you
    Stephanie

    Why you don't want to use binding for this? Is there a specific reason for it, or you want to just make life harder?
    You could write a managed bean that has a method that creates and instance of AOS and calls the method - and then just call managed method from your page bean.
    Something like this:
    http://download.Oracle.com/docs/CD/E17904_01/Web.1111/b31974/bcservices.htm#CHDIBHBD

  • Dynamic date stamp along the page border

    I have a javascript to put a stamp on dynamic date vertically along the left edge of a PDF document.  This script works very well for the first page.  However, on a document of several pages, that the date stamp is not turned 90 degrees, so on the 2nd page, there are just a few letters horizontally.  Here's the script.

    var inches = 72;

    for (variety p = 0; p < this.numPages; p ++) {}

    / / create rectangle to field quads

    aRect var = this.getPageBox ({nPage: p});

    aRect [0] = 0.0;

    aRect [1] = 0.0;

    aRect [2] = 26.0;

    aRect [3] = 792;

    / / now to build text field to fill with date information

    var f = this.addField ("PrintField", "text", p, aRect)

    f.delay = true;

    f.rotation = 90;

    f.textSize = 16;

    f.textFont = fonts. HelvB;

    f.textColor = color.black;

    f.alignment = 'center ';

    f.readonly = true;

    f.print = true;

    f.hidden = true;

    f.delay = false;

    }

    Adds a script level doc to fill out the text field when doc prints from

    Acrobat or Adobe Reader free. Note: the character '\r' represents a

    carriage return.

    var myWillPrintScript = ' var f = this.getField("PrintField"); \r' + ' f.hidden = false; \r' + ' var d = new Date(); \r' + ' year var = d.getYear () + 1900; \r' + ' var minutes = d.getMinutes (); \r' + ' if (mn < 10) {\r' + ' min = "0" + min}; \r' + ' if (d.getHours () > = 12) {\r' + ' mins = minutes + "H"; \r' + '} else {\r' + ' mins = minutes + 'AM' ;} \r' + ' f.value = 'CE DOCUMENT ONLY EFFECTIVE ON' + (d.getMonth () + 1) + "/" + d.getDate () + ' / ' + year;} \r'

    var myDidPrintScript = ' var f = this.getField("PrintField"); \r'

                               + ' f.value = ""; \r'

                               + ' f.hidden = true; \r'

    Now define scripts to run on the will / did print events.

    this.setAction ("WillPrint", myWillPrintScript);

    this.setAction ("DidPrint", myDidPrintScript);

    FYI: This script came from the following options other threads and links

    http://www.PlanetPDF.com/developer/article.asp?contentid=AddingdynamicstampstoPDFswhenprin ting

    http://forums.Adobe.com/thread/286289

    http://forums.Adobe.com/message/1097488#1097488

    Can someone understand why this script does not work on all pages?

    Thank you

    This is a bug in Adobe Acrobat. Add the following code after your loop for:

    for (variety p = 0; p)< this.numpages;="" p++)="">

    var f = this.getField ("PrintField." + p);

    f.Rotation = 90;
    }

  • How can I export all the data collected on the page manage the of Echosign (list of all signed documents) to an excel file?

    Hello, rather than saving contracts individual pdf, I was wondering if there is a way I can export all of the data collected from the various contracts in a single great file?  Thank you

    Hello Olivia47511068,

    If you have used a library template to send the documents for signature, you can export the values of individual transactions by going into the tab manage and then scroll down to the section template Library, single click on it and on the right side, click on the history tab and select ' export the data. It will download the CSV file with data of form field of all transactions made using the model of the library.

    -Usman

  • Merge the moving data out of the page records...?

    I'm doing a data merge to create a directory size Member, finished 5.5x8.5

    I do multiple records (each size 1.5x.1.5 inches) per page document, and when I saw the cliché of multiple registration, she moves all the records down about 1 inch and more to the left about 2. It doesn't seem to be lining up with anything. My margins for the fusion of data are set sur.3 all around.

    I tried to use a data source is a CSV (comma delinated) and also a text file (tab delinated).

    I tried to create a new file and reset the necessary info from scratch, in order to ensure that it was not all the corruption of files possible.

    Here is a picture of what's going on. Can someone give me an idea why this change happening?

    I use CS6 and had never happened to me before with previous work.

    BEFORE.pngAFTER.png

    It seems to be connected at the preview, so that if he introduced a preview once again it has not executed correctly. The only way that I was able to get a good behavior out of the file was to create a new file, copy the text block into it, set up a new data merge info and run without a preview.

    Any attempt to create a new file and the preview before the execution resulted in record offset.

  • 'Bookmark this Page' goes - does the popup form flood data bookmark for the page I want to bookmark.

    I use it every day. I click on bookmarks and the drop down shows - I click on MARK THIS PAGE - and he died - the drop down menu disappears correctly but the popup didn't come with the form to fill out the name of the bookmark and the location that I want for her. This happens sometimes during some time. Maybe a few months I don't know. I have no idea why it starts and stops working on its own. How can I fix?

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe

    For problems with the file places.sqlite (bookmarks, historical) database, you can check in the Firefox profile folder.

  • showPopupBehavior refreshes the page

    Hello

    I have a < af:table > in which I show a < af:commandImageLink > with < af:showPopupBehavior >.
    By clicking on the image for the image link, I want a popup to show.

    But when I run the page and click on the page, the page is refreshed. The popup doesn't show up. Any ideas?

    I have a popupFetchListener for the popup in the bean to support for the page that is called. But after that control data which constitutes the page is called and the page is refreshed (I use no-bc4j components to build my page).

    Please let me know what is causing this problem.

    Thank you
    Pawan.

    Check the Refresh condition iterator... in sections of links

  • How to display data when the page loads

    I use JDeveloper/Oracle ADF 11.1.2.3.0.

    I have a jsf with a table page that was built by a named query. I chose the research with the table option when you drag the query named on the page.

    The named query uses a connection variable which is not set with the loading of the page. Therefore, no data is display even if the query is executed.

    But, I can then click on the button Search and display of the data.

    I tried to set the default value of the variable binding '%' in the OV, but that did not work.

    So, is it possible that I can get all the data displayed when the page is loaded. Perhaps by the calling program the by clicking the search button?

    Thanks for your help.

    Open the criteria to view that you defined in the t for your group, "indication of interface user" tab and check the box 'automatically interrogate. "

    Timo

  • skillbuilders modal page: how to submit the page parent after closing modal window

    Hello.

    I use Apex 4.2.1 on mod_plsql and Oracle 11 g 3.

    I installed version 2.0 of plugin Skillbuilders Page modal.

    In may, app, page 7 presents a button.  When you click on it, page 6 is displayed as a modal popup.  Users can change this modal page form fields and then click on a "submit" button.  This, in turn, automatically closes the modal page.  Users seek then to page 'parent' (page 7).  It all works very well.

    My problem: Page 6 (modal page) contains a collection of Apex.  This collection is updated when users click the submit button.  It is this collection to be displayed with the data updated on the page "parent" (page 7).  And so, I need to automatically send page 7 when the modal page closes automatically after clicking submit on the modal page.

    I tried a dynamic action that performs an action of "submit page" whenever the user clicks on the button send in the modal page.  But because the plugin uses an iframe to display the modal page, the action of page submit real that happens in the iframe, not in the 'parent' page (page 7).  When the modal page closes automatically, users are left looking at the page of 'parent' (page 7) with the previous data (not updated).  I have to manually refresh the page (via the browser) to see the data updates to the collection.

    And then, does anyone know how to automatically return the page of 'parent' when the modal window closes automatically?

    Thank you.

    Elijah


    Your dynamic action automatic closing has not been set correctly. The action is not triggered on a specific item, but rather on the 'document '. Your selection should be 'Élément DOM' and the element must be "document".

    (Note that if you use several modal pages on one page, this action triggers for each of them. You can use the 'modal page id' in the creation of the page modal DAs must be able to stand out in outreach. You can find this in the documentation, too.)

  • How to get the value of the tree node without reloading the Page. !

    Hello
    I worked with apex 4.2 and I've created trees and as a table to retrieve the date according to the value of the tree node select the code tree something like that

    {
    Select case when connect_by_isleaf = 1 then 0
    When level = 1 then 1
    of another-1
    end the status,
    level,
    'ENAME' as the title,
    NULL as an icon,
    'EMPNO' as value,
    NULL as ToolTip,
    ' f ? p = 36648:34:5234984107903:P40_SELECTED_NODE :'|| EmpNo as link
    "Dept". "" EMP ".
    Start by "MGR" is nothing
    connect prior "EMPNO" = "MGR".
    siblings arrested by 'ENAME '.
    }
    and I put the Page selected node element: P40_SELECTED_NODE. the tree worked well and recover the data in tabular form according to the value of tree node

    My Question:
    1. I want to recover the data without submitting the page where whenever I select the value of the tree make page reload to update the tabular presentation with the new value, there is a way to convey the value of the tree node to point P40_SELECTED_NODE and in the form of refreshment without page reload.

    2-i want when selected in the page tree run process according to the value of the on-set tree node to create dynamic action with (jquery selector: div.tree li > a) but the value of the incorrect node.

    Concerning
    Ahmed;

    Take a look at my sample tree application.
    When you select a node, a details report is updated. That should help you implement for your situation.
    However, one thing to note is the link on each node that you have. Click on a node to redirect to the same page and set the value of P40_SELECTED_NODE. You can keep the element, but the link should go, as it's him "reload" the page whenever you click on a node. Implementation of the action of "onselect" tree and setting the page element to the value of the node that will be in place. Be sure to add the page element in the elements present in the form of tables.
    The reason why your selector didn't return the correct value is that you have a click event bound to the anchor tag in each element of the list. The anchor tag does not hold the real value (usually and id), but holds that the display value. The items list item containing the real value in their attribute "id". Therefore, to get this value you should always inspect the first parent of the clicked anchor tag. (which is another way to solve it, of course)

  • any solution for wyciwgn redirects the page?

    Whenever I chose Web site 'http://www.dittomusic.com/dittomusic', 'wyciwgn' of Firefox performs some type of redirection, then displays the note: 'www.google-analytics.com data transfer '. The page never loads and the message does not go away. This also happens on other sites. Most recent pages including displays wyciwgn://1/http://www.dittomusic.com/dittomusic , my antivirus scans indicate zero points and also our anti-virus software is updated.

    This site makes it OK in IE 7 +, any suggestions on what is happening here? Can there be something that requires activation or deactivation?

    The wyciwyg: Protocol (what you Cache is What You Get) is used internally to access the pages in the cache and you should never see it normally.

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do not click on the reset button on the start safe mode window or make changes.
  • Apex 5.0 Page Designer JSON error on the page to load an application of 4.2 imported

    After you import our application written with version 4.2 (issue 26, modified) at APEX 5.2 when I try to open a page with the page designer, I get the following message

    Error: parsererror - SyntaxError: JSON.parse: unexpected end of data to column 1 of line 1 of the JSON data

    and the Page displays a ' no page or page no model has "no region free items or processes.

    Strangely in sqldeveloper, I can see that all the pages have the right number of elements and the application can run without problem.

    We use a lot of plugins and many models updated the theme 26.

    I try to delete all pages in the application and create a new one, but without success.

    Our application contains hundreds of pages, and I'm afraid that we must stay on the 4.2 version!

    Thanks in advance.

    user_frederic wrote:

    After you import our application written with version 4.2 (issue 26, modified) at APEX 5.2 when I try to open a page with the page designer, I get the following message

    Error: parsererror - SyntaxError: JSON.parse: unexpected end of data to column 1 of line 1 of the JSON data

    and the Page displays a ' no page or page no model has "no region free items or processes.

    Strangely in sqldeveloper, I can see that all the pages have the right number of elements and the application can run without problem.

    We use a lot of plugins and many models updated the theme 26.

    I try to delete all pages in the application and create a new one, but without success.

    Our application contains hundreds of pages, and I'm afraid that we must stay on the 4.2 version!

    Can you switch off Page Designer and page definitions into component?

    Run the utility Advisor to find anomalies in the application.

  • Restrict execution of VO on the loading of the Page

    I have a VO on a page that is displayed as a table.

    So when the Page loads the VO is automatically performed and the data are displayed on the page as soon as the page loads.

    I can stop the execution of the VO on page load?

    I would like to have the table without data displayed when the page is loaded.

    I executed a ViewCriteria of this VO on only a click of a button. (I am able to do this).

    ... and to answer the question

    So when the Page loads the VO is automatically performed and the data are displayed on the page as soon as the page loads. I can stop the execution of the VO on page load?


    On the iterator that is referenced by the table, set the refreshCondition for example ${viewScope.managedBeanInthisScope.doExecute}. Then create the bean in viewScope as

    public class ManagedBeanInthisScopeCls {}

    Private boolean doExecute() = false;

    public void setDoExecute (boolean doExecute) {this.doExecute = doExecute ;}

    public boolean isDoExecute() {return this.doExecute ;}

    }

    Configure the bean managed in adfc-config. XML or a configuration of the workflow bounded and name the managed bean name 'managedBeanInthisScope '. The scope of 'view '.

    On the command button to use to query the table, add

    AF:setPropertyListener

    in: #{true}

    in: #{viewScope.managedBeanInthisScope.doExecute}

    type: action

    Frank

  • Text field for the (nieme second word) on the Page

    The script adds text fields on a page based on the search for the word DATE.

    This script must be changed to add the text field for second occurrence of the word DATE only on the page and NOT the first occurrence of the word.

    Currently, the script adds a text field for all occcurances of the word DATE.

    Any help will be greatly appreciated.

    Thank you.

    / * Add on manual transmission date text field * /.

    var this.numPages = NUMPAGES;

    for (var k = 0; k < numpages; k ++)

    / * 1st co - ord = Horizontal, 2nd co - ord = vertical, 3rd co - ord = width, 4th co - ord = height * /.

    {

    {

    numWords var = this.getPageNumWords (k);

    for (var i = 0; i < numWords; i ++)

    {

    var ckWord = this.getPageNthWord (k, i, true);

    If (ckWord = 'DATE')

    {

    var q = this.getPageNthWordQuads (k, i);

    Convert quads in the rotation by default user space

    Userspace used by links.

    m = (new Matrix2D).fromRotated(this,0);

    mInv = m.invert)

    r = mInv.transform (q)

    r = r.ToString)

    r = r.split(",");

    var f = this.addField ("Date", "text", k,

    ([r [0] * 1.10, r [1] - 10, r [2] * 1.3, [5] r-15]) ;

    }

    }

    }

    }

    Try something like this:

    var this.numPages = NUMPAGES;

    for (var k = 0; k)< numpages;="" k++)="">

    var nDateCount = 0;  Initialize counter

    numWords var = this.getPageNumWords (k);

    for (var i = 0; i)< numwords;="" i++)="">

    var ckWord = this.getPageNthWord (k, i, true);

    If (ckWord = 'DATE') {}

    nDateCount += 1;  Incrementing counter

    If (nDateCount == 2) {}

    var q = this.getPageNthWordQuads (k, i);

    var m = (new Matrix2D).fromRotated(this,0);

    mInv var = m.invert ();

    var r = mInv.transform (q).

    r = r.toString ();

    r = r.split(",");

    var f = this.addField ("Date", "text", k, [r [0] * 1.10, r [1] - 10, r [2] * 1.3, [5] r-15]);

    break;  No need to keep the current page search

    }

    }

    }

    }

Maybe you are looking for