<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="https://www.schweda.net/style_feed.css" ?>
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:atom="http://www.w3.org/2005/Atom"	
	xmlns:dc="http://purl.org/dc/elements/1.1/" > 
<channel>
    <title>schweda.net - Blog</title>
    <link>https://www.schweda.net/</link>
    <description>schweda.net - Blog - Blog-Beitraege</description>
    <language>de-at</language>
    <copyright>Copyright 2006-2026</copyright>
    <generator>schweda.net</generator>
    <managingEditor>heinz.schweda@schweda.net (Heinz Schweda)</managingEditor>
    <webMaster>heinz.schweda@schweda.net (Heinz Schweda)</webMaster>
    <category>Blog</category>
	<atom:link href="https://schweda.net/blog_rss.php?bid=402" rel="self" type="application/rss+xml" />
<item>
<title><![CDATA[Clientseitige Mini-Stapelverarbeitung über die Methode setTimeOut]]></title>
<description><![CDATA[
<p>Vor kurzem stand ich vor der Herausforderung, in einem Formular alle x Sekunden etwas tun zu m&uuml;ssen (Beispielsweise sollen alle&nbsp;2 Sekunden der Inhalt einer angezeigten Datenquelle/Tabelle aktualisiert werden).
</p>


<p>L&ouml;sen kann man so etwas mit Hilfe der Methode <strong>setTimeOut</strong>, die z.B. auch von der clientseitigen Stapelverarbeitung unter <strong>Grundeinstellungen &gt; Periodisch &gt; Stapel &gt; Bearbeitung </strong>verwendet wird.
</p>


<p>Dazu muss z.B. im Formular eine Methode&nbsp;angelegt werden, die sich selbst&nbsp;&uuml;ber&nbsp;die <strong>setTimeOut</strong>-Methode nach einer definierten Zeitspanne (in tausendstel-Sekunden anzugeben)&nbsp;aufruft:
</p>


<pre class="pre_blog_axcode">
void runEvery2Seconds()
{
    // Set a Time Out with the idle flag set to false
    this.setTimeOut(funcname(), 2000, false);

    // ...do something...
    dataSourceName_ds.executeQuery();
}
</pre>


<br /><a class="div_blog_category_gotodetail" href="https://www.schweda.net/blog_ax.php?bid=402" target="_self" title="Weiterlesen...">Weiterlesen...</a>]]></description>
<category>Microsoft Dynamics AX (Axapta)</category>
<pubDate>Wed, 05 Jan 2011 19:07:00 +0100</pubDate>
<link>https://www.schweda.net/blog_ax.php?bid=402</link>
<comments>https://www.schweda.net/blog_ax.php?bid=402</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_ax.php?bid=402</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_ax.php?bid=402</wfw:commentRss>
</item>
</channel>
</rss>	
