<?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=599" rel="self" type="application/rss+xml" />
<item>
<title><![CDATA[DIXF/DMF Entitäten neu aufbauen]]></title>
<description><![CDATA[
<p>Ich hatte vor kurzem das Problem, da&szlig; in einer Umgebung alle DIXF-Entit&auml;ten gel&ouml;scht wurden.&nbsp; Mit dem nachstehenden Job konnte ich diese wiederherstellen.
</p>


<pre class="pre_blog_axcode">
// Based on Classes&#092;DMFDataPopulation&#092;createDefaultMapping
static void RecreateDMFEntities(Args _args)
{
    boolean             isFound;
    DMFEntity           dmfEntity;
    TmpDMFEntityList    entityDescription;
    Counter             c;

    entityDescription = DMFDataPopulation::getEntityList();

    ttsbegin;
    while select entityDescription
    {
        dmfEntity.EntityName         = entityDescription.EntityLabel;
        dmfEntity.EntityTypeName     = entityDescription.EntityName;
        dmfEntity.Mdm        = NoYes::No;
        isFound = dmfEntity.defaultModule(dmfEntity.EntityTypeName);

        if (isFound)
        {
            if (dmfEntity.validateWrite() &amp;&amp;
                ! DMFEntity::find(dmfEntity.EntityName))
            {
                dmfEntity.insert();
                c++;
            }
        }
    }
    ttscommit;
    
    info(strFmt(&quot;%1 entities created.&quot;, c));
}
</pre>]]></description>
<category>Microsoft Dynamics AX (Axapta)</category>
<pubDate>Sat, 30 Apr 2016 19:58:00 +0200</pubDate>
<link>https://www.schweda.net/blog_ax.php?bid=599</link>
<comments>https://www.schweda.net/blog_ax.php?bid=599</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_ax.php?bid=599</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_ax.php?bid=599</wfw:commentRss>
</item>
</channel>
</rss>	
