Integrate Software AG Products Using Digital Event Services : MashZone NextGen Help : Appendix : Legacy Presto components : Apps and Workspaces : Custom Apps : Create Fully Custom Apps in the App Editor : Enable User-Initiated or Automatic Refreshes : Automatic App Refreshes
Automatic App Refreshes
The requirements to support automatic refreshes for a custom app are identical to the requiredments for user-initiated refreshes with one exception:
*The custom app class must implement the onRefresh() method just the same as for user-initiated refreshes. For this example, see Initial Render and Refresh Methods.
*The HTML and CSS has no changes. See HTML and CSS Source for this example.
*The underlying mashup for this example, shown in Mashup EMML, is identical.
*The App Specification, however, must identify the time interval to use for automatic refreshes in the refreshinterval attribute on the <app> element. This attribute identifies the time interval as a number of seconds which must be at least 5 seconds.
See App Specification for Automatic Refreshes for an example.
App Specification for Automatic Refreshes
The properties that were updated specifically for automatic refreshes in this example are shown in bold:
<app id="refreshTest" jsclass="Sample.RefreshTest" name="refreshTest"
minimizable="false" draggable="false" height="auto" width="auto"
refreshinterval="10" >
<title>Testing Automatic Refreshes</title>
<description>Custom App to test enabling the Refresh button.</description>

<properties/>

<presto-meta name="presto.desktopCompatible" type="text">true</presto-meta>
<presto-meta name="presto.phoneCompatible" type="text">false</presto-meta>
<presto-meta name="presto.tabletCompatible" type="text">false</presto-meta>

<requires>
<require name="jquery-tmpl" type="library" version="1.0"/>
<require src="js/app.js" type="script"/>
<require src="css/app.css" type="css"/>
<require src="html/app.html" type="html"/>
</requires>
</app>
Copyright © 2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback