Using special fields in a parameter - visual-studio

I am trying to figure out if it is possible to use a special field in a parameter. I am working on a set of reports that will be printed and mailed out. The print shop wants to be able to separate them into all 1 page reports, all 2 page reports, all 3 page reports and so on. I have set up the Page N of M to reset page number after and new page after the appropriate footer. So is it possible to use Page N of M in a parameter so you can select all the 1 page reports or all the 2 page reports and so on?

Related

Printing issue with SSRS report

I have run into a problem with an SSRS report..... The report will generate around 20 pages, with unique data on each page. I have used a page break to do this.
At the top of each page is some data referring to each page.... a vehicle reg number, a driver name etc. This data is coming from an expression. reportitems!.columnName.Value & reportitems!.columnName.ValueWhen the report is run, in design mode, or viewed in Chrome after being deployed, each page has the correct data at the top of the page.... the driver name changes etc.
However, when the report is printed from the browser, or exported to a PDF, the data at the top of each page is now the same. Basically page 1 info is repeated on each page. The report data is still unique on each page, but the reference at the top has now repeated.
Has anyone ever encountered a similar problem, or any idea what may be causing this? I am very confused, as before printing, the report is showing all data as expected.
The 2 images show page 1 and 2 of the report, both numbers in the expression are different.
This image shows page 1 and 2 in the PDF, both numbers are now the same.

Cannot identify selected page in telerik grid. I need selected page to be underlined. Help me in this

For my telerik radgrid I am using numeric pages. I can see the page numbers. But I am not able to identify the selected page. All the page numbers remais alike after selecting the page. I need the selected page number to be underlined. Help me in this
There is a control called PagerTextFormat that allows you to display current page, total page number, total record number and etc.
After adding your grid (radgrid), you can manually define a PagerStyle block in aspx side and put your code like below:
<PagerStyle PagerTextFormat="{0} Current Page: {1} - Total Number of Pages: {2}"/>
You probably have that block since you have already explained you are using numeric controls. You just need to add the above definition to the block.
Now, let me explain all those numbers:
{0} -> indicates where pager buttons would appear
{1} -> displays current page number
{2} -> displays total number of pages
It's not putting a line under the selected page number, but I think you can benefit from it. Check this telerik page to find more. There are different versions and examples.
Hope this helps! Good luck!

Page no for sub report in BIRT Reporting tool

I want to use page numbers for a sub report in Birt 4.2 but it shows only 1 for all pages.
I have used the pageNumber variable in the footer of master page.
It's working fine for single table reports, but for nested or sub reports (table inside table) it shows the number 1 for all pages in .pdf
If the sub report is a different report file you could pass a variable with the page number to it from the first report.
If it is in the same file, verify that the page variable is in the master page and not in the standard report flow.
Consider reviewing https://www.eclipse.org/forums/index.php/t/457987/ for more discussion of page numbers and tables.

Different layout for 1st and rest pages of report

I currently have a detailed report to design:
A report which has different header-footer-detail for the first and rest of the pages. I tried to overcome the challange by using 2 Master Pages (not quite achieved anything yet) but I am stuck at the point which row count of 1st and rest of the pages... 1st page has 20 rest of the pages have 35 rows. Namely the question is:
"How can I set different pagebreak intervals for the table for each page?"
PS: BIRT version: 3.7
Edit: I've tried to create a group on row number and put a filter on row number to maintain flow between 2 different tables but no luck. (It didnt make real sense to put row filter but tried anyway :))
What you may need to do in the body section of your report is create a grid of one column and two rows. In the advanced properties for the upper cell, look under the section property for the Master Page setting, set that value equal to the name of your first master page. Place your report contents in that cell and set the master page references to your first master page as well. Repeat this for the second cell and references to the second page. Your table(s) have an advanced property for page break interval that you can adjust to control how many rows go on a page.
However if you want your table data to flow continuously from the first page into the second page and onward, I am not sure if this is possible but will update my answer if I find a way.

Creating a Form in APEX to set Variables in a Query for an Interactive Report

I am a relative APEX noob.
I'm running APEX 4.0 against a 10gR2 database.
I've written a query that takes a few inputs (two date fields, for start and end, and a text field for further filtering) and created a dynamic report out of it that works when I pull the input variables (:START_DATE, :END_DATE, :OFFICE) out of it or replace them with static values.
I want to create a form on a page that submits those values to the dynamic report page for use in the query to filter the results the user sees when he or she hits the report.
I'm not having much luck finding a good step-by-step example of this. I created a blank page with two Date Pickers and a LOV select dropdown, but am unsure how to best translate those values into the dynamic report.
Can somebody point me at the right documentation for this?
The following was developed using Apex 4.1 but apart from some cosmetic changes the principles should be the same.
The data comes from the standard scott.emp schema.
Overview
This is page 1, the user can enter an empno and\or a hiredate.
When submit is pressed the following report on a different page is displayed:
How it works
On page 1 I have created the three items shown. The text items are called them P1_EMPNO, and P1_HIREDATE. The action for the button is "Submit Page"
Still on page 1, create a branch with the following values:
This branch navigates to page 2 (which is yet to be developed) and sets the values of items on page 2 with the values from page 1.
Create a new page, in this example this will be referred to page 2.
On page 2 create a new interactive report using the following query:
select e.*
from emp e
Next create two text items in the same region as the report and call these :P2_EMPNO and :P2_HIREDATE. I have found it useful to show these items during development so you can see that the correct values are being passed through to the page. You can always set them as hidden once you happy with the report.
Finally amend the query used by the interactive report to use the values supplied by page 1
Run the application.
You want to reference your page items in your query, which means you'll have to submit your page before your query will pick up the session state of them. What I do when I provide a small parameter form, is to put a button up there as well (i.e. labeled 'Query'), which does a submit.
In your report you can then reference your items. If for example you have 2 items P1_DATE_START and P1_DATE_END, your query could look like:
SELECT firstname, lastname, job
FROM employees
WHERE employment_start BETWEEN to_date(:P1_DATE_START) AND to_date(:P1_DATE_END);

Resources