Configuring displayed line in an interactive report.
HI,
I have an interactive report that the deployment is longer than one page. When I run any of the events I do is simply reprint the report with the new changes.
This is fine when done on the first page but when done in the second or third page, and reprint the cursor is on the first page.
With sy-lilli I can know exactly which line is run the event and assign the data to a variable (X).
How can i make the report display the line that i just clicked?
I am using symbol as hotspots to trigger the event, so i would like a checkbox efect.
Edited by: carlosccc on Dec 2, 2010 9:28 PM
Don't know why these meesage is being printed withaout any format.(HOPE YOU UNDERSTAND, IF YOU CAN'T, SEND MY YOUR MAIL)
Hi, Before anything, thanks.
These is your code with some changes in the AT-LINE SELECTION EVENT.
REPORT LINE-COUNT 100 LINE-SIZE 100
NO STANDARD PAGE HEADING.
DATA: v_page TYPE sy-pagno.
SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW.
PARAMETERS page TYPE i.
SELECTION-SCREEN END OF SCREEN 500.
START-OF-SELECTION.
sy-lsind = 0.
DO 10000 TIMES.
WRITE sy-index.
ENDDO.
IMPORT v_page FROM MEMORY ID 'V_APGE'.
IF sy-subrc = 0.
FREE MEMORY ID 'V_APGE'.
ENDIF.
SCROLL LIST TO COLUMN sy-staco
TO PAGE v_page LINE v_page.
TOP-OF-PAGE.
ULINE.
WRITE sy-pagno.
ULINE.
AT LINE-SELECTION.
DATA: example TYPE i.
example = sy-cpage.
DO 10000 TIMES.
example = sy-index + example.
WRITE example.
ENDDO.
v_page = sy-cpage.
EXPORT v_page TO MEMORY ID 'V_APGE'.
*SUBMIT zsachinest AND RETURN.
*had to comment thse code cause "zsachinest does'nt exits here LOL"
THESE HOW IT IS PRINTED AT FIRST GLANCE FOR THE PAGE 10.
10
7,057 7,058 7,059 7,060 7,061 7,062 7,063 7,064
7,065 7,066 7,067 7,068 7,069 7,070 7,071 7,072
7,073 7,074 7,075 7,076 7,077 7,078 7,079 7,080
7,081 7,082 7,083 7,084 7,085 7,086 7,087 7,088
7,089 7,090 7,091 7,092 7,093 7,094 7,095 7,096
7,097 7,098 7,099 7,100 7,101 7,102 7,103 7,104
7,105 7,106 7,107 7,108 7,109 7,110 7,111 7,112
7,113 7,114 7,115 7,116 7,117 7,118 7,119 7,120
7,121 7,122 7,123 7,124 7,125 7,126 7,127 7,128
7,129 7,130 7,131 7,132 7,133 7,134 7,135 7,136
7,137 7,138 7,139 7,140 7,141 7,142 7,143 7,144
7,145 7,146 7,147 7,148 7,149 7,150 7,151 7,152
7,153 7,154 7,155 7,156 7,157 7,158 7,159 7,160
7,161 7,162 7,163 7,164 7,165 7,166 7,167 7,168
7,169 7,170 7,171 7,172 7,173 7,174 7,175 7,176
7,177 7,178 7,179 7,180 7,181 7,182 7,183 7,184
7,185 7,186 7,187 7,188 7,189 7,190 7,191 7,192
7,193 7,194 7,195 7,196 7,197 7,198 7,199 7,200
So, if i launch the event clicking on the number 7,182
The report will display right away the first page:+
1
11 13 16 20 25 31 38 46
55 65 76 88 101 115 130 146
163 181 200 220 241 263 286 310
335 361 388 416 445 475 506 538
571 605 640 676 713 751 790 830
871 913 956 1,000 1,045 1,091 1,138 1,186
1,235 1,285 1,336 1,388 1,441 1,495 1,550 1,606
1,663 1,721 1,780 1,840 1,901 1,963 2,026 2,090
2,155 2,221 2,288 2,356 2,425 2,495 2,566 2,638
2,711 2,785 2,860 2,936 3,013 3,091 3,170 3,250
3,331 3,413 3,496 3,580 3,665 3,751 3,838 3,926
4,015 4,105 4,196 4,288 4,381 4,475 4,570 4,666
4,763 4,861 4,960 5,060 5,161 5,263 5,366 5,470
5,575 5,681 5,788 5,896 6,005 6,115 6,226 6,338
6,451 6,565 6,680 6,796 6,913 7,031 7,150 7,270
7,391 7,513 7,636 7,760 7,885 8,011 8,138 8,266
8,395 8,525 8,656 8,788 8,921 9,055 9,190 9,326
9,463 9,601 9,740 9,880 10,021 10,163 10,306 10,450
I need it to display these:
10
24,398,615 24,405,601 24,412,588 24,419,576 24,426,565 24,433,555 24,440,546 24,447,538
24,454,531 24,461,525 24,468,520 24,475,516 24,482,513 24,489,511 24,496,510 24,503,510
24,510,511 24,517,513 24,524,516 24,531,520 24,538,525 24,545,531 24,552,538 24,559,546
24,566,555 24,573,565 24,580,576 24,587,588 24,594,601 24,601,615 24,608,630 24,615,646
24,622,663 24,629,681 24,636,700 24,643,720 24,650,741 24,657,763 24,664,786 24,671,810
24,678,835 24,685,861 24,692,888 24,699,916 24,706,945 24,713,975 24,721,006 24,728,038
24,735,071 24,742,105 24,749,140 24,756,176 24,763,213 24,770,251 24,777,290 24,784,330
24,791,371 24,798,413 24,805,456 24,812,500 24,819,545 24,826,591 24,833,638 24,840,686
24,847,735 24,854,785 24,861,836 24,868,888 24,875,941 24,882,995 24,890,050 24,897,106
24,904,163 24,911,221 24,918,280 24,925,340 24,932,401 24,939,463 24,946,526 24,953,590
24,960,655 24,967,721 24,974,788 24,981,856 24,988,925 24,995,995 25,003,066 25,010,138
25,017,211 25,024,285 25,031,360 25,038,436 25,045,513 25,052,591 25,059,670 25,066,750
25,073,831 25,080,913 25,087,996 25,095,080 25,102,165 25,109,251 25,116,338 25,123,426
25,130,515 25,137,605 25,144,696 25,151,788 25,158,881 25,165,975 25,173,070 25,180,166
25,187,263 25,194,361 25,201,460 25,208,560 25,215,661 25,222,763 25,229,866 25,236,970
25,244,075 25,251,181 25,258,288 25,265,396 25,272,505 25,279,615 25,286,726 25,293,838
25,300,951 25,308,065 25,315,180 25,322,296 25,329,413 25,336,531 25,343,650 25,350,770
25,357,891 25,365,013 25,372,136 25,379,260 25,386,385 25,393,511 25,400,638 25,407,766
25,414,895 25,422,025 25,429,156 25,436,288 25,443,421 25,450,555 25,457,690 25,464,826
The exact page in with the event was launched. so the user would only see the number changing.
Edited by: carlosccc on Dec 3, 2010 3:11 PM
Edited by: carlosccc on Dec 3, 2010 3:27 PM
Edited by: carlosccc on Dec 3, 2010 3:30 PM
Similar Messages
-
How can i reorder the columns in the do not display section of the interactive report.
Hi,
My interactive report contains 185 columns, and the user requieres to build his customized reports with some columns, but the he gets lost between this amount of columns, this would be easier if the columns in the do not display section of the interactive report would be sorted automaticaly, Is this possible?
Thanks a lot,Hi Eva,
One solution would be to order the column names alphabetically. You can create a JavaScript dynamic action to handle the sorting.
The shuttle of the IR attribute "Select Columns" have the ID's "apexir_SHUTTLE_LEFT" or the Hidden colums and "apexir_SHUTTLE_RIGHT" for the displayed columns.
The function you'd need to create would look like:
var options = $('select#apexir_SHUTTLE_LEFT option');
var arr = options.map(function(_, o) { return { t: $(o).text(), v: o.value }; }).get();
arr.sort(function(o1, o2) { return o1.t > o2.t ? 1 : o1.t < o2.t ? -1 : 0; });
options.each(function(i, o) {
o.value = arr[i].v;
$(o).text(arr[i].t);
var options = $('select#apexir_SHUTTLE_RIGHT option');
var arr = options.map(function(_, o) { return { t: $(o).text(), v: o.value }; }).get();
arr.sort(function(o1, o2) { return o1.t > o2.t ? 1 : o1.t < o2.t ? -1 : 0; });
options.each(function(i, o) {
o.value = arr[i].v;
$(o).text(arr[i].t);
You'd need to find the propper timing for the dynamic action to run, I guess click of the button "Select Columns" would do the trick.
Regards,
Vincent
http://vincentdeelen.blogspot.com -
Display more than one interactive report on a page
Hi,
is it possible to display more than one interactive report on a page.
Thanks for any idea
NorbertYou can't display two on one page, but it is possible to have multiple conditional interactive reports. See Duncs most excellent blog:
http://djmein.blogspot.com/2008/03/multiple-interactive-reports-on-one.html
This is probably an unsupported approach.
Cheers
Shunt -
Display total cost in interactive report
Hello,
I have created one interactive report, on which i have applied control break on one of the column say department.
there is one column on my report which is showing price,
so,I want to add one more row at the bottom of report showing total of of the prices.
for ex.
Department type : Sales
ID----------NAME-----------SAL------------ DEPT
1--------------A------------- 100--------------10
1--------------B------------- 300--------------12
Department type : Marketing
ID----------NAME-----------SAL------------ DEPT
1--------------C------------- 100--------------10
Total-------------------------400
Apex Version : 4.1
Database : 11g
Thanks in advance
JitendraHi,
How do I rename the label on the break total function?
For ex, If I use break total(sum) function, it displays Total (Column Name). How do I get rid of the Total keyword in the Interactive Reporting?
Please help.
Thanks. -
Control break on column displayed as link in Interactive Report
Hi,
If someone can help me, i'd greatly appreciate it!
I created an interactive report - one of the columns has a link attached to url specified in the Report Attributes/ link section.
When I use the control break feature in the gear icon, the report seems to be grouped by the url/link and not by the actual column value.
When I remove the link from the column - all is fine and the break does work.
This column must get displayed as a link. Is there any workaround for this problem?
Thanks,
Hindy
Edited by: hindyp on Dec 2, 2009 7:33 AMHi,
I don't know the details of the procedure, but you would have something like:
CREATE OR REPLACE PROCEDURE "print_model_change"
v_acctnum NUMBER,
v_model VARCHAR2,
v_rrcode NUMBER
AS
BEGIN
.. DO SOMETHING WITH v_acctnum, v_model, v_rrcode
END;This needs to be updated to something like:
CREATE OR REPLACE PROCEDURE "print_model_change"
v_manager_model NUMBER
AS
BEGIN
DECLARE
v_acctnum NUMBER;
v_model VARCHAR2;
v_rrcode NUMBER;
BEGIN
SELECT ACCTNUM, MODEL, RRCODE
INTO v_acctnum, v_model, v_rrcode
FROM .. your report's FROM statement plus ..
WHERE MANAGER_MODEL = v_manager_model;
.. DO SOMETHING WITH v_acctnum, v_model, v_rrcode
END;
END;and followed by:
GRANT EXECUTE ON "print_model_change" TO PUBLICto make it available
The existing code receives all the data it would need (presumably). The updated code receives the manager_model value and, using the same FROM clause that you have for your report PLUS a WHERE clause (or, if you are using a WHERE clause in your report, change this to AND), finds the data that it needs for v_acctnum etc. After it has that data, the rest of the existing code can be used unchanged.
Andy -
How to introduce blank line separator in Interactive Report
Hi,
I've an Interactive Report that shows date-ordered records (game fixtures for our local Ice Hockey team).
I'm using highlights and filters to make the output more "meaningful".
Any advice on how to introduce a horizontal blank-record "gap" in the data to separate the rows of output please?
I know I can use the "Break" feature, but its not that pretty in this circumstance - it looks like overkill.
All I want to do is to deliniate the fixtures that occur in separate weeks.
The current list of fixtures is viewable via: [http://fixtures.naihc.co.uk/apex/f?p=1:2|http://fixtures.naihc.co.uk/apex/f?p=1:2]
I've created a hidden column that calculates the Week of the Year: a simple to_char(faceOff, 'IW') wrapped inside
a "to_number" for sorting purposes.
If you look at the output, its not that blindingly obvious which fixtures happen on which week - a simple horizontal
line gap when the week changes would look nice.
Some sort of SQLplus "break on weekOfYear skip 2" or so.
Thankyou in advance.
MungoI've created a hidden column that calculates the Week of the Year: a simple to_char(faceOff, 'IW') wrapped inside a "to_number" for sorting purposes.Won't that give you a problem when viewing a period of a season that spans 2 calendar years? The weeks from the later year appear before those in the first year:
select d, to_number(to_char(d, 'iw')) week_of_year
from t
order by season, week_of_year, d
D WEEK_OF_YEAR
09-Jan-2010 1
10-Jan-2010 1
16-Jan-2010 2
17-Jan-2010 2
23-Jan-2010 3
24-Jan-2010 3
05-Dec-2009 49
06-Dec-2009 49
12-Dec-2009 50
13-Dec-2009 50
19-Dec-2009 51
20-Dec-2009 51
26-Dec-2009 52
27-Dec-2009 52
02-Jan-2010 53
03-Jan-2010 53
25-Sep-2010 38
17 rows selectedAdditionally, I'm not sure that week of year is a measure that means a lot to most people (presence of week 53 is to say the least a bit strange). Could be better to use the ISO week to give the date the week began on, keeping the type as date to give the expected order, or calculate a season week number:
select d, trunc(d, 'iw') week_beginning
from t
order by season, week_beginning, d
D WEEK_BEGINNING
05-Dec-2009 30-Nov-2009
06-Dec-2009 30-Nov-2009
12-Dec-2009 07-Dec-2009
13-Dec-2009 07-Dec-2009
19-Dec-2009 14-Dec-2009
20-Dec-2009 14-Dec-2009
26-Dec-2009 21-Dec-2009
27-Dec-2009 21-Dec-2009
02-Jan-2010 28-Dec-2009
03-Jan-2010 28-Dec-2009
09-Jan-2010 04-Jan-2010
10-Jan-2010 04-Jan-2010
16-Jan-2010 11-Jan-2010
17-Jan-2010 11-Jan-2010
23-Jan-2010 18-Jan-2010
24-Jan-2010 18-Jan-2010
25-Sep-2010 20-Sep-2010
17 rows selected
select d, dense_rank() over (partition by season order by trunc(d, 'iw')) season_week
from t
order by season, season_week, d
D SEASON_WEEK
05-Dec-2009 1
06-Dec-2009 1
12-Dec-2009 2
13-Dec-2009 2
19-Dec-2009 3
20-Dec-2009 3
26-Dec-2009 4
27-Dec-2009 4
02-Jan-2010 5
03-Jan-2010 5
09-Jan-2010 6
10-Jan-2010 6
16-Jan-2010 7
17-Jan-2010 7
23-Jan-2010 8
24-Jan-2010 8
25-Sep-2010 1
17 rows selected
Any advice on how to introduce a horizontal blank-record "gap" in the data to separate the rows of output please?Looking at it, but the HTML generated by the IR does not appear to include decent options for CSS selectors that can be used for modification. Certainly not anything that'll work in IE6 and 7... -
Interactive Reports: Display data on two lines per row?
Is it somehow possible to display a single row across two lines in an interactive report?
Something like this:
Row1 Field 1, Row1 Field 2, Row1 Field 3
Row1 Field 4 (spanning across the other fields)
Row2 Field 1, Row2 Field 2, Row2 Field 3
Row2 Field 4 (spanning across the other fields)
Row3 Field 1, Row3 Field 2, Row3 Field 3
Row3 Field 4 (spanning across the other fields)
... etc
For example, I have a "Remarks" column that would look better on its own line, rather than being squeezed into the same row with the other columns.
I realize that this layout might not be possible out-of-the-box, but I was thinking that perhaps some javascript/jQuery trick could be used. Unfortunately, my jQuery-fu is not strong yet, so I'm asking for help...
(I also know that this type of layout is possible using a classic report with a custom template, but I would prefer to use the Interactive Report if at all possible.)
- MortenHi,
Try this to page HTML header
<style>
.apexir_WORKSHEET_DATA td{white-space:nowrap!important;}
</style>At least it work with firefox 3.5 for me
Br, Jari -
Displaying an interactive report row using two lines
Is there a way to take a report row from an interactive report that has too many columns for one display row and display using 2 rows? This would minimize the amount of scrolling the user would then need to do.
Thanks in advance!Hi,
I dont think we can show a single row as two lines in an interactive report but if you use a classic report instead of interactive then you can do that by creating your own custom report template from scratch and selecting templete type as Named Column (row template) and show the row in what ever way you need...any way if you find any solution for interactive report just post your solution here which will help me too
Thanks,
Mahesh -
Interactive report timestamp precision display
Hi all,
I converted old "date" data-type to "timestamp(1) with local time zone" in the database tables.
when I display these fields in interactive report it displayed with 6 digits precision (oracle default), but when I use SQL command under APEX it display them with only 1 digit precision as the database column definition.
APEX all the time see these columns as type DATE !?
anybody know how to display these columns as they stored in the database? (i.e. 1 digit precision)
and how can I alter session time zone inside Apex to check that new columns working properly?
thanks,
Edited by: whYMe on Feb 3, 2010 11:38 AMWhat about Column type that written beside the column header & column name under report attributes tab? I see it "DATE" for all related date datatypes.
what about checking that APEX pages are recognize this data type locally on the client PC.
I currently make an application which will be used over 4 different time zones, and I want each time zone see their local time in all date/time fields.
How can I check that? -
JavaScript error on Interactive Report
When clicking on the Magnifying glass of my interactive report search bar, I receive a JavaScript error.
Line: 2 Char: 15193 Error: Syntax Error
The page that I am navigating to has 2 regions. The first is an interactive report and the second is an html region that has an Iframe reference to another interactive report. Based upon the selection of a radio group, the corresponding region(interactive report) displays. All other interactive reports work fine when their pages don't have a region with a Iframe reference.
If I navigate to another page after the error occurs and then come back to the page, everything then works fine. The error only happens on the first use. I have installed the latest patch set for Apex 3.2 I currently am running 3.2.1.00.11. I read a bug on Metalink that referenced this javascript error, but applying the patch set does not seem to fix the issue. The bug was 8568894.
Any help would be appreciated.This might be useful for others also...
After hours and hours of debugging headers and responses and comparing pages to others which work, I realised that this interactive report's display condition is based on REQUEST = SUBMIT.
As such, the actions menu will NOT set the Request parameter when clicking in the actions menu and the Apex engine refuses to send anything back to the browser - not even an error message.
I'll raise a bug for this via Oracle Support.
Cheers, Pete -
Including a thumbnail image in an interactive report
Is there a way of including a thumbnail image on the lines of an interactive report? My usual method of including a thumbnail in a region is to add a rendering reference in the column formatting part of the report format. However this doesn't seem possible within an interactive report. Any suggestions on how to accomplish this?
Thanks,
GeorgeI used this example but I cant show picture in my region using this procedure. It displays simbol for broken image. Any help. I even added grants for procedure, but it just does't work. This is how I call procedure in html region:<img src="#OWNER#.display_thumb?p_photo_id=3084374128401555434" />
-
Download from Interactive Report to csv is not working
Hi there,
when I try to create a download form my interactive report I get an empty csv/pdf.
I just checked with other report pages where the download functionality is working - but the settings seem the same.
In the interactive report properties I've set the check boxes for csv and pdf and it is also displayed properly then on the report page. But when I click on the download (csv or pdf) just an empty document is opened.
What settings can I check now - what might be the reason for the error?
BR & thank you,
LenaKeerti,
You're using the "Display Condition" of the Interactive Report Region (IRR) to show the report or not.
If you have multiple selects just use a PL/SQL expression as in:
:P1_MULTI_1 IS NOT NULL
AND :P1_MULTI_2 IS NOT NULLNow, if that works for you lets take things a little further... You don't need the second submit button all the time (I'd get rid of it entirely but you seem to really want to hide the region until a selection is made). I did the following:
1. Updated the display condition of the report to use a PL/SQL expression.
2. Set the display condition of the submit button to the opposite of the IRR.
3. Added the item name of the select to the interactive report attributes > Advanced Attributes > Page Items to Submit.
Now the go button can be used for everything.
Regards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigen
http://sourceforge.net/projects/plrecur
Edited by: Dan McGhan on May 14, 2009 12:28 PM
Updated as only clicking "go" works with Page Items to Submit. -
Order by not working on Interactive Report
I have created an Interactive Report. My select statement contains an ORDER BY. When the report displays it is not in the correct order. How can I control the display order of an Interactive Report?
hi Alfred,
Where can I define the sorting order ? I would like the first call of the report already have a sort.
I know the user can customize the sorting in the report but not at the first call!
I hope it is understandable ;-)i think when the page upload u want to sort the report.
then
in report attributes>column attributes >edit the each column>column definition>remove the tick on sort all >apply changes and give order by i n your query
Regads
pavan -
Interactive Report Search bar is not working
Hello all,
I'm working on a Report. I has two regions, one is for select list criteria and Other is sql query.
To remove the No data forund. I added REQUEST = 'GO' for sql region.
When i run the report, selecting all my criterias and click search i get the interactive report.But the tool is not working. If i remove the REQUEST = 'GO' it's working.
Can anybody please help me.
Thanks,
KeertiKeerti,
You're using the "Display Condition" of the Interactive Report Region (IRR) to show the report or not.
If you have multiple selects just use a PL/SQL expression as in:
:P1_MULTI_1 IS NOT NULL
AND :P1_MULTI_2 IS NOT NULLNow, if that works for you lets take things a little further... You don't need the second submit button all the time (I'd get rid of it entirely but you seem to really want to hide the region until a selection is made). I did the following:
1. Updated the display condition of the report to use a PL/SQL expression.
2. Set the display condition of the submit button to the opposite of the IRR.
3. Added the item name of the select to the interactive report attributes > Advanced Attributes > Page Items to Submit.
Now the go button can be used for everything.
Regards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigen
http://sourceforge.net/projects/plrecur
Edited by: Dan McGhan on May 14, 2009 12:28 PM
Updated as only clicking "go" works with Page Items to Submit. -
User Saved Interactive Reports like in the old days?
Hello!
Is there a way to display user saved (private) interactive reports in 4.0.2 like they were displayed in 3.2.1 (tabs instead of the Reports Select List)?
BR PaulHi,
I don't know, if it officially possible, but do not think.
But this is possible with some adjustments in your template/code.
Here can you see my little example with saved interactive reports shown in a different SQL region.
http://apex.oracle.com/pls/otn/f?p=2071:201
Based on the query you can create the tabs and "fill" the tabs with the content.
Leonid
Maybe you are looking for
-
I have downloaded a movie onto my iPad but want to watch it on my TV. I have apple TV but the movie is not showing up on my "Rented Movies". How do I do this??
-
Advice on using .m2ts files in FCP 6.0.6
Hi All, A client just handed me a usb hard drive with a bunch of files transferred from a sony hdr-sr5. Each folder has a 3 files with .m2ts, .modd, and .moff extensions. I'm not sure how they did the transfer, but I'm guessing it wasn't with video e
-
When I open itunes on my computer my library comes up and everything is frozen. I cant do anything with it. How do i fix this?
-
Hi all, we are involved in a SAP BW Upgrade 7.0 --> 7.3. During the manual follow up steps, we are trying to launch some Bex query to test if all works fine. Some of this queries returns us the following message: Query XXX reading the data; the e
-
Process on Value-Request in Screen Exit
Hi, I have few fields in the screen exit to be supported with F4 Value Help. These values are not from R3 Dictionary Tables. The Values are N, P, T, F, R, K, M, G etc. When the User Clicks the Drop Down, all the possible values should appear in a sma