How do I group header and details in a RDLC report - asp.net

I am trying to do the following in an RDLC Report:
I have a table:
ChequeTmp
[ChequeNum], [ChequeDate], [ChequeAmount], [Invoice], [InvoiceDate], [InvoiceAmount]
There can be multiple cheques in the the ChequeTmp table and for each cheque there can be 0 or many stub lines.
How do I display this data on an RDLC report?
Note: I have to first display cheque info followed by its stub details and then another cheque followed by its respective stub details
PS:
I am trying to achieve the following design:

Solution:
Place the header data and details data in a single table.
Add a Table to RDLC Report and set its data set to that single
table.
Add a group: ADJACENT ABOVE
Delete the details row group.
Add a row in the adjacent group.
Merge cells in the first row and put all your header details here in
a rectangle.
Create another table outside of the first table and assign your
details to it.
Drag and drop that table to the first table adjacent row.

Related

How to add Data to table and Its sub-table simultaneously in MS Access through VBA?

I am very new to MS Access and I don't even know how should I start to approach for the solution.
I have a Table 1, that contains Project No., Part No. and Quantity of parts.
Now I want to transfer this data on button click to two different tables.
Table Order and Table Parts.
Table parts is a sub table of Table Orders
When we add project Number to table Orders, then we get auto-generated ID then based on that Unique ID, Table Parts is linked to it.
As we get ID from Table Orders, we need to create entry into table Parts with that ID that will contain Part Number and Quantity.
Can you please help me this?
I tried creating an append query but its just adding Project to Table Orders, not doing anything with Part No. and Quantity.

Return one record from a form data source

I have a form with an existing data source. This data source has a one to many relationship to another table that is not an existing data source. Even though this second table contains multiple records (one to many), the field in the table that I want is duplicated across all records. Therefore I want to add this second table as a data source, but only return one record from it.
If I add the second table directly, than my form contains a line for each record instead of just one.
This problem was solved by creating a view to use as the new datasource. This view defined a calculated column that was based on a method that contained a query string that used TOP 1. The details in much more detail are at Martin DrĂ¡b's blog: https://community.dynamics.com/ax/b/goshoom/archive/2015/06/29/join-first-line-in-ax-2012.
Use the property LinkType=ExistJoin on the datasource for your second table.
See the TransactionLog form for example.

Graph as a detail for each row in Jasper Reports report

I would like to make a report which will print a table of results and for each row there will be the data and the graph displayed. How to display the graph for each row? The graph should use different data than are displayed in the row.
Should I use another Detail section or Subreport?
A sub-report can make sense if you want to use a separate query to retrieve your data.
If you can get all the data for both the results displayed in a table row plus the data for the graph, then simply add a chart element into the detail section.
(Note that there is only one detail section, so you can't add 'another Detail section')

repeat column headers on the rdl report table

I have a rdl report which contains Legend, chart and rows of records below legend and chart. I got a problem here is I can repeat legent and chard for every type new item but I cannot repeat headers for rows of records. I tried with visibility but did not work. headers are simple as row in the table in rdl report which are required to show date, time, position , like that for every record coming database , any suggestions much appreciated
If you want to repeat header with each row and you are using Visual Studio for designing, it is easy:
Simply click the data row (the one in the middle), right-click it and choose Insert Row Above, in that row you can insert your header text and it will repeat with each row record.
If I haven't deciphered your question correctly, please leave a comment.

how to populate different records in row of a Grid?

Helo, I have a two Grid where I have to display some records from the table. The table consists of employee names ,manager names and their comments. Now on the first gird I am fetching data of employee names. Now on the second grid I have to display data of manager names and their comments. The data is on the same table.
On show button of the first grid it shows all the employees. then on AdvWebGrid.ClickLink or any selected user on the first grid , i have to display the manager names and their comments on the second grid. How can I do that ?
Hope my problem is clear?
can you use hirarchy grid?mean when you click on employee name it open a grid just below that row?i think it will be best option for you as you can use datatable in one datatable fetch all employee from table and assign them to first datatable and in other datatable fetch all manager and comments after doing all this just assign both datatable two grid datasource and create a join between them and it will work perfectly...
links
http://www.infragistics.com/dotnet/netadvantage/aspnet/web-hierarchical-data-grid.aspx#Overview
http://helpcentral.componentone.com/nethelp/c1webparts/default.htm?turl=WordDocuments%2Fdisplayingahierarchicalgrid1.htm
http://msdn.microsoft.com/en-us/library/ff407273(office.14).aspx
http://aspalliance.com/articleViewer.aspx?aId=21&pId=

Resources