I want to be able to print the Sales Manifest business object that is selected in my Sales Manifest view.
To do this I set up an action which calls the following code.
When I break on the criteria it is correct
however the report displays all data, not applying the criteria
C# private void actManifestReport_Execute(object sender, SimpleActionExecuteEventArgs e)
{
var manifest = (SalesManifest)e.CurrentObject;
var reportData = View.ObjectSpace.FindObject<ReportDataV2>(new BinaryOperator("DisplayName", "SalesManifestReport"));
string reportContainerHandle = ReportDataProvider.ReportsStorage.GetReportContainerHandle(reportData);
var criteria = new BinaryOperator("Id", manifest.Id);
Frame.GetController<ReportServiceController>().ShowPreview(reportContainerHandle,criteria);
}
C#
Report Designer is attached
Is there an example of how to do something like a sales invoice using Entity Framework?
I was able to achieve my business goal by creating an in place report at run time.
Still I am puzzled why the above technique does not work for me.