SSRS 2005 Report - 2 Pages using Lists - reportingservices-2005

I have a SSRS report that I have been tasked with adding a second page to. The first page is defined by a list. I have expanded the body area of the report to house a second list. Both Lists have a size of 8.5 x 11.
My question is this.
Is this the proper way of adding a second page. And if it is, how can I make it so the second page shows up after every record of the first page?'
Thanks!
Matt

As i understood , you want a record to display after each record of the first list.
if yes Try to Do the Following :
Add a new report this will be page two.
In the first list page one , add the new report into the list as a sub report.
Now after each record in list 1 , you will see a record from page 2.
If there are parameters you want to send to sub report from list1 , Right click on the sub report in list 1, add the proper parameters from list 1 .

Related

How to move the last unfinished record to the next page in the Visual Studio SSRS Report Tablix?

I have a SSRS report, with a tablix with 4 rows, so each record will get 4 rows in the report, and I don't know how many record I will have and in certain case the last record get cut by the ssrs report and it other part will be on the next page. I want to move the entire record in the next page.
I try to search something on stackoverflow but I find a solution(it doesn't work for me) but this solution didn't please me because it give a DEFINITE number of rows that I can show in ONE page, but I want to do it dynamically, the record I use are very different so one record can take the half of a page or can take just 2 or 3 line of text, it's very variable. So I don't want a fix number of rows I want to move the record in the next page directly when it incomplete.
Here is the solution I found on stackoverflow
And here is some illustration of my problem:
Here is the report design:

Can I use a list to repeat two tablixes on a report page?

See image below. Warehouse and Customer are dropdown lists populated via query. Year is a text field. The two tables display data from datasets driven by the report parameters. Is there a way to repeat the two tables based on each member of the Customer dropdown? Preferbly with a pagebreak after the 2nd table.
I normally do this using subreports. You could either create a single subreport that contains both tables or individual subreports. The individual approach might help with page breaks etc so that's the way I'd go.
Step 1: Create a report for your first table.
As you don't state what each table does, I'll make some up for the sake of illustration.
The key is to create a subreport that displays just the info you need in a single table. So in your case this might mean we only need to pass in a single parameter, CustomerID. You might need to pass in more such as Warehouse but I don't know...
In my made up scenario, let's assume the report shows customer contacts so we create a subreport (let's call it subCustomerConacts). It has a single parameter pCustomerID and a single dataset dsCustomerContacts. The query might looks something like SELECT * FROM CustomerContacts WHERE CustomerID = #pCustomerID. Add whatever tables/textbox etc you need to display your data.
Test this subreport works by manually typing in a CustomerID
Step 2: Create a report for your second table.
Do exactly the same again, creating a new subreport. Let call this subCustomerOrders. Repeat as above until you end up with another report that can display order details (or whatever you need).
Finally, create you main report.
This is basically what you have described in you question in terms of parameters etc.
Now to add this bit that will call you subreports.
Create a dataset (let's call it dsCustomerLoop) that contains each customer from your parameter something like SELECT DISTINCT CustomerID FROM myCustomers WHERE CustomerID IN (#myCustomerParameter)
Add a table to your report, 1 column wide and stretch it so it's wide enough to accommodate you subreports.
Set the dataset to point to dsCustomerLoop
Right-Click the cell in the detail row and do "Insert Row -> Inside Group - Below". You should not have two detail rows.
Next, right click the top detail row and do "Insert -> Subreport"
Right-Click the newly inserted subreport control and choose "properties".
Choose your first SubReport form the drop-down list
Click parameters on the left,
Click "Add" and select the CusomterID parmeter, set it's value to the CustomerID field.
Repeat this process on the seconds row, choosing your seconds subreport.
You may want to also add a 3rd row to the table, you could insert a rectangle into this with page breaks set to force a new page after each seconds subreport.
That's It. When the report runs it will produce two rows per customer, each row containing a subreport.
I hope this is clear enough, I've rushed through it a bit but if anything is unclear, let me know and I'll provide a clearer solution.

Oracle Apex - Links in report row that gets a value from the row and uses it to generate another report on a different page

Oracle Apex 5.1
I have a report (Report A) that has a table of values generated from a SQL query.
How do I get a link column to get a value (e.g. employee_ID) of the current row then send that value to another page that has a report (Report B) that is generated using the value from report A.
New to Apex and a lot of the guide or tutorials seem very convoluted for something that seems like quite a standard thing.
Thanks for any help!
This is a pretty basic thing and there are many examples of it online.
The simplest way is to create a column link (in attributes) which links to your target page containing report B. On the page containing report B have a hidden item (e.g. employee_id) and in your link use the set items area to set PX_employee_id to value #employee_id#. Then on report B have a where clause - where employee_id = :PX_EMPLOYEE_ID (replace X with the relevant page number).

passing array values to a subreport

I am new to crystal report and I need a help.
I have a report having two groups,project id and work_item. And I placed 3 sub reports material,labor and equipment reports in the work item group. They pass a value to the main report that is used for further calculation which is specific for a work item..
Since it's a work item specific,I placed the final result in the work item group footer.
I placed another sub report called bill of quantities in the work item group footer that needs the final value. It's also work item specific The value being passed is fine but I am having issues with the format.
After displaying the detail of one work item,the sub reports detail follows it which I didn't want that to be displayed. I tried placing the sub report in the project id group footer. The format I need is good but the value being passed is the same for all work items in the sub report.
The thing I need is after displaying all the details of the main report then displays the sub report detail.
Is there a way to store those final values of the work items in an array and pass them to the sub report.
Well, Yes you can store details in an array, when you are loading the main report, loop thorugh the data of the main report :
shared stringvar array items;
for int i:=1 to limit(count of project_id)
do
(
whileprintingrecords;
items[i]:= //add values, you can make a logic, this is just the demo
);
items;
Then simply place this formula in a section suppressed, just above the subreport, so that this can be passed with values in the subreport.
Declare a formula, and use the shared values:
shared stringvar array items;
numbervar count_i:=//get the count of items and add array values into another formula/field.
//place that field in subreport, this may require some brainstorming from your end, but this is the way in general.

Duplicate data of sub report at Details section in main Report

Please help me !
I have a problem in Crystal Report at visual studio::
I have 2 sub reports within the main report , and I put them at main Details section , when i run the report , the sub reports duplicated many times ..
thanks for solution .
Placing subreports within the details section will reproduce the subreport each time the Details section is printed.
If you want the subreport only once; you will need to ensure that there is only one detail line printed on the main report. Or you could place the subreports in a header/footer.
A more detailed answer will require more detailed information about your report.
Put subreports in group section in main report..and don't pust subreport in detail section
this will solve your issue...
Sub report duplicates problem in report header.
Let say, you have field Employee Name in your report header.
That name comes form dataset and dataset has 5 rows, each row repeats same employee name.
So your sub report in detail section will repeats 5 times.
Fix your header data first and duplicates should go away.
If you want to print subreport in detail section one time,
just add header section, then check underlay following section option in section expert,then place subreport where you want to print.

Resources