<?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=661" rel="self" type="application/rss+xml" />
<item>
<title><![CDATA[Filter über Finanzdimensionen in einer FormDataSource]]></title>
<description><![CDATA[
<p>M&ouml;chte man in einem Formular nur Datens&auml;tze einer Tabelle anzeigen, die bestimmte Finanzdimensionen enthalten, kann man dies &uuml;ber das &uuml;berschreiben der <em>init()</em> der FormDataSource wie folgt erreichen:
</p>


<pre class="pre_blog_axcode">
public void init()
{
    super();
    
    SysQuery::addDimensionAttributeRange(salesTable_ds.query(),
                        salesTable_ds.name(),
                        fieldStr(Salestable, DefaultDimension),
                        DimensionComponent::DimensionAttribute,
                        &#39;1001&#39;,
                        &#39;CostCenter&#39;);    
}
</pre>


<p>Man kann <em>addDimensionAttributeRange()</em> auch mehrmals aufrufen, so kann man nach mehreren Dimensionen gleichzeitig filtern.
</p>


<p>Mit <em>clearDimensionRangesFromQuery()</em> entfernt man solche Filter &uuml;brigens wieder:
</p>


<pre class="pre_blog_axcode">
SysQuery::clearDimensionRangesFromQuery(salesTable_ds.query())
</pre>


<p>&nbsp;
</p>]]></description>
<category>Microsoft Dynamics AX (Axapta)</category>
<pubDate>Fri, 08 Mar 2019 18:18:00 +0100</pubDate>
<link>https://www.schweda.net/blog_ax.php?bid=661</link>
<comments>https://www.schweda.net/blog_ax.php?bid=661</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_ax.php?bid=661</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_ax.php?bid=661</wfw:commentRss>
</item>
</channel>
</rss>	
