<?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=373" rel="self" type="application/rss+xml" />
<item>
<title><![CDATA[Als MenuItem eingebundene Jobs ermitteln]]></title>
<description><![CDATA[
<p>Im Zuge eines Upgrades auf die aktuelle Version von Dynamics AX ben&ouml;tigte ich vor kurzem einen Job, der mir alle Jobs auflistet, die &uuml;ber ein MenuItem m&ouml;glicherweise laufend in Verwendung sind:
</p>


<pre class="pre_blog_axcode">
static void ListJobsUsedAsMenuItem(Args _args)
{
    treeNode        treeNode;
    treeNode        treeNodeMenuItems;
    menuFunction    menuFunction;
    MenuItemType    MenuItemType;

    #AOT
    ;

    treeNodeMenuItems = TreeNode::findNode(#MenuItemsPath);
    treeNodeMenuItems = treeNodeMenuItems.AOTfirstChild();

    while(treeNodeMenuItems)
    {
        setPrefix(&quot;Jobs used in MenuItems&quot;);

        treeNode = treeNodeMenuItems.AOTfirstChild();

        while(treeNode)
        {
            menuFunction = new menuFunction(treeNode.treeNodeName(), str2enum(MenuItemType, treeNodeMenuItems.treeNodeName()));

            if(menuFunction.objectType() == utilelementType::Job)
            {
                setPrefix(strFmt(&quot;%1: %2&quot;, treeNodeMenuItems.treeNodeName(), treeNode.treeNodeName()));
                info(menuFunction.object());
            }

            treeNode = treeNode.AOTnextSibling();
        }

        treeNodeMenuItems = treeNodeMenuItems.AOTnextSibling();
    }
}
</pre>



<p>Der Job wurde in Dynamics AX 2009 entwickelt.&nbsp;
</p>]]></description>
<category>Microsoft Dynamics AX (Axapta)</category>
<pubDate>Sat, 25 Sep 2010 16:30:00 +0200</pubDate>
<link>https://www.schweda.net/blog_ax.php?bid=373</link>
<comments>https://www.schweda.net/blog_ax.php?bid=373</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_ax.php?bid=373</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_ax.php?bid=373</wfw:commentRss>
</item>
</channel>
</rss>	
