<?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=615" rel="self" type="application/rss+xml" />
<item>
<title><![CDATA[SysOperation-Framework: Einfaches Klassenkonstrukt]]></title>
<description><![CDATA[
<p>Der nachstehende Code stellt ein ganz einfaches Klassenkonstrukt f&uuml;r das SysOperation-Framework dar. Ganz ohne Dataprovider und UIBuilder.
</p>


<h2>Service
</h2>


<pre class="pre_blog_axcode">
class TutorialSysOperationService extends SysOperationServiceBase
{
}
</pre>


<p>Die Methode <em>runService()</em> ist die eigentliche Service-Methode. &Uuml;ber das Attribute <em>SysEntryPointAttribute </em>steuern wir hier, da&szlig; keine weiteren Berechtigungspr&uuml;fungen notwendig sind.
</p>


<pre class="pre_blog_axcode">
[SysEntryPointAttribute(false)]
public void runService()
{
    info(&quot;Done&quot;);
}
</pre>


<p>&nbsp;
</p>


<h2>Controller
</h2>


<pre class="pre_blog_axcode">
class TutorialSysOperationController extends SysOperationServiceController
{
}
</pre>


<p>In der <em>new()</em> verkn&uuml;pfen wir den Controller mit der Service-Klasse.
</p>


<pre class="pre_blog_axcode">
void new()
{
    super();

    this.parmClassName(classStr(TutorialSysOperationService));
    this.parmMethodName(methodStr(TutorialSysOperationService, runService));
}
</pre>


<p>Die <em>main()</em> ist der klassische Einstiegspunkt, wenn der Controller &uuml;ber ein MenuItem aufgerufen wird.
</p>


<pre class="pre_blog_axcode">
public static void main(Args _args)
{
    TutorialSysOperationController controller;

    controller = new TutorialSysOperationController();
    controller.parmArgs(_args);

    controller.parmExecutionMode(SysOperationExecutionMode::Synchronous);

    controller.startOperation();
}
</pre>]]></description>
<category>Microsoft Dynamics AX (Axapta)</category>
<pubDate>Tue, 07 Mar 2017 20:25:00 +0100</pubDate>
<link>https://www.schweda.net/blog_ax.php?bid=615</link>
<comments>https://www.schweda.net/blog_ax.php?bid=615</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_ax.php?bid=615</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_ax.php?bid=615</wfw:commentRss>
</item>
</channel>
</rss>	
