<?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=452" rel="self" type="application/rss+xml" />
<item>
<title><![CDATA[Formular per Code öffnen]]></title>
<description><![CDATA[
<p>Nachstehend ein paar Beispiele, wie man ein Formular per Code aufrufen kann. Wobei jede Variante ihr Vor- oder Nachteile bietet. Beispielsweise gibt es Varianten, wo man einen Datensatz &uuml;bergeben kann, der angezeigt werden soll. Andere wieder bieten die M&ouml;glichkeit ganze Queries zu &uuml;bergeben oder aber festzulegen, ob man im Grid oder im Detail-View&nbsp;&ouml;ffnen m&ouml;chte. Es sollte also f&uuml;r ziemlich jeden Anwendungsfall etwas dabei sein ;-)
</p>

<div class="div_blog_axcode">static void openFormThroughCode_0(Args _args)<br />
{<br />
&nbsp;&nbsp;&nbsp; menuFunction menuFunction;<br />
&nbsp;&nbsp;&nbsp; args args;<br />
&nbsp;&nbsp;&nbsp; CustTable custTable = CustTable::find('1101');<br />
&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; args = new args();<br />
&nbsp;&nbsp;&nbsp; args.record(CustTable);<br />
&nbsp;&nbsp;&nbsp; args.formViewOption(FormViewOption::Grid);<br />
&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; menuFunction::runClient(identifierStr(custTable), MenuItemType::Display, false, args);<br />
}
</div>

<p>&nbsp;
</p>

<div class="div_blog_axcode">static void openFormThroughCode_I(Args _args)<br />
{<br />
&nbsp;&nbsp;&nbsp; FormRun formRun;<br />
&nbsp;&nbsp;&nbsp; args args = new args();<br />
&nbsp;&nbsp;&nbsp; args.name(formstr(CustTable)); <br />
&nbsp;&nbsp;&nbsp; args.formViewOption(FormViewOption::Grid);<br />
&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; formRun = classFactory.formRunClass(args);<br />
&nbsp;&nbsp;&nbsp; formRun.run();<br />
&nbsp;&nbsp;&nbsp; formRun.wait();<br />
}
</div>
<br /><a class="div_blog_category_gotodetail" href="https://www.schweda.net/blog_ax.php?bid=452" target="_self" title="Weiterlesen...">Weiterlesen...</a>]]></description>
<category>Microsoft Dynamics AX (Axapta)</category>
<pubDate>Sat, 04 May 2013 12:07:00 +0200</pubDate>
<link>https://www.schweda.net/blog_ax.php?bid=452</link>
<comments>https://www.schweda.net/blog_ax.php?bid=452</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_ax.php?bid=452</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_ax.php?bid=452</wfw:commentRss>
</item>
</channel>
</rss>	
