<?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=445" rel="self" type="application/rss+xml" />
<item>
<title><![CDATA[AX 2012: SysOperation-Framework: Werte eines Data Contracts initialisieren]]></title>
<description><![CDATA[
<p>Wenn man in einem Data Contract die Klasse <strong>SysOperationInitializable </strong>&uuml;ber den Befehl <em>implements </em>einbindet, kann man die dadurch zur Verf&uuml;gung stehende Methode <em>initialize()</em> einbinden.
</p>


<p>Mit Hilfe dieser Methode kann man Variablen innerhalb des Data contracts initialisieren. Diese Methode wird allerdings nur aufgerufen, solange keine Nutzungsdaten gefunden werden bzw. diese nicht aktiviert sind.
</p>


<div class="div_blog_axcode">[DataContractAttribute]<br />
class TutorialSysOperationDataContract<br />
&nbsp;&nbsp;&nbsp; implements SysOperationInitializable<br />
{<br />
&nbsp;&nbsp;&nbsp; date dialogDate;<br />
}
</div>


<p>&nbsp;
</p>


<div class="div_blog_axcode">[DataMemberAttribute]<br />
public TransDate parmDialogDate(TransDate _dialogDate = dialogDate)<br />
{<br />
&nbsp;&nbsp;&nbsp; dialogDate = _dialogDate;<br />
&nbsp;&nbsp;&nbsp; return dialogDate;<br />
}
</div>


<p>&nbsp;
</p>


<div class="div_blog_axcode">public void initialize()<br />
{<br />
&nbsp;&nbsp;&nbsp; dialogDate = systemDateGet() - 365;<br />
}
</div>


<p>&nbsp;
</p>

<br /><a class="div_blog_category_gotodetail" href="https://www.schweda.net/blog_ax.php?bid=445" target="_self" title="Weiterlesen...">Weiterlesen...</a>]]></description>
<category>Microsoft Dynamics AX (Axapta)</category>
<pubDate>Wed, 24 Oct 2012 18:34:00 +0200</pubDate>
<link>https://www.schweda.net/blog_ax.php?bid=445</link>
<comments>https://www.schweda.net/blog_ax.php?bid=445</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_ax.php?bid=445</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_ax.php?bid=445</wfw:commentRss>
</item>
</channel>
</rss>	
