Highlight the line in the standard State is based on the value in the column...
I'm trying to highlight the lines of a standard report based on the value of the TICKET_TYPE column.I followed the post:
but the difficulty. I have the following error:
ORA-06550: line 1, column 34: PLS-00201: identifier 'SHRIMP' must be declared ORA-06550: line 1, column 7: PL/SQL: statement ignored
ERR-1025 expression PLSQL treatment error. SHRIMP = "SHRIMP".
My report query is:
Select T.TRIP_ID,
T.TRIP_ID trip_show,
T.TRIP_ID trip_select,
T.DAYS_AT_SEA,
T.NBR_OF_CREW,
T.TRIP_START_DATE,
T.VESSEL_ID,
o.ticket_type ticket_type
TRAVEL t, o one_ticket_type
where t.dea_permit_id =: G_DEA_PERMIT_ID and t.trip_id = o.trip_id
I created a new template called a ticket-enhancement.
line 1 = tempate < td #ALIGNMENT headers # = "" #COLUMN_HEADER # "class ="t14data"style =" background: red "> #COLUMN_VALUE # < table >"
model condition rank 1 = use based on the expression of pl/sql
template expression rank 1 = #TICKET_TYPE # = "SHRIMP" (* I also tried without the quote)
any thoughts? Thank you!!
Edited by: KEH813 may 25, 2010 11:10
I'm not sure of the JavaScript. Whenever you sort the report, coloring disappears and you can send the page again.
PS Don't forget to mark the answers as Correct or useful.
Best regards
Mathieu Gosselin
Tags: Database
Similar Questions
-
Highlight the column header text in TableView
Hello
How to highlight the column header text in tableView?
Thanks in advance.
Kind regards
Fabrice
You can try the following CSS:
.table-view .column-header .text { -fx-underline: true; }
-
How to highlight a cell IR report based on a value in another column?
I used the code below and the cell is highlighted for all use column formatting css #COLTOHIGHLIGHT #add to pageBut what I need is if the HIDDENCOL is 'OUT' value and Custom2 should apply if the HIDDENCOL has value 'IN' then custom1 should apply. How to do? Please help thanks loly
Sinduja Sivasailam wrote:
Thank you for your contributions. I understand the concern.
As suggested, I've reproduced the problem in the environment of the APEX.
Thanks for making the effort. I suggest the following approach, which is more flexible and allows a more efficient use of the separation of concerns as above. I created an example on a new page to illustrate this.
1. change the report query to
select jan , feb , mar , jan_st , feb_st , mar_st from project_status
2. in the report, set the month columns to display text and status columns to be hidden.
3. set the property Expression of HTML for each column of months to use a HTML
data
attribute to include metadata status as well as the displayed value:#JAN#
4. create a dynamic action after Refresh on the IR region to retrieve the status of project code in the columns of months and apply it as a class to the cell of report element:
Event: After refresh
Selection type: Region
Region:
Real Actions
Sequence: 10
Action: Run the JavaScript Code
Fire on Page load: Yes
Code
$('.a-IRR-table td [data-prj-status]').each(function () { var x = $(this); x.parent().addClass(x.data('prjStatus')); });
5 Add a style sheet to the page of Inline CSS property with a rule to set the background color of cell as required for each State of the project:
.a-IRR-table tr:hover td { opacity: 0.7; transition: opacity .1s } .a-IRR-table td.REQ, .a-IRR-table tr:hover td.REQ { background-color: #ff9; } .a-IRR-table td.INP, .a-IRR-table tr:hover td.INP { background-color: #cf9; } .a-IRR-table td.YTS, .a-IRR-table tr:hover td.YTS { background-color: #ccf; } .a-IRR-table td.CR, .a-IRR-table tr:hover td.CR { background-color: #f66; } .a-IRR-table td.COM, .a-IRR-table tr:hover td.COM { background-color: #9cf; }
-
How to merge values into a line, based on distinct values in another column
I have a table like
updatedby updateddate text
Approval John 1st May 2009 1 added file
Approval of John 1 May 2009 2 added file
May 2, 2009 1 deleted David approval form
I need the text column values to be concatenated and displayed for unique (updatedby updateddate) records. The output is something like
updatedby updateddate text
Approval of May 1, 2009 John save further approval 1 sheet, 2 added
May 2, 2009 1 deleted David approval form
I had planned to do it using PLSQL. Is there a way to achieve this in SQl...? Please suggestSQL> ed Wrote file afiedt.buf 1 with t as (select 'John' as updatedby, to_date('01-May-2009','DD-MON-YYYY') as updateddate, 'Approval record 1 added' as text from dual union all 2 select 'John', to_date('01-May-2009','DD-MON-YYYY'), 'Approval record 2 added' from dual union all 3 select 'David', to_date('02-May-2009','DD-MON-YYYY'), 'Approval record 1 removed' from dual) 4 -- END OF SAMPLE DATA 5 -- 6 select updatedby, updateddate, ltrim(sys_connect_by_path(text,','),',') as text 7 from ( 8 select updatedby, updateddate, text, row_number() over (partition by updatedby, updateddate order by text) as rn 9 from t 10 ) 11 where connect_by_isleaf = 1 12 connect by rn = prior rn+1 and updatedby = prior updatedby and updateddate = prior updateddate 13 start with rn = 1 14* order by 2 SQL> / UPDAT UPDATEDDA TEXT ----- --------- ---------------------------------------------------------------------------------------------------- John 01-MAY-09 Approval record 1 added,Approval record 2 added David 02-MAY-09 Approval record 1 removed SQL>
Edited by: BluShadow May 21, 2009 12:37
Argh! hair to the pole by SY -
Highlight the line in the sql statement
Using APEX 3.2
How can I highlight a row (changing fonts colors or change the background color) on a sql report based on a value in a column? If the BALANCE_AMT column is negative, I would like to point out the line.
Thanks for your suggestions offered!
SandieJust a guess but I think your column #BALANCE_AMT column data # are not quite a number. There is a comma in the Oracle error: error parsing of expression PLSQL. -388,200<>
-
Hi, forms 6i, db 10g
I created a lov based on this query
select * from items_qty_vu -- database view
and the view code is
CREATE OR REPLACE FORCE VIEW items_qty_vu (serial, item_id, expiry_date, qty) AS WITH item_units_plus AS (SELECT item_id, unit_id, factor, LEAD (factor, 1, 1e99) OVER (PARTITION BY item_id ORDER BY factor) AS next_factor, ROW_NUMBER () OVER (PARTITION BY item_id ORDER BY factor DESC) AS rnk FROM item_units) SELECT ID.serial, ID.item_id, ID.expiry_date, SUBSTR (SYS_CONNECT_BY_PATH ( TRUNC ( MOD (( ID.qty - ID.qty_allocated ), iup.next_factor ) / iup.factor ) || ' ' || u.unit_name, ', ' ), 3 ) AS qty FROM item_detail ID JOIN items i ON i.item_id = ID.item_id JOIN item_units_plus iup ON iup.item_id = ID.item_id JOIN units u ON u.unit_code = iup.unit_id WHERE CONNECT_BY_ISLEAF = 1 START WITH iup.rnk = 1 CONNECT BY iup.rnk = PRIOR iup.rnk + 1 AND ID.serial = PRIOR ID.serial ORDER BY ID.serial;
When I compile the form, I face the error FRM-30187,
If I replace my query "select * from items_qty_view" with "select item_id, serial, expiry_date of items_qty_vu", it compiles successfully.
As salamualikum, Salem,.
You must follow my instructions carefully.
1. Select the record group.
2. go in the record group property
3. Select and open the column specifications
4. highlight the column and check the decrease of the length, the bellows of the size that you cross more than 2000 then 2000.
Compilation of now and you're done.
Wow. you did.
Hamid
-
Apex 4.2Theme 21
I am able to highlight current form fields using get focus and lose focus of dynamic actions.
How to highlight the current line in the form of an updated report.
I tried to use DA with
Picker JQuery tr [headers = 'TAX'] (column in my report)
Run Javascript
$x_RowHighlight (this.triggeringElement, 'yellow');
Any help appreciated
Gus
Gusford Hello!
Try to update your JQuery selector to what follows, with a trigger event in the DA 'click ':
table. Report-standard tr
JR.
-
highlighting of lines in the classic report
I have a classic report with a disabled checkbox that I check a program.
Using the 25 Standard - apex 4.2.1 report theme
Only alternate lines are changed by the JavaScript below. Don't know what I have to do
for all verified ranks has highlighted.
I created an example on the website of oracle apex.
user name: [email protected]
password: whiskers
http://Apex.Oracle.com/pls/Apex/f?p=36690:2:112760870106921:
LOCATE THE REPORT * CODE
Select ename, empno, mgr, hiredate, sal, comm, deptno, job,
apex_item. CheckBox2 (p_idx = > 29, p_value = > empno,)
p_attributes = > DECODE (deptno, 10, "checked")
30, 'checked', NULL)
|| "disabled = disabled") action.
apex_item. RadioGroup (p_idx = > 30, p_value = > empno,)
p_attributes = > rb DECODE(deptno,10,'disabled=disabled',))
WCP
******************************CODE ****************************
I'm trying to highlight the lines when the boxes are ticked and used the code depending on what can be found here:
onLoad = "javascript:changeTableColor();" »
******************************CODE ****************************
< script type = "text/javascript" >
var szColorTo = "#F5D0A9";
var szColorOriginal = "#CCCCCC";
function changeRowColour (pTarget)
{
pTR var = pTarget.parentNode.parentNode;
If (pTR.nodeName.toLowerCase ()! = 'b')
{
return;
}
if(pTarget.Checked == true) {}
pTR.style.backgroundColor = szColorTo;
} else {}
pTR.style.backgroundColor = szColorOriginal;
}
}
function changeTableColor() {}
var columnArray = document.getElementsByName ("f29");
for (i = 0; i < columnArray.length; i ++)
{
changeRowColour ([i] columnArray);
}
}
< /script >
Hello
Here is an example of use of jQyery
$("input[name=f29]").each(function(){ var lThis=$(this); if(lThis.is(":checked")){ lThis.parents("tr:eq(0)").children("td").css({"background-color":"#F5D0A9"}); } else { lThis.parents("tr:eq(0)").children("td").css({"background-color":""}); } });
Create a dynamic action that fires after the region refresh JavaScript execution. Place above in the code.
Kind regards
Jari
-
Highlight the table line number
I am using this code to highlight the row in my table but my table can vary in size, but a generally more than 1000 lines and code REALLY slows down the rest of my application. I was wondering is there a more efficient way to do the same task?
PauldePaor wrote:
I am using this code to highlight the row in my table but my table can vary in size, but a generally more than 1000 lines and code REALLY slows down the rest of my application. I was wondering is there a more efficient way to do the same task?
I figured that out I made a mistake of programmtic. Rather than use the Columns property node number, I used size of array to the control of the loop that considerably slowed down the action of the function
-
It is possible to activate the option "Highlight the whole line" on and off during execution in a multicolumn listbox?
I know that the option is available in the right click of the FP control menu, but I was wondering if this can also be done programmatically.
Thank you
Kas
If you have installed the script of LabVIEW, you will have the following property:
Tone
-
want to turn off highlight the particular list field line, when you click
Hello
I have a list of line 3 display, on which I have 2 lines that are highlighted with little color.
When I click on the particular line, I want to turn off the highlight on this line.
How can I remove the list and add to the list to turn off highlight the special line, which is which is clicked by the user.
Concerning
Antoine Singh
Hello
I was able to do
I have again to call the constructor of the list view by changing the value in the table highlight
Concerning
Antoine Singh
-
A statement UPDATE changes the line if the update changes the column even value?
HI -.
I have a main classification and the corresponding audit table. I have a trigger. I created using the suggestion:http://www.runningoracle.com/product_info.php?products_id=211
Now the problem that I am facing is that: if I run the same query (same value) update on the main table for n times (with the same data)... my audit table is updated with a new record every time. He is not able to determine that the value is the same.
My goal is to load the audit table data if the value in a cell in the main table is really have changed.
A statement UPDATE changes the line if the update changes the column even value?
Best regards
I have a main Table and the corresponding Audit Table. I have a trigger. I created using the suggestion:http://www.runningoracle.com/product_info.php?products_id=211
Why?
You try to resolve what made you what are the PROBLEM that select as the solution?
Now the problem that I am facing is that: if I run the same query (same value) update on the main table for n times (with the same data)... my audit table is updated with a new record every time.
Yes - it is EXACTLY what you say that you wanted to do and EXACTLY what the code does in this article.
He is not able to determine that the value is the same.
I think you mean that the code does NOT check if the value is the same. You can certainly change the code to do this check. But I have a question to start with your need for such a solution.
My goal is to load the audit table data if the value in a cell in the main table is really have changed.
OK - then modify the code to check EACH COLUMN and compare its NEW value to the OLD value and insert only the table of audit if SOME (or columns you care specifically) have changed.
A statement UPDATE changes the line if the update changes the column even value?
It depends on what you mean by 'change the line '. Of course to update a column with the SAME value does not change the resulting data value.
But the physical structure of the line, the location of the pieces of line and information in the header block (YVERT, etc.) will change. And, as others have said Oracle doesn't know and doesn't care, so if the new value of a column is the same as the old value will create redo, undo and the rest.
Start over and tell us what PROBLEM you're trying to solve. Then we can help you find the best way to solve it.
-
I'm trying to sign several documents and I have my saved signature under "fill & sign" the organization that generated the forms highlighted the signature lines and when I try to put my signature, it is pushed outside the signature.
Hi katepell,
You can simply drag the signature to the desired place by holding it with the mouse.
Thank you
Abhishek
-
Highlight the line does not work after dynamic refresh
Hello
Request Express 4.2.1.00.08
Hoping someone can help with this. I have a report (list of loans for a person) who gets refreshed dynamically when the account number is changed. The loan id column is a link when you click fires a dynamic action that uses JavaScript to highlight the current line
$('.highlight-row').removeClass ('point culminating-row');
$(this.triggeringElement) .parent () .parent () .children () .addClass ('point culminating-row');
It works fine first time around, but if the loans area is updated the javascript does not work anymore and the current line is not highlighted.
Thank you
Neal
Hello
What is the scope of the event?
It must be dynamic.
You can create a new DA the event which is:
After Refresh.
Selection type: report
-
Highlight a line in the classic report based on condition
HI all the gurus
Apex 4.1.1 using oracle 11g linux oc4j
I want to emphasize a line where #column_value #= 'Y' to keep gray others like normal report parameters.
I have a simple sql query
SELECT PK_ID, FIRST_NAME, LAST_NAME, INITIAL_REG_DATE, MAIL_DATE, BEGIN_DATE, END_DATE, END_DATE-BEGIN_DATE as "#days", BEGIN_STATUS, END_STATUS, COMMENTS, DELETE_FLAG, case when DELETE_FLAG='Y' then 'GREY' else '#f0f0f0' end DELETE_FLAG , INITIAL_REG_DATE+(END_DATE-BEGIN_DATE) "New Reg end date" FROM SOR_TRACKING_DEL where pk2_id =:P216_Detail order by mail_Date desc
I created a dynamic action
who will be the tree on load, LINK on this classic report
$("input[name=f29]").each (function () {}
var lThis = $(this);
{if (lThis.is("Y"))}
lThis.parents("tr:eq(0)").children("td").css({"background-color":"GREY"});)
} else {}
lThis.parents("tr:eq(0)").children("td").css({"background-color":"#f0f0f0"});)
}
});
But it doesn't change color as expected...
Kindly help me!
Thank you
Scott and Tom
Thank you guys for looking into this.
Pls ignore my incorrect explanation and my inexperience with jquery.
I read some blog and trying to do the same on the classic report, but all blogs, I found to this day called interactive report or tabular report, that none of them mentions classic report.
I assume that using the classic report will not be a good idea to start with. :/
I don't know if this is the proper syntax and logic to highlight the line
$(
function
(){
var
DELETE_FLAG = $(this);
If DELETE_FLAG.is("Y"))
{
DELETE_FLAG.parents("tr
").children("td").css({"background-color":"GREY"});).}});
I also created app here
http://Apex.Oracle.com/pls/Apex/f?p=35155
get out of the workspace
Tester/testing
request 35155
Thanks again.
Maybe you are looking for
-
Re: Satellite L300 - 23K - how to reinstall?
Hello. I have problems with above mentioned laptop. At startup it starts to load Vista Home Basic, and then after some time, he said: "x:... windows\system32\drvload.exe ', then goes to"the installed program cannot start. Click OK to turn off the com
-
-J' get the following errors when you try to back up my box. MsSnapShot::waitop:GatherWriterMetadata:QueryStatus2 error hr (0 x 80042318) (VSS_E_WRITER_INFRASTRUCTURE)MsSnapShot::do_gather_writer_metadata:waitop RC(-4)MsSnapShot::do_init:do_gather_wr
-
How to use the CD player on my laptop to load the software on my netbook that doesn't have a drive
I want to use the software that came on a CD with my digital camera on my netbook. However, my netbook is not a CD player but my laptop doesn't. Is it possible to use the player on my laptop to load the software on my netbook and if so how is that do
-
How can I get my original icons on my desktop on a computer laptop lenovo?
I have a Lenovo Thinkpad Edge runnin Windows 7 Home Premium and I somehow changed my desktop icons and I want to recover my originals. Can someone help me please?
-
Problems activating the Pp CC 2015 on new computer
I bought a new pc and downloaded first pro compared to the creative clouds. No problem signing in. using Adobe ID.New pc a faster NVIDIA graphics card.Whenever I opened the first pro, it loads ok but just before the Welcome screen, I get «First ro CC