Custom Report Item CustomData evaluation problem in a subreport loop

Came across a strange problem with the custom report item CustomData property evaluation when using a sub report loop.
I have a master report, which contains a sub report component within a List. The List is bound to a dataset from which a numeric value is passed on to a sub report's report parameter, and from there further down as an argument to a sub report dataset. The sub
report contains our custom image CRI, which is bound to the said dataset. This dataset outputs a base64 encoded image data value, which the CRI then renders.
Now the problem is that only the first sub report iteration gets evaluated correctly, rest of them seem to get their CRI CustomData from the first iteration. So essentially the loop just outputs the same first sub report over and over again.
However, if I make the List component do a page break after each sub report, then all the sub reports start getting rendered correctly. 
Here's how the CustomData gets initialized in the CRI designer class:
this.CustomData = new CustomData();
this.CustomData.DataRowHierarchy = newDataHierarchy();
this.CustomData.DataRowHierarchy.DataMembers.Add(newDataMember());
this.CustomData.DataRowHierarchy.DataMembers[0].Group = newGroup();
this.CustomData.DataRowHierarchy.DataMembers[0].Group.Name = this.Name + "_SingleGrouping";
this.CustomData.DataRowHierarchy.DataMembers[0].Group.GroupExpressions.Add(new ReportExpression());
this.CustomData.DataColumnHierarchy = new DataHierarchy();
this.CustomData.DataColumnHierarchy.DataMembers.Add(new DataMember());
DataRow row = new DataRow();
DataValue value = new DataValue();
value.Name = "Base64";
value.Value = ""; 
DataCell cell = new DataCell();
cell.Add(value);
row.Add(cell);
this.CustomData.DataRows.Add(row);
The CRI also exposes the CustomData's DataSetName and a Base64 property.
Has anyone else seen something like this happen? Not sure if this could be an issue with our CustomData configuration/usage, the API documentation is pretty much non-existent as usual. Seems more like bug to
me.
Leo Wartinen, Predisys Inc.

Hi WarLe,
If I understand correctly, you are using a list control to contain the subreport in the master report. The dataset of the list contains the field which is passed as the parameter values of the subreport. When you render the report, only the first subreport
gets evaluated correctly, rest of them seem to get their CRI CustomData from the first iteration, right?
If in this scenario, it seems that you haven’t add a group in the list. We can try to add a group grouped on the field which is passed as the parameter values of the subreport to check the issue again. Besides, could you mind post the sample data for the
dataset of the list and tell us the settings for the list control? Then we can make further analysis.
If there are any misunderstanding, please elaborate the issue for further investigation.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support

Similar Messages

  • Is there anyone at all here who has successfully compiled and deployed an SSRS custom report item in VS2012?

    Is there anyone at all here who has successfully compiled and deployed an SSRS custom report item in VS2012?  Is there a demo out there that actually works in VS2012?  Is there anyone who has actually been able to compile and deploy that
    apparently obsolete Polygons demo?  (Pardon my impatience but I'm running a bit short of time here.)
    After much hacking and googling I was able to get Polygons to compile but I still can't deploy it to the toolbox.  ('The custom report item type PolygonsDesigner is not installed').   I've modified the RSReportDesigner.config
    as instructed but I have no rssrvpolicy.config file on my local machine and
    as yet I have no idea if that is necessary for local development.
    In order to get it to compile I first added the reference  C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Microsoft.ReportingServices.ProcessingCore.dll to both projects.
    To the PolygonsDesigner Project I also added the references:
    C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Microsoft.ReportDesigner.Controls.dll
    C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Microsoft.ReportingServices.Designer.11.0.dll
    C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\Microsoft.ReportingServices.Interfaces.dll
    Are these the correct references?  
    Exactly what software do you need installed on your local machine in addition to VS2012 in order to create a custom control?
    (Designer.11.0 was added per the instructions in reference: https://connect.microsoft.com/VisualStudio/feedback/details/783391/unable-to-integrate-previously-working-ssrs-custom-report-item-to-vs-2012s-toolbox  
    After that I added the alias RSDesigner to it's properties and   extern alias RSDesigner; at the top of the PolygonsDesigner.cs file. )
    As of now, the top of the PolygonsDesigner.cs is as follows.  I don't recall making any other changes to the code.  As far as I can remember this is all I did in order to be able to compile the code in VS2012.
        extern alias RSDesigner;
        using System;
        using System.ComponentModel;
        using System.ComponentModel.Design;
        using System.Collections;
        using System.Collections.Generic;
        using System.Diagnostics;
        using System.Drawing;
        using System.Windows.Forms;
        using Microsoft.ReportDesigner;
        using Microsoft.ReportDesigner.Design;
        using Microsoft.ReportingServices.Interfaces;
        using Microsoft.ReportingServices.RdlObjectModel;
        using System.Xml;
        using System.Xml.Xsl;
        using System.Xml.XPath;
        [LocalizedName("Polygons")]
        [Editor(typeof(CustomEditor), typeof(ComponentEditor))]
        [ToolboxBitmap(typeof(PolygonsDesigner), "Polygons.ico")]      
        [CustomReportItem("Polygons")]
        [ToolboxItem(typeof(RSDesigner::Microsoft.ReportDesigner.Shell.CRIToolboxItem))] 
        [System.CLSCompliant(false)]
        public class PolygonsDesigner : CustomReportItemDesigner
        {   etc...

    Just fixed this myself.
    It appears the documentation online is wrong and the sample code is missing a reference to a reporting services dll and an attribute.
    What you need to do to get it working in VS2012 is add a reference to: Microsoft.ReportingServices.designer.11.0.dll to the PolygonsDesigner project and then add the following attribute to the PolygonsDesigner class: [ToolboxItem(typeof(Microsoft.ReportDesigner.Shell.CRIToolboxItem))]
    I also removed the [System.CLSCompliant(false)] attribute.
    You then recompile and place both dlls in C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies directory and the PolygonsDesigner.dll into the C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\bin
    or what ever is you reporting services path.
    You also need to change the Microsoft example for the rereportserver.config file to:
        <ReportItemDesigner>
       <ReportItem Name="Polygons" Type="Microsoft.Samples.ReportingServices.PolygonsDesigner, PolygonsDesigner" />
        </ReportItemDesigner>
        <ReportItems>
       <ReportItem Name="Polygons" Type="Microsoft.Samples.ReportingServices.PolygonsCRI,PolygonsCRI"/>
        </ReportItems>
     Notice that I changed the namespaces and class to what is in the actual code so if you change it make sure you change it here.
    And here in the RSReportDesigner.config:
    <ReportItems>
          <ReportItem Name="Polygons" Type="Microsoft.Samples.ReportingServices.PolygonsCustomReportItem,PolygonsCRI" />
        </ReportItems>
        <ReportItemDesigner>
          <ReportItem Name="Polygons" Type="Microsoft.Samples.ReportingServices.PolygonsDesigner, PolygonsDesigner" />
        </ReportItemDesigner>
        <ReportItemConverter>
          <Converter Source="Chart" Target="Polygons" Type="PolygonsCRI.PolygonsConverter, PolygonsDesigner" />
        </ReportItemConverter>
    Notice I haven't changed the last part as I didn't know what the PolygonsCRI.PolygonsConverter was.
    And make sure the rssrvpolicy.config looks like this:
         <CodeGroup class="UnionCodeGroup" version="1" PermissionSetName="FullTrust" Description="This code group grants PolygonsCRI.dll FullTrust permission. ">
           <IMembershipCondition class="UrlMembershipCondition" version="1" Url="C:\Program Files\Microsoft SQL Server\MSRS10_50.SQLSERVER\Reporting Services\ReportServer\bin\PolygonsCRI.dll" />
        </CodeGroup>
    After a restart of ssrs and relaunch of VS2012 I opened a test project and added the PolygonsDesigner.dll to the toolbox and it works.
    Jamie

  • Custom Report Items in VS2010 or VS2012 ? Does it work

    Does anyone know if Custom Report Items actually work in either VS2010 or VS2012.
    I have taken the 2008R2 Polygons sample and compiled it using VS2010 and VS2012 and neither actually work in either version.
    There are no assembly linking errors, but the compiled dlls either can't be added to the toolbox in VS2012 or can't load the type in VS2010.
    I have tried everything and was interested if Microsoft had been able to get it working them selves.
    My next step is to write my own, but was wondering if it actually works before I try.
    Jamie

    Just fixed this myself.
    It appears the documentation online is wrong and the sample code is missing a reference to a reporting services dll and an attribute.
    What you need to do to get it working in VS2012 is add a reference to: Microsoft.ReportingServices.designer.11.0.dll to the PolygonsDesigner project and then add the following attribute to the PolygonsDesigner class: [ToolboxItem(typeof(Microsoft.ReportDesigner.Shell.CRIToolboxItem))]
    I also removed the [System.CLSCompliant(false)] attribute.
    You then recompile and place both dlls in C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies directory and the PolygonsDesigner.dll into the C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\bin
    or what ever is you reporting services path.
    You also need to change the Microsoft example for the rereportserver.config file to:
        <ReportItemDesigner>
       <ReportItem Name="Polygons" Type="Microsoft.Samples.ReportingServices.PolygonsDesigner, PolygonsDesigner" />
        </ReportItemDesigner>
        <ReportItems>
       <ReportItem Name="Polygons" Type="Microsoft.Samples.ReportingServices.PolygonsCRI,PolygonsCRI"/>
        </ReportItems>
     Notice that I changed the namespaces and class to what is in the actual code so if you change it make sure you change it here.
    And here in the RSReportDesigner.config:
    <ReportItems>
          <ReportItem Name="Polygons" Type="Microsoft.Samples.ReportingServices.PolygonsCustomReportItem,PolygonsCRI" />
        </ReportItems>
        <ReportItemDesigner>
          <ReportItem Name="Polygons" Type="Microsoft.Samples.ReportingServices.PolygonsDesigner, PolygonsDesigner" />
        </ReportItemDesigner>
        <ReportItemConverter>
          <Converter Source="Chart" Target="Polygons" Type="PolygonsCRI.PolygonsConverter, PolygonsDesigner" />
        </ReportItemConverter>
    Notice I haven't changed the last part as I didn't know what the PolygonsCRI.PolygonsConverter was.
    And make sure the rssrvpolicy.config looks like this:
         <CodeGroup class="UnionCodeGroup" version="1" PermissionSetName="FullTrust" Description="This code group grants PolygonsCRI.dll FullTrust permission. ">
           <IMembershipCondition class="UrlMembershipCondition" version="1" Url="C:\Program Files\Microsoft SQL Server\MSRS10_50.SQLSERVER\Reporting Services\ReportServer\bin\PolygonsCRI.dll" />
        </CodeGroup>
    After a restart of ssrs and relaunch of VS2012 I opened a test project and added the PolygonsDesigner.dll to the toolbox and it works.
    Jamie

  • Custom report for vendor evaluation

    Hai All,
    My client requires custom report to show the vendor evaluation i.e., it has to show the working how it has arrived at the final score, to be clear systems works automatically and displays the final score based on certain main and sub criteria that working has to be shown in a table format for the purpose of TPM  audit.
    Regards
    R.Senthilnambi

    Hi Senthil,
    u can download the documents from sap help to show the logic to ur audit, how sap will calculate the scores.
    If they insist for certain data with logic, u can develop a z-report and show them for 10 or 20 materials.
    hope this resolves ur problem

  • Custom Report For Vvendor Evaluation

    Hai All,
    My client requires custom report to show the vendor evaluation i.e., it has to show the working how it has arrived at the final score, to be clear systems works automatically and displays the final score based on certain main and sub criteria that working has to be shown in a table format
    Thanks in Advance,
    Anthyodaya.

    So what is your question ?
    Are you expecting someone some design options which anyway cannot be given on such a broad area.

  • Custom report outer-join display problem

    I have written a custom report for Grid that produces info on database options, combined with info on the hardware of the servers where the databases reside. It is a customer requirement that all output be displayed as one huge table, with duplicate cells where logic dictates... so I've used a couple of nested queries + outer joins.
    My SQL query provides the correct data, however Grid appears to be acting clever, and instead of displaying one big table with duplicate values where required, it is splitting the output into a series of tables.
    It might look neater, but it's not what I've been asked to provide.
    Is there anything I can do to prevent this, and force Grid to display the info as one table?
    Thanks,
    Chris

    Hello Chris,
    did you already try to create a View based on your query and use this view in a Report Element?
    Regards
    Rob
    For more info, tips and tricks on oem gc check: http://oemgc.wordpress.com

  • Report s_alr_87012178 :customer open items  - Customer classification

    Hi all. The problem concerns the report  s_alr_87012178 which is used to display customer open items.I am selecting  'Customer classification' from the dynamic selections and filling it with a value e.g C.
    I have assigned risk class A for my customer in XD02 : Marketing tab. When i am running the report, it is displaying the customer even though i have filled in a different customer classification value.
    Thanks for input.

    Hi Antish,
    Were you able to resolve this?  If so, could you let me know what was done. I have a similar issue with Customer Classification on FBL5N.
    Thanks,
    Sam

  • Adding fileds to customer line items report  (RFITEMAR)

    Hi all,
             I am modifying a customer line items report<b>(RFITEMAR).</b> I have to add two fields to a structure <b>(rfposxext).</b> I have completed this task. But the problem is how to populate these two fields. I am not able to find the select statements in this report to add these two fields. Any one can help me in this issue.....Thanks in advance

    Hi Kalyan
    In the include "RFITEM_INC",
    Routine "reate_performance_tables" exists where they are assigning "fposxext" to a field-symbol.
    Add you fields after:
            gd_pos_reduced-bukrs = <lfs_pos>-bukrs.
            gd_pos_reduced-belnr = <lfs_pos>-belnr.
            gd_pos_reduced-gjahr = <lfs_pos>-gjahr.
            gd_pos_reduced-buzei = <lfs_pos>-buzei.
            gd_pos_reduced-budat = <lfs_pos>-budat.
    add:
            gd_pos_reduced-xxx = <lfs_pos>-xxx.
    regards,
    Dharitree

  • All line items on a Cost Center Are archived, do not see in custom reports - error No actual line items were selected

    Hello, experts !
    Please advise,
    I have a cost center,
    on witch I know there are bookings,
    1. I do KSB1, have message "No actual line items were selected"
    2. I select - extras - data source - archive
    in this way I can see my items.
    ok.
    maybe all bookings are archived.
    no:
    I de a new movement on this CC - KB11N (exemple) - and on the new one I have the same problem
    I se it only when I check "archive",
    and do not see it on custom reports.
    Why ?
    Ay idea ?

    Dear Jonny,
    Check the T Code: S_ALR_87013611
    Then T Code: KSB1 by removing all the filters like date restriction..etc.
    Still if you are not finding the postings:
    Check the postings in the T code FAGLB03 - Display Balances by giving GL Account.
    Postings happen in co module if there is a cost object.
    If there is no cost object it will not flow to controlling, that will be in FI.
    What you need to do is:
    Select your GL
    Select your Payment date
    Select your Document number.
    You can check the same in FBL3N also.
    go to the transaction summary and verify the cost object whether it is a cost center or Order...etc.
    Also check whether the payment is in parking stage ....?
    Regards,
    Pavan Kumar Arvapally

  • Custom report to identify items that are consigned to the customer directly

    Custom report to identify items that are consigned to the customer directly
    the above requirment related to which module and for this which tables i can use
    pls give some details about this requirment.
    thanx

    Hello,
    I believe you are on the wrong forum. Application Express is a web development tool, and from your questions you probably should look under the E-Business Suite forums (http://forums.oracle.com/forums/category.jspa?categoryID=3).
    Regards,
    Arie.

  • Custom Report for slow and fast moving items

    Dear Xperts,
    My client wants to develop a new report for slow and fast moving items, I checked the std report MC46 however as per std SAP design this report does not consider the special stock like project stock (Q)...could you please help me to know how can develop this new report with following input and output fields?
    Input fields:
    Plant
    Material
    Material Group
    MRP Area
    Special Stock Indicator
    Special Stock (Type)
    Output Fields:
    Material
    Material type
    Material group
    MRP Controller
    MRP Area
    ABC indicator
    Material price
    Category field – Slow, Fast, Non-moving
    Current Stock
    Last Issue Date
    Thanks in Advance
    Regards
    Rahul

    Dear Rahul,
    If you required  project stock and consignment stock with valuated stock report in same place you need to generate new info structure as given below link. Or you can go with customized report with abaper.
    Info structure validation
    Regards
    Sanjeet Kumar

  • Custom Report .csv export problem

    I have set up a custom report so I can download a csv file with all orders starting 4/1/2014. It is working well except for one small hiccup. Whatever is in the very first position in the first row (the first column header) has a few weird control characters in it that hang things up when importing the file elsewhere. When I download the csv I have to open the csv, fix the first header by retyping it, and resave the file before I can import it into another application.
    For example, if the first header is Company Type, the csv includes it as
    "Company Type"
    If the first header is Name, it is in the CSV as
    "Name"
    Any idea why this is happening?

    additional details: I can only see the control characters if I open the file in Excel. If I open the csv in a text editor they do not show. However, even though not visible in a text editor, unless I retype "Name" for example, the file fails to import into another application, in this case ShipStation.com. I've also found that, strangely, I can only seem to fix the problem in Excel - trying to fix the file in a text editor by deleting "Name" and retyping it doesn't work.
    Also, I am on a Mac if that makes a difference.

  • Report for customer open item exclude vat

    Dear Experts,
    Is there a report in SAP which can extract the customer open items with VAT amount excluded?
    Thank you

    You have to customize a report. There is no standard report for this.

  • Customer line item report with GL account display

    Hi
    Please guide some customer reports for the following
    Client need a Customer Line item reports with Customer number and repective gl account for each line items.
    for ex: Product A/c xxxxxx
              To Sales A/c xxxxxx(recon A/c)
    Thanks in advance

    Hi
    1.FBL5N -  Customer Line item Display (Customer Line item reports with Customer number )
    2.FBL1N - Vendor Line item Display
    3.FBL3N - General Ledger Line item Display
    The sales entry will be
         DR  Customer - to view this entry FBL5N
               CR Sales - to view this entry FBL3N
    Hope this will be usefull

  • Z report logic- Customer open item analysis

    Dear Experts
    Our client is using S_ALR_87012178 report for customer open items due analysis.
    Now,here they also need sales group wise & division wise split up. Sales group from SO, not CMR, since   a single/same customer may have different sales groups for different SOs.
    I tried.. but no other report..satisfying this..
    So, decided to go ahead with a new Z Development , wherein I plan to call in the program to our customized prgram/report &  then to code it, so that sales group & divison are reflected to the corresponding customers.
    Now, the challenge is, most (infact all) of the std credit management reports are customer master based, but this requirement (sales group & division) is transaction 9from SO) based.
    Now, how do we write the logic/join the tables for me to write FSpec, so as to develop  a Z Report.
    Anticipating your guidance/suggestions/help.
    Good day...
    Rgds
    Sumanth.Gururaj

    hi,
    this is to inform you that,
    take the program with RFDOPR10 copy the same program under the name of Z report.
    add these fields in selection screen and keep them mandatory on the selection screen & take logic from these tables and fields
    1. Sales Group - VBAK-VKGRP
    2. Division - VBAK-SPART
    take the program with RFDOPR10 copy the same program under the name of Z report.
    i think so you cannot capture the total functionality of RFDOPR10 which is the extract of plenty of tables.
    finally if it is exectued then entire effort goes invain.
    so my suggestion is catch hold of ABAPER and follow the above.
    note : if sales group wise and division analysis is coming in the same report then it is very to populate the data from the Z report.
    first confirm that.
    if it is coming then go ahead with Z reprot itself
    balajia

Maybe you are looking for