<?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://www.schweda.net/blog_rss.php?bid=422" rel="self" type="application/rss+xml" />
<item>
<title><![CDATA[Parameter eines Jobs in den Nutzungsdaten speichern]]></title>
<description><![CDATA[
<p>Dieser Job ruft einen Dialog auf, dessen Eingabewerte in den Nutzungsdaten gespeichert und auch von dort ausgelesen werden:
</p>


<pre class="pre_blog_axcode">
static void SaveSysLastValue(Args _args)
{
    identifiername identifiername = &quot;Use sysLastValue through x++&quot;;

    boolean boolVal1 = true;
    boolean boolVal2 = true;
    boolean boolVal3 = true;
    
    dialog dialog;
    dialogField df1;
    dialogField df2;
    dialogField df3;
    ;

    // Read from sysLastValue
    [boolVal1, boolVal2, boolVal3] = xSysLastValue::getValue( curExt(),
                                                              identifiername);
    // Build dialog
    dialog = new dialog(identifiername);
    df1 = dialog.addField(typeId(NoYes), &quot;Param 1&quot;);
    df2 = dialog.addField(typeId(NoYes), &quot;Param 2&quot;);
    df3 = dialog.addField(typeId(NoYes), &quot;Param 3&quot;);

    df1.value(boolVal1);
    df2.value(boolVal2);
    df3.value(boolVal3);

    if( !dialog.run())
    {
        return;
    }

    boolVal1 = df1.value();
    boolVal2 = df2.value();
    boolVal3 = df3.value();

    // Do something
    info(strFmt(&quot;%1&quot;, boolVal1));
    info(strFmt(&quot;%1&quot;, boolVal2));
    info(strFmt(&quot;%1&quot;, boolVal3));

    // Save to sysLastValue
    xSysLastValue::putValue(    [boolVal1, boolVal2, boolVal3],
                                curExt(), 
                                curUserId(), 
                                UtilElementType::Job, 
                                funcname(),
                                identifiername);
}
</pre>]]></description>
<category>Microsoft Dynamics AX (Axapta)</category>
<pubDate>Sun, 03 Jun 2012 12:58:00 +0200</pubDate>
<link>https://www.schweda.net/blog_ax.php?bid=422</link>
<comments>https://www.schweda.net/blog_ax.php?bid=422</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_ax.php?bid=422</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_ax.php?bid=422</wfw:commentRss>
</item>
</channel>
</rss>	
