how to display serial no for every record in detail section using telerik report - telerik

I have a telerik report.The report has 10 records.I want to display a serial no for every record in detail section.I used RowNumber() function but it displaying 1 for all records.

You have to change the function data scope according to your report layout. For example: =RowNumber("MyParentGroupName")

Create a telerik textbox in Details section and give value as "= ColumnNumber()"
then sl.no will come automatically.

Related

Oracle Apex 19.2 - Create Radio Buttons in Classic Report

Is there a good visual tutorial that takes through the various steps on how to create radio buttons in Apex 19.2? This tutorial Creating a Classic Report having radio button on each row helped me and I’m looking for a similar one..
In my case, I would like to add a radio button to each row of my classic report which when selected would add some of the informations selected by the radio button in a text field in the same page.
Any advice is much appreciated.
Thank you
Install Sample Reporting application on your APEX instance (preferably on apex.oracle.com as Dan suggested).
Navigate to the Classic Report page.
Change the query to the report to the following:
select rowid,
ID,
PROJECT,
TASK_NAME,
START_DATE,
END_DATE,
STATUS,
ASSIGNED_TO,
COST,
BUDGET,
apex_item.radiogroup(1,TASK_NAME) ACTION
from EBA_DEMO_IR_PROJECTS
where (nvl(:P3_STATUS,'0') = '0' or :P3_STATUS = status)
Note the added column "ACTION" which consists of the apex_item.radiogroup with TASK_NAME value. Let's assume that this is the value that you want to pass to another page item.
Open that column's attribute under Page Designer and disable "Escape special characters" attribute and add a CSS Class (e.g. mycolumn)
Create a Page Item (e.g. P3_NEW).
Now add the following Dynamic Action
Event > Click
Selection Type > jQuery Selector
jQuery Selector > #classic_report .mycolumn input
Your true action will be of the type Set Value and the Set Type is JavaScript Expression with the following code:
this.triggeringElement.value
Your affected element is P3_NEW and disable Fire on Initialization

How can you display option sets within a SSRS report?

I'm new to Stack overflow and new to SSRS report building. I'm currently building a report that needs to display each option from and option set in a different column I also need to pull date a last and next date range for each option it is page grouped by a company name and then further grouped by the employee's full name. any help would be very much appreciated.
Excel mock-up
Report table layout
I need it to out put like the Excel image ideally if possible, I've found the value id's but i'm stumped as to how if I can at all display them in the columns I've labelled.
It looks like you need to use a matrix control in your report. It will display your values in a pivot view like Excel.
Microsoft Documentation

Get APEX Report column value to a page item

I have an APEX page with a static region and a report region (not interactive report).
Report will always display 30 questions (rows), with 10 rows per pagination.
So, Row Set "1" looks as follows.
Q.No__________Q.Description________Rating
01_____________AAAAAAAA________5
02_____________BBBBBBBB________3
XX ____________XXXXXXXX________N
10_____________CCCCCCC_________2
When next button is clicked in the report, row Set "2" looks as follows.
Q.No__________Q.Description________Rating
11_____________AAAAAAAA________5
12_____________BBBBBBBB________3
XX ____________XXXXXXXX________N
20_____________CCCCCCC_________2
And last row Set (3) looks as follows.
Q.No__________Q.Description________Rating
21_____________AAAAAAAA________5
22_____________BBBBBBBB________3
XX ____________XXXXXXXX________N
30_____________CCCCCCC_________2
My requirement is as follows.
In the static region above the report, I need to show different content based on the row set.
For first row set (questions 1 to 10), I have to show in the static region "This questions are related to AAA".
Similarly, for second row set (questions 11 to 20), I have to show in the static region "This questions are related to BBB"... and so on
For this, I was trying to get the value of the first row, first column (Q.No) of the report to a hidden page item. Based on this, I am planning to change the display text.
If it is 1, then static content will be "This questions are related to AAA"
If it is 11, then static content will be "This questions are related to BBB"
If it is 21, then static content will be "This questions are related to CCC"
I am not able to find a way to pass the value of the first row, first column of the report to a hidden page item.
Another approach would be to get the "row_set" number of the report to a hidden page item ... don't know if there is any APEX variable that gives APEX report "row_set" / "cursor" number...
Any help / suggestions / ideas please...
There isn't an easy way to do this, as far as I know. It would be possible to write Javascript to interrogate the pagination section of the report and see what it says is being displayed. However, given your apparently very specific 30 rows of data with associated headings, it might be easier to not use pagination at all, but instead to add your own Next and Previous buttons that set a hidden item to control pagination and then use the hidden item in the report's SQL:
... and question_no between :p123_que_no_hidden and :p123_que_no_hidden+9

SSRS Page footer does not display the correct information after the first page

I am working on a SSRS report for SQL 2005 in Visual Studio 2005 and I need to include information in the page footers from a dataset. I followed the information in the following Microsoft article http://technet.microsoft.com/en-us/library/ms159677(v=sql.90).aspx
I setup several hidden textboxes in the body of the report to hold the aggregated dataset information I need. I then reference those textboxes in the page footer of my report.
The page footer on the first page is correct but on the rest of the report pages the text boxes are not getting the information. In my situation, I am getting the user id and date from a dataset and trying to display it on each report page in the footer.
More details:
In the first hidden textbox (lblDatetime) in the body I get the value from the dataset like the following:
=First(Fields!Date.Value, "headerData1")
In the second hidden textbox (lblUserID) in the body I get the value from the dataset like the following:
=First(Fields!UserID.Value, "headerData1")
I then reference the first textbox in the footer using the following:
=First(ReportItems!lblUserID.Value)
I then reference the second textbox in the footer using the following:
=FormatDateTime(First(ReportItems!lblDateTime.Value),DateFormat.ShortDate)
=FormatDateTime(First(ReportItems!lblDateTime.Value),DateFormat.LongTime)
I tried aggregating the dataset directly in the footer but this is not possible and causes errors.
I came up with a different solution to the one suggested in the article.
Instead of adding hidden textboxes to my body, I created two global hidden parameters. I set the default value using the "From Query" for those parameters to the datasets I needed. I then referenced those two new global parameters instead of the textboxes.
This fixed my issue.

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