How to use SubReport in XtraReport? - vb.net

I have a main Report which consist of (Detail Report)
Transaction #
Amount Due
PaymentType
Money Tendered
and I have another report which consist of items ordered (Items Report)
Transaction #
ItemName
Quantity
Amount Due
My question is how to combine the Items Report to the Detail Report
My Desired format is
Transaction # AmountDue PaymentType MoneyTendered
[Detail Report]==> Link through ID

Have a look here.
Creating a master-detail report with the use of subreports requires the following actions.
First, it is necessary to create two report classes (master and detail) and bind to data each of them. Note that the datasources of both reports should contain a data column with the same key, which can be passed from a master report to a detail report.
For the detail report, it is necessary to create a public parameter to be initialized outside the detail report. This parameter should be used to filter a datasource bound to the detail report against the column that contains a key.
Then, the detail report should be embedded into a master report via the XRSubreport control. In addition, it is required to handle its XRControl.BeforePrint event, and pass a key value from the master to the detail report.
Preview, print, export or publish a report on the Web at runtime.
If you want to use your own DataSet have a look here.

Related

Adding independent parameter to ssrs report

I am working on a SSRS report and i need to add a parameter for 'Invoice Number' search.
I already have start,end also type,program,frequency parameters. And those parameters are cascading so in order to select different 'type' first i need to specify frequency> program>type but my new filter should be independent from others.
SSRS report currently using sql store prod. and that store prod has two conditional store prod in it. I added my new filter into sub store prod. but it is still doesn't let me pick invoice number unless i specify other parameters. now if i select a value from type dropdown filter. for some values ssrs throwing me an error which says 'Prod or func ..... has too many arguments'
Any one has some ideas please?enter image description here

Drilling into reports

I have a headline stat drilling into a separate report showing table data for that stat.
Headline Stat: # of Widgets
Filterable by in Dashboard:
Widget Category
Date (Timeline)
App Store Status
Drills into a report showing: Widget Name, Widget Developer, Widget Description, Date (Submitted)
The drill into report is filtered correctly by widget category but NOT by the timeline filter. It’s showing Widget info across all submission dates. The headline stat for my applied dashboard filters is showing 7 Widgets, however the drill in report is showing a much larger group. However, I want the dashboard filters including the timeline dimension to apply to the Drill Across report. I cannot change the drill-in report to display based on Date (Timeline) - the report says it’s not available for the data I selected.
Drilling into the reports can be dependant on a few different things, and if you are unable to select the date filter it is most likely related to the fact that the date dimension is not connected to the other objects used in the report within the Logical Data Model. You will need to make sure the dataset is connected accordingly within the LDM.
If the date dimension is connected and used correctly within the metrics and you are still not seeing your desired results, then I would suggest the following:
Check project validation
Make sure all filters are applied correctly
If you are still facing issues, there are some MAQL tricks you can use when working with filters within your metric. For example, using Parent Keywords.

Value only showing the first item in SSRS report

So my problem here is that I have a Part number which lives in two warehouses hence it has two bin locations. If I just use =Fields!PrimBin.Value it only ever returns the first location. I need to display the PrimBin if the location is from a specific warehouse. To get the warehouse I use =Fields!WarehouseCode.value
What I need to do is only show the PrimBin.Value of MAINWHSE and not CELLWHSE
Thanks in advance.
Ok so the database it quite vast. However, for the information required I am using two tables. Part and PimWhse.
Part shares the Product ID to PrimWhse. In PrimWhse each partID has two locations "MAINWHSE", "CELLWHSE "and 1 bin to pick in each warehouse giving to possible locations.
So WarehouseCode.Value will have the information for which warehouse the part is located. and PrimBin.Value will have the warehouse position ID stored in it.
This is all setup via report style within the Epicor system. When I create a query in business activity to look in MAINWHSE it shows the correct information.
However, in the report data builder I'm not able to set this query so I assume SSRS will be able to see of both theses possible values for PrimBin.Value!? If not I guess I need to work out how to add a query to report data builder, which at the moment does no seem possible?
Thanks again.

CRM - Lock fields in certain view

In the entity Quote for example, there is a view on the form that shows what products have been selected for the quote, with the ability to view;
Product Name
Price Per Unit
Quantity
Discount
Extended Amount
My issue is that Product Name, Price Per Unit and Extended Amount are locked on the view therefore cannot be changed.
I would like to do the same for discount, any suggestions?
Currently, you cannot change the behavior of this default line item view so you have a few options:
Create your own quote line item view and show that in place of the system view. The drawback here is your view will not allow you to do in-line edits - you would have to open the quote item to edit each entry.
Create a synchronous plugin on the QuoteDetail entity's pre-processing add and update event which is filtered on the discount field. This plugin would simply throw an exception whenever a non-zero amount is attempted to be pushed through. This effectively makes the discount field disabled as any entry will result in an error on save.

Making rdlc datasource filter from other datasource

So to summarise the problem, I have a report which has two datasources - and is really two reports stuck to each other. I want the second part of the report to display data based on what the first part of the report is showing.
To go into more detail, the situation is as follows. I have two database tables - lets call one Customers, and the other Orders.
Customers contains data about the customers.
Orders contains a link to customers and contains the person's orders.
The report itself is supposed to display some sort of letter in part 1:
"Hello [CustomerName], you have an ongoing balance of [TotalBalance] bla bla bla..."
and a list of all the orders he has made in part 2
"Order 1: Item 1: 1 euro
Order 2: Item 2: 2 euro ..."
Originally these were two separate reports which we were generating one record at a time, outputting as pdf files and merging them using third party software such that the letter and the list of orders were next to each other. The problem is that this system will need to generate hundreds of them at a time, and it was taking ages. So now I want to pass a pair of large data sources and generate them in batches (call them 600 at a time) - which works faster.
So how can I force the second tablix which uses a different datasource, to filter based on what is in the first tablix with its own datasource?
I've looked at subreports, but they only work using reporting server and these are local reports.
Anything I can do ? I'm worried that its not possible.
There's no reason subreports won't work with local reports.
I recommend you download the samples from this site ReportViewer Samples. The project named "SupplyingData" shows how to load data into a subreport.