<?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=652" rel="self" type="application/rss+xml" />
<item>
<title><![CDATA[Debuggen von SSRS-Dataprovider die von SrsReportDataProviderPreProcess abgeleitet sind]]></title>
<description><![CDATA[
<p>In <a href="http://www.schweda.net/blog_ax.php?bid=591" target="_self" title="Debuggen von SSRS-Dataprovider">diesem Beitrag</a> habe ich schon einmal beschrieben, wie man einen DataProvider &quot;debuggen&quot; kann, der von SRSReportDataProviderBase abgeleitet ist.&nbsp;
</p>


<p>Der folgende Job macht prinzipiell das gleiche, allerdings f&uuml;r vorverarbeitete Reports, also welche wo der DataProvider von&nbsp;<strong>SrsReportDataProviderPreProcess </strong>abgeleitet ist. Im Beispiel verwende ich den DataProvider einer Ausgangsrechnung (SalesInvoice).
</p>


<pre class="pre_blog_axcode">
static void testSSRSDataProvider_SalesInvoice(Args _args)
{
    SalesInvoiceTmp salesInvoiceTmp;
    SalesInvoiceDP dataProvider = new SalesInvoiceDP();
    SalesInvoiceContract contract;
    CustInvoiceJour CustInvoiceJour = CustInvoiceJour::findRecId(35637191172);
    UserConnection UserConnection;

    try
    {
        ttsBegin;

        UserConnection = new UserConnection();

        contract = new SalesInvoiceContract();
        contract.parmFormLetterRecordId(CustInvoiceJour.RecId);
        contract.parmRecordId(CustInvoiceJour.RecId);

        dataProvider = new SalesInvoiceDP();
        dataProvider.parmDataContract(contract);
        dataProvider.parmUserConnection(UserConnection);
        dataProvider.processReport();

        salesInvoiceTmp = dataProvider.getSalesInvoiceTmp();
        
        while select salesInvoiceTmp
            where SalesInvoiceTmp.createdTransactionId == appl.curTransactionId()
        {
            info(strFmt(&quot;%1 %2&quot;, SalesInvoiceTmp.InvoiceId, SalesInvoiceTmp.ItemId));
        }

        ttsCommit;
    }
    catch (Exception::Break)
    {
        info(&quot;Aborted&quot;);
    }
}
</pre>


<p>&nbsp;
</p>]]></description>
<category>Microsoft Dynamics AX (Axapta)</category>
<pubDate>Mon, 10 Jun 2019 19:51:00 +0200</pubDate>
<link>https://www.schweda.net/blog_ax.php?bid=652</link>
<comments>https://www.schweda.net/blog_ax.php?bid=652</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_ax.php?bid=652</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_ax.php?bid=652</wfw:commentRss>
</item>
</channel>
</rss>	
