interactive report - highlight a line based on the date column in the past
We have an interactive report that shows an expiration date. We want to emphasize the lines when this date is in the past.How is that possible?
Best regards, Nann
Hi Nann,
Add the below css in the HTML of the page header
Kind regards
Shijesh
You can reward this answer marking it as useful or Correct ;)
Tags: Database
Similar Questions
-
Hide a line based on the State.
Hello, I have a requirement where I have to hide a line based on the State. I am able to highlight the lines but hide the entire line does not work.
Condition must be met on a line:
- Thus, if a sum of EXP5_11, EXP6_11, EXP7_11 and EXP8_11 in a current group is all zeros hide this line. Please refer to the RTF-model.
Attachments:
- RTF-model.
- XML file.
- Sample output generated when the lines are highlighted the meeting status.
Any help is much appreciated on how I can hide a line.
EM-: [email protected]
If please remove your IF condition and add the following code inside the foreach tag
This works very well in my test.
-
ORA-20987: APEX - interactive report region does not exist in the application
ORA-20987: APEX - interactive report region does not exist in the application
I'm trying to get the query of an international registration (interactive report) on a specific page in my application.
The code I am using is thesi:
create or replace function get_report_query (nPage_id number)
return varchar2
as
l_report apex_ir.t_report;
l_query varchar2 (32767).
l_list varchar2 (32767).
number of nRegion_id;
number of nIR_id;
OWA.vc_arr nm;
VL owa.vc_arr;
BEGIN
SELECT region_id
IN nRegion_id
Of apex_application_page_regions
WHERE application_name = "E-BRIL.
AND page_id = nPage_id
AND source_type = "interactive report";
nIR_id: =.
apex_ir.get_last_viewed_report_id (p_page_id = > nPage_id,)
p_region_id = > nRegion_id);
NM (1): = "DUMMY_JUST_TO_SET_UP_OWA_UTIL";
VL (1): = 'WHATEVER ';
OWA.init_cgi_env (nm.count, nm, vl);
l_report: = APEX_IR. () GET_REPORT
p_page_id = > nPage_id,
p_region_id = > nRegion_id,
p_report_id = > 0);
l_query: = l_report.sql_query;
because me in 1.l_report.binds.count
loop
l_list: = l_list | i||'. '|| l_report. Binds (i) .name | » ='|| l_report. Binds (i) .value;
end loop;
Return l_query;
end;
/
I want to get the query of the IR on my page 3. And I run;
get_report_query (3)
That's what I get:
ORA-20987: APEX - interactive report region does not exist in application, page 3 and 1278226325207011749 region. -Contact your administrator of the application.
ORA-06512: at "APEX_040200.WWV_FLOW_ERROR", line 630
ORA-06512: at "APEX_040200.WWV_FLOW_ERROR", line 911
ORA-06512: at "APEX_040200.WWV_FLOW_WORKSHEET_UTIL", line 33
ORA-06512: at "APEX_040200.WWV_FLOW_WORKSHEET_UTIL", line 55
ORA-06512: at "EBR_OWNER. GET_REPORT_QUERY', line 19
The regio_id seems ok, because when I ask this region_id of apex_application_page_regions, id 1278226325207011749 is returned.
Page 3 is also correct.
I tried to follow Denes Kubicek his blog (Denes Kubicek ApEx BLOG: interactive report query is).
What I'm doing wrong here?
We use the Apex 4.2.
Thanks in advance.
Reg,
Chris
1717220 wrote:
Please update your forum profile with a recognizable username instead of "1717220": Video tutorial how to change username available
ORA-20987: APEX - interactive report region does not exist in the application
I'm trying to get the query of an international registration (interactive report) on a specific page in my application.
The code I am using is thesi:
create or replace function get_report_query(nPage_id IN number) return varchar2 as l_report apex_ir.t_report; l_query varchar2(32767); l_list varchar2(32767); nRegion_id number; nIR_id number; nm owa.vc_arr; vl owa.vc_arr; BEGIN SELECT region_id INTO nRegion_id FROM apex_application_page_regions WHERE application_name = 'E-BRIL' AND page_id = nPage_id AND source_type = 'Interactive Report'; nIR_id := apex_ir.get_last_viewed_report_id (p_page_id => nPage_id, p_region_id => nRegion_id); nm(1) := 'DUMMY_JUST_TO_SET_UP_OWA_UTIL'; vl(1) := 'WHATEVER'; owa.init_cgi_env( nm.count, nm, vl ); l_report := APEX_IR.GET_REPORT ( p_page_id => nPage_id, p_region_id => nRegion_id, p_report_id => 0); l_query := l_report.sql_query; for i in 1..l_report.binds.count loop l_list := l_list||i||'. '||l_report.binds(i).name||'='||l_report.binds(i).value; end loop; return l_query; end;
I want to get the query of the IR on my page 3. And I run;
get_report_query (3)
That's what I get:
ORA-20987: APEX - interactive report region does not exist in application, page 3 and 1278226325207011749 region. -Contact your administrator of the application.
ORA-06512: at "APEX_040200.WWV_FLOW_ERROR", line 630
ORA-06512: at "APEX_040200.WWV_FLOW_ERROR", line 911
ORA-06512: at "APEX_040200.WWV_FLOW_WORKSHEET_UTIL", line 33
ORA-06512: at "APEX_040200.WWV_FLOW_WORKSHEET_UTIL", line 55
ORA-06512: at "EBR_OWNER. GET_REPORT_QUERY', line 19
The regio_id seems ok, because when I ask this region_id of apex_application_page_regions, id 1278226325207011749 is returned.
Page 3 is also correct.
I tried to follow Denes Kubicek his blog (Denes Kubicek ApEx BLOG: interactive report query is).
What I'm doing wrong here?
We use the Apex 4.2.
The '0' in line 31 should be "nIR_id".
What is the purpose of the lines 24-26?
-
Create lines based on the difference in date
Hello
I would like to create lines based on the difference between the start and end dates (per year).
for example
ID1 Start_time End_time ID2
07/01/2003 1, 12.00.00.000000000 2005-01-07 12.00.00.000000000 12307/01/1999 1, 12.00.00.000000000 07/01/2003 12.00.00.000000000 345
I need:
ID1 Start_time End_time ID2
07/01/2004 1, 12.00.00.000000000 2005-01-07 12.00.00.000000000 12307/01/2003 1 12.00.00.000000000 07/01/2004 12.00.00.000000000 123
1 01/07/2002 12.00.00.000000000 07/01/2003 12.00.00.000000000 345
07/01/2001 1, 12.00.00.000000000 01/07/2002 12.00.00.000000000 345
07/01/2000 1, 12.00.00.000000000 01/07/2001 12.00.00.000000000 345
07/01/1999 1, 12.00.00.000000000 07/01/2000 12.00.00.000000000 345
Thank you
Hello
Here's one way:
SELECT ID1
, ADD_MONTHS (start_time, 12 * (LEVEL - 1)) AS start_time value
, ADD_MONTHS (start_time, 12 * LEVEL) AS end_time
id2
FROM table_x
CONNECT BY LEVEL<= months_between="" (end_time,="" start_time)="">=>
AND PRIOR id2 = id2
AND PRIOR SYS_GUID () IS NOT NULL
;
I'm assuming that id2 is unique.
Would what results you if end_time wasn't exactly N years after start_time?
-
assign the number to a line based on the analytical condition function
Oracle 11g Server
ID val1 val2 1 0 0a 1 1 0 b 1 2 0c 2 0 0a 2 2 0 b WITH input AS (SELECT 1 id ,0 val1 ,'0a' val2 FROM dual UNION ALL SELECT 1 id ,1 val1 ,'0b' val2 FROM dual UNION ALL SELECT 1 id ,2 val1 ,'0c' val2 FROM dual UNION ALL SELECT 2 id ,0 val1 ,'0a' val2 FROM dual UNION ALL SELECT 2 Id ,2val1 ,'0b' val2 FROM dual) SELECT * FROM input;
!-[CodeBlockEnd:ae52826b-04c5-4aa4-a6c0-1d0405656e55]-->Output:
ID val1 val2 assigned_number 1 0 0a 0 1 1 0 b 0 1 2 0c 2 2 0 0a 0 2 2 0 b 1 The dense numbering sequence must be assigned to each line based on the column id and val1.
For an identifier given, the numbering begins only after val1 > 1 until then the assigned_number will be zero.
WITH the entry INTO
(SELECT 1 id)
0 val1
'0' has val2
OF the double
UNION ALL
SELECT 1 id
1 val1
b '0' val2
OF the double
UNION ALL
SELECT 1 id
2 val1
, 0'c ' val2
OF the double
UNION ALL
SELECT 2 id
0 val1
'0' has val2
OF the double
UNION ALL
SELECT the Id 2
2val1
b '0' val2
THE DOUBLE)
SELECT id, val1, val2,
Rank() over (partition by order of case when val1 > 1 then 0 otherwise end val1) dr-1
SINCE the entry;
ID VAL1 IS DR
---------- ---------- -- ----------
1 0 0a 0
1 1 0b 0
1 2 0c 2
2 0 0a 0
2 2 0b 1
-
change the color of line based on the value of column 5 Apex in the classic report
Version of the apex 5.0.0.00.31
Standard universal theme
Page theme default template
Classic report
Foldable report template
Hello
I know this question has been asked several times here, but I'm working on 5 Apex and need to know the correct way to do it in this version.
I need to change the color of the text of the entire line (no background color) based on the value in one of the columns of the classic report. I have just two conditions, if the value of column = Yes, color should be red, otherwise it must be green.
I am new to jscript and css, so appreciate if someone can tell me the solution with steps.
I have already checked this link that changes the value of the column, need to do something similar to the whole line.
https://tylermuth.WordPress.com/2007/12/01/conditional-column-formatting-in-apex/
Hi coolmaddy007-Oracle,.
Here's an example set up on the apex.oracle.com according to the specifications you gave: https://apex.oracle.com/pls/apex/f?p=35467:1
Version of the apex 5.0.0.00.31
Standard universal theme
Page theme default template
Classic report
Foldable report template
Here is how it is done:
Create a dynamic action with the following specifications:
Name: Give the appropriate name
Event: After refresh
Selection type: region
Region: select your region classic report
Condition: No strings attached
Action: Run the JavaScript Code
Fire on loading the Page: Yes
Code:
$('td[headers="JOB"]').each(function() { if ( $(this).text() === 'MANAGER' ) { $(this).closest('tr').find('td').css({"color":"red"}); } if ( $(this).text() === 'SALESMAN' ) { $(this).closest('tr').find('td').css({"color":"green"}); } if ( $(this).text() === 'CLERK' ) { $(this).closest('tr').find('td').css({"color":"blue"}); } });
NOTE: Download the selector appropriate for your knowledge $('td[headers="JOB"]') case using firebug/browser development tools.
Items concerned: leave blank.
PS: Changed the example to change the color of text instead of the background color.
I hope this helps!
Kind regards
Kiran
-
Adjust the height of the line in an interactive report for all lines
Hello
I have an interactive report with lots of data in certain cells. The height of the heights of lines varies, so that all data is visible in the cells.
I want to correct or to limit the row height to a specific value, so that all lines are displayed with the same height.
Do anyone knows how to win this? Thanks in advance.
Published by: kps204020 on 26.12.2012 20:27kps204020 wrote:
Thanks a lot for your answer.
I tried your proposal, but it has no effect. The cells in the report show all their content using as many lines as you need for this.This is the default behavior for the HTML table data (tables and cells grow to fit their content).
So I have always with lots of lines, lines and lines with only a few mixed lines in my IR dependant on the contents of the cell. Because some lines almost filling the whole screen, it is difficult to get an overview with regard to adjacent lines.
I use the Application Express 4.1.1.00.23. with the theme 21. Scarlet and Firefox 17.0.1.All users using Firefox?
In fact, I'm working on my first APEX Solution for use in my business and demanding customers a solution for this topic. So I'm very keen to find a solution.
I am very looking forward to your reply.I have been involved in similar questions in the past. My first reaction is simple: these data must be included in the report? The offending column can be removed from the primary report? They will always be visible in the display of the row and the detail view when it exists.
The second option is to create a detailed view of the report with a structure that is better suited to the data concerned and make it the default view. (For an example, see the treatment of the PRODUCT_DESCRIPTION column in the detail view of the report in the sample database Application: click the show details on the product page.)
The third possibility is some sort of customization of the presentation of the data. It will be using a combination of HTML/CSS/dynamic of the Actions/Plug-ins/JavaScript that you may not be familiar with: do you have any experience of these? To go this route, you must describe in detail how you want to present data, or what behavior is required when the data is too long and share a sample of the report on the apex.oracle.com we can work with.
-
Interactive report with alternating lines - 5 APEX
Heyho guys.
I got a task to set alternating line colors in my interactive report.
IM using Oracle 11 g Database XE with APEX 5.0.0.00.31 2.
I searched current debates and following this thread:
https://community.Oracle.com/thread/912414?TSTART=0
I followed the comments written there and I tried with javascript, they spoke aboud (I'm a newbie using javascript)
I pasted the following in my page header:
< script type = "text/javascript" >
IT IS THE INTERLACING
function decorateDataGrids (strClass) {}
var tables = document.getElementsByTagName ("table");
for (var i = tables.length; i-;)) {
If (tables.className == strClass) {}
var gridRows = tables [i] .getElementsByTagName ("tr");
for (var j = gridRows.length; j-;)) {If (j %2) {gridRows [j] .className = "even" ;}}
}
}
}
< /script >
< style >
/ * THIS REPLACES THE DEFAULT STYLES OF THE APEX * /.
table.apexir_WORKSHEET_DATA tr.even td {}
background-color: #F1F5FA! important;
}
table.apexir_WORKSHEET_DATA td {}
background-color: #FFFFFF! important;
border: 1px solid #B3B3A7! important;
padding: 4px 8px! important;
}
< / style >And called in my link to my column ID text field via:
"< img src =" "#IMAGE_PREFIX #edit.gif" alt = "" onload = "decorateDataGrids ('apexir_WORKSHEET_DATA'); ">
If I start the page now, nothing happens.
In the thread, we talk about bad SEO of the IR:
"OK here's why the code does not work." When you use getElementsByTagName, you get a collection, not a single item.
So when you make the comparison to see if the class of the table is an ApEx IR type, you need to reference the current table, not the entire collection. As follows... »
But I don't understand how I'm doing the right reference.
Someone at - it an idea to get this race?
Thank you
pleNn
pleNn wrote:
Heyho guys.
I got a task to set alternating line colors in my interactive report.
IM using Oracle 11 g Database XE with APEX 5.0.0.00.31 2.
I searched current debates and following this thread:
https://community.Oracle.com/thread/912414?TSTART=0
I followed the comments written there and I tried with javascript, they spoke aboud (I'm a newbie using javascript)
I pasted the following in my page header:
for (var j = gridRows.length; j-;)) {If (j %2) {gridRows [j] .className = "even" ;}}
}
}
}
And called in my link to my column ID text field via:
If I start the page now, nothing happens.
In the thread, we talk about bad SEO of the IR:
"OK here's why the code does not work." When you use getElementsByTagName, you get a collection, not a single item.
So when you make the comparison to see if the class of the table is an ApEx IR type, you need to reference the current table, not the entire collection. As follows... »
But I don't understand how I'm doing the right reference.
Someone at - it an idea to get this race?
It's all totally obsolete with respect to the 5.0 APEX where interactive reports have been completely redesigned and rebuilt.
To complete the full version number of APEX, always indicate what theme and browser (s) / version (s) you use when asking questions of shape/layout visual layout.
To go from rank (Zebra) when you use the universal theme distribution in interactive reports, see Re: interactive report - no line scratched?
-
Interactive report that returns 0 rows on the initial screen of forcing
How can I get the initial display of my interactive to have 0 rows (and quickly) reports on the initial display, so that the user can determine the lines they want without having to wait for the report view without much in the way of the filters?
My reports many lines of 50-100 k with several joins of tables: so they are slow and the initial default result set is not useful for them, until they start of construction interactive filters themselves.
I tried to add a default I / filter R which is never true, return 0 rows, but if I have good corrrectly, APEX will execute the sql 1, returning the default #of ranks backward, THEN that wraps like a subselect and applies to the i / R filters. So, I still have to wait for the report of 'run' before its filtered to 0 rows...
I'm experimenting also with a flag of pxx_firsttime, intiall value, and according to my report SQL NVL(:Pxx_FIRSTTIME,'Y') = n and (rest of joins of tables)...
the problem I have with this is, how can I get this option the value N as the user begins to use the interactive report filters, etc., which seem NOT to resubmit the page?
Thank youHello
I tried to add a default I / filter R which is never true, return 0 rows, but if I have good corrrectly, APEX will execute the sql 1, returning back by default #of lines, THEN that wraps like a subselect and applies the > I / R filters. So, I still have to wait for the report of 'run' before its filtered to 0 rows...
Yes, you are right.
I assume that you already have using the paging Type as line from X to Y.
the problem I have with this is, how can I get this option the value N as the user begins to use the interactive report filters, etc., which seem NOT to resubmit the page?
Whenever the user do something with 'Actions', APEX IR will get updated. Thus, to create a dynamic Action that will be triggered before the refreshment of your IR, update the session state from P1_FIRSTTIME_FLAG to "n".
Kind regards
Hari -
Generating lines based on the value of the column?
Hi all
I would like to know if there is a function that can help me in creating lines based on a column value and, if so, which. I'm on version 11.2.0.3.0
for example, I have these data in the table:
ID O A C
1 5 3 5
2 9 2 3
Where ID is an identifier unique record and column C contains the number of records, I would have returned for this ID. In this example, the folder with the ID 1 would be repeated 5 times and the folder with the id 2 would be repeated 3 times. The result would look like this:
ID O A C
1 5 3 5
1 5 3 5
1 5 3 5
1 5 3 5
1 5 3 5
2 9 2 3
2 9 2 3
2 9 2 3
Column C contains the number of repetitions Records and is defined as a positive integer > = 1.
Of course, in real life, the table contains (at this time) 41 M number of records and the value of C can vary between 1 and 554, hardcode on the example above values is not possible.
Any pointers in the right direction are much appreciated.
Kind regards
LennertSQL> ed Wrote file afiedt.buf 1 with t as (select 1 as id, 5 as c from dual union all 2 select 2, 3 from dual) 3 -- 4 select id, c 5 from t 6 connect by level <= c 7 and id = prior id 8* and prior sys_guid() is not null SQL> / ID C ---------- ---------- 1 5 1 5 1 5 1 5 1 5 2 3 2 3 2 3 8 rows selected.
-
Interactive report uncheck filter when you add the new filter
Y at - it all possibliity to uncheck all filters that are already defined in an interactive report when you create a new filter?
My first approach by adding a dynamic action that is bound to the search field:
key_down = event
jQuery Selector = #apexir_SEARCH
scope = live event
The Action contains:
$('input:checkbox').attr ("checked", false);
At present, there are 2 problems:
1. when the user presses 'go' or 'enter' the check box is checked again when the result is displayed
2. If a filter is defined when the search box is not used, it does not workHi Oliver,.
too many problems I think. You can try to hack any POST message, analyze it, and if it's p_widget_action = FILTER stop action and interfere with an AJAX to APEX_UTIL call. IR_FILTER or IR_RESET. After the AJAX request was returnd (synchronous), you can start again the original MESSAGE that defines the new filter.
Hmm. sounds to me like you'd better ask the customer if he is willing to pay for this kind of convenience.
Greetings from Germany from the North,
Andreas -
Web Forms: Deleting line based on the value of a specific column
Hello
I have an online form in which I want to apply delete missing on the ranks, but only on the value of the first column. So, if the first column is #missing I want the deleted row, even if the columns are given in it.
Is it possible to do this?
I'm on ver 11.1.2.2 Hyperion Planning
Shehzad
Published by: shehzad k on January 24, 2013 11:51Unfortunately, no. There is no way to add the delete line based SOLELY on the existence of a value in the first column. It would be nice to see some of the more advanced features "conditional delete", we en flies over to the planning of the entry forms.
You can do the "clumsy" things with data validations where you gray - out ranks in view of the existence of a value in a particular cell, however while this might SUGGEST that the user should not enter data in a particular line, it would not PREVENT to do so.
We have seen many improvements in form lately with the introduction of data validations. I hope the momentum continues.
-Jake
-
Interactive report select all lines
I have an I / R report that a user can select the columns, and then update > 1 rank a moment with the other page element values.
I SELECT ALL and CLEAR ALL buttons page.
The report runs slowly, due to a very complicated sql statement.
I'm trying to select or clear the column 1 without the 'submission' of the page and re-run the 'slow' report again.
At present, the SELECT ALL:
(1 submits the page 2) sets Pxx_SELECT_ALL_ROWS = 'Y' 3) reruns the report with a decoding 'control' of all lines.
Is there a way to do this WITHOUT submitting the page?
The box is column 1 of each row by using:
HTMLDB_ITEM. CHECKBOX
(1, R.RESEARCH_ID,
decode (: Pxx_SELECT_ALL_ROWS, 'Y', 'CHECKED',)
decode (instr (nvl (:Pxx_SELECTED_IDS,0),R.RESEARCH_ID),0,NULL,'CHECKED'))
)
AS select_flag,Use * $f_CheckAll * JavaScript API
Just run this JavaScript to check all your column f01
$f_CheckAll('', true, $('input[name="f01"]'));
OR create a JavaScript function
function checkall() { $f_CheckAll('', true, $('input[name="f01"]')) }
Call this function in your button with URLS of the target type and URL value javascript:checkall();
-
Reports in a dashboard based on the values in a table
Hello
I have a report that is drawn using the session based on the user variable. My table is like this.
User name Department
Scott accounting
Mike sales
Rob Marketing
All of Jeff
I have "TRANSFERRED" who has information of the employee in this Department, such as
Employee first name, employee name, Employee Department
When Scott connects, it should be able to see all the accounting department employees, when Mike logs in he should see sales and so on... then my filter looks like this, superior ('employee'. ("" DEPARTMENT ") = upper (VALUEOF (NQ_SESSION. (("" DEPARTMENT ")). Which works very well.
But when Jeff connects it should show all the departmenst, how this can be accomplished?
Thank you.Maybe something like this will work for you:
"Employee". "" DEPARTMENT "AS cases when superior (VALUEOF (NQ_SESSION. (("" DEPARTMENT ")) = 'ALL' and '%' Else higher (VALUEOF (NQ_SESSION. (("" End of SERVICE "))
Paul
-
Interactive reports using collections - how to control the column headers
Hello
I found a link on the forum somewhere that showed a step by step how to use collections with interactive reports, you can dynamically generate SQL code and also control the column headers. Does anyone know where is the manual?
Otherwise, I know how to generate dynamic SQL code, but what is the best way to control the column headers.
Sometimes, the report will have 17 columns and other times up to 30 columns.
Thank you, BillHi Bill,
You can use * & ITEMNAME.* notation for the column headers. This means that you can have elements of page/application that contains the topics you need which can, of course, be filled using PL/SQL and, thus, could be established in your code. It's a bit of pain to have to do this for each section, but I do not see a quicker method.
Andy
Maybe you are looking for
-
ICloud received Alias not recognized on devices not connected to iCloud
I have a sender that uses an alias to iCloud by using its own domain. Alias addresses appears as it should on my iMac and iPhone but my iPad gets 'real' email that transfers to the alias. Note: iCloud is not configured on my iPad. Can someone explain
-
My updated iphone to date, Req'd new pw, don't let me in.
My iPhone updated, new required password, went online, set up the new pw, phone will not let me.
-
IPad does not print, low on ink message
I have iOS iPad running 7.0.3 and office jet 8500 a910 firmware lrp1fn123ar. AirPrint works ok until about a month ago, but it's not. When I print from an application such as the mail, iPad comes up with the message 'low on printer ink', followed by
-
Elite HPE-180 t &; ATI HD 4650 - Best Way to 3 monitors?
I have 3 monitors: 1 asus 23.6 in. [DVI, HDMI, VGA] 2 asus 23.6 in. [DVI, HDMI, VGA] 3 LG 22 in. [HDMI, VGA] What I read here and since I have not been able to get 3 monitors running off my ATI HD 4650, I'll try to find the cheapest, best that my sys
-
NFC is turned off, BUT still using battery
Hello. I bought my Xperia double Z3 this new year. The battery performance was remarkable in the departure. He gave me at least 2.5 to 3 days on this time initial additional use when there is excitement on a new phone. Release minimal during the day