Take the values of this same line of a column max
HelloI did a group by in a query to date max of straight, but I need to take on values of that same line with this maximum value.
Max (to_date(fec_ini_vigencia_costo,'DD/mm/YYYY')) is the line I want to take
and
-max (mto_precio_venta_cm_iva),
-fec_fin_vigencia_costo,
-l.CND_TRASPASADO_PRECIO
the values I want to take advantage of this line
select p.item_orms,
item_ebs,
description,
zone_id,
max(to_date(fec_ini_vigencia_costo,'DD/MM/YYYY')) as fecha_inicio,
-- max(mto_precio_venta_cm_iva),
-- fec_fin_vigencia_costo,
-- l.CND_TRASPASADO_PRECIO
from precios9 p,
cmp_lineas_cotizacion_suc l,
LCM.CMP_ENCABEZADO_COTIZACION d
where p.zone_id = 1
and l.cod_producto = p.item_ebsi'
and d.NUM_COTIZACION_ORCL = l.NUM_COTIZACION_ORCL
and l.cod_sucursal in (125,89,90,92,95,97,99,101,104,106,108,110,112,115,83,85,
87,88,91,93,94,96,98,100,102,103,107,109,111,113,114,116,
117,120,123,124,128,130,132,134,135,133,131,129,118,182)
group by p.item_orms, item_ebs, description, zone_id
Buon Giornio!
Here are two ways to do it. First of all, using analytical functions and then with a subquery.
I took your sample data and converted into a WITH statement, so I could test my queries. The SQL code that you need to write is near the bottom.
WITH dta AS (
SELECT 100124238 AS ITEM_ORMS,1.1073131 AS ITEM_EBS,'Comino Badia Molido 28Gr' AS DESCRIPTION,1 AS ZONE_ID,TO_DATE('03/02/2007','dd/mm/yyyy') AS FEC_INI_VIGENCIA_COSTO,1.7 AS MTO_PRECIO_VENTA_CM_IVA,TO_DATE('08/12/2010','dd/mm/yyyy') AS FEC_FIN_VIGENCIA_COSTO,'Si' AS CND_TRASPASADO_PRECIO FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('09/06/2008','dd/mm/yyyy'),24.9,TO_DATE('13/04/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('09/06/2008','dd/mm/yyyy'),24.9,TO_DATE('13/04/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('09/06/2008','dd/mm/yyyy'),24.9,TO_DATE('13/04/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('09/06/2008','dd/mm/yyyy'),24.9,TO_DATE('13/04/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('09/06/2008','dd/mm/yyyy'),24.9,TO_DATE('13/04/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('09/06/2008','dd/mm/yyyy'),24.9,TO_DATE('13/04/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('09/06/2008','dd/mm/yyyy'),24.9,TO_DATE('13/04/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('09/06/2008','dd/mm/yyyy'),24.9,TO_DATE('13/04/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('09/06/2008','dd/mm/yyyy'),24.9,TO_DATE('13/04/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('13/04/2009','dd/mm/yyyy'),31.95,TO_DATE('01/06/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('13/04/2009','dd/mm/yyyy'),31.95,TO_DATE('01/06/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('13/04/2009','dd/mm/yyyy'),31.95,TO_DATE('01/06/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('13/04/2009','dd/mm/yyyy'),31.95,TO_DATE('01/06/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('13/04/2009','dd/mm/yyyy'),31.95,TO_DATE('01/06/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('13/04/2009','dd/mm/yyyy'),31.95,TO_DATE('01/06/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('13/04/2009','dd/mm/yyyy'),31.95,TO_DATE('01/06/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('13/04/2009','dd/mm/yyyy'),31.95,TO_DATE('01/06/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('13/04/2009','dd/mm/yyyy'),31.95,TO_DATE('01/06/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('01/06/2009','dd/mm/yyyy'),62,TO_DATE('11/06/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('01/06/2009','dd/mm/yyyy'),62,TO_DATE('11/06/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('01/06/2009','dd/mm/yyyy'),62,TO_DATE('11/06/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('01/06/2009','dd/mm/yyyy'),62,TO_DATE('11/06/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('01/06/2009','dd/mm/yyyy'),62,TO_DATE('11/06/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('01/06/2009','dd/mm/yyyy'),62,TO_DATE('11/06/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('01/06/2009','dd/mm/yyyy'),62,TO_DATE('11/06/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('01/06/2009','dd/mm/yyyy'),62,TO_DATE('11/06/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('01/06/2009','dd/mm/yyyy'),62,TO_DATE('11/06/2009','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('11/06/2009','dd/mm/yyyy'),62,TO_DATE('13/05/2010','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('11/06/2009','dd/mm/yyyy'),62,TO_DATE('13/05/2010','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('11/06/2009','dd/mm/yyyy'),62,TO_DATE('13/05/2010','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('11/06/2009','dd/mm/yyyy'),62,TO_DATE('13/05/2010','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('11/06/2009','dd/mm/yyyy'),62,TO_DATE('13/05/2010','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('11/06/2009','dd/mm/yyyy'),62,TO_DATE('13/05/2010','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('11/06/2009','dd/mm/yyyy'),62,TO_DATE('13/05/2010','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('11/06/2009','dd/mm/yyyy'),62,TO_DATE('13/05/2010','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('11/06/2009','dd/mm/yyyy'),62,TO_DATE('13/05/2010','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('11/06/2009','dd/mm/yyyy'),62,TO_DATE('13/05/2010','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('11/06/2009','dd/mm/yyyy'),62,TO_DATE('11/06/2009','dd/mm/yyyy'),'No' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('11/06/2009','dd/mm/yyyy'),62,TO_DATE('11/06/2009','dd/mm/yyyy'),'No' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('11/06/2009','dd/mm/yyyy'),62,TO_DATE('11/06/2009','dd/mm/yyyy'),'No' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('11/06/2009','dd/mm/yyyy'),62,TO_DATE('11/06/2009','dd/mm/yyyy'),'No' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('11/06/2009','dd/mm/yyyy'),62,TO_DATE('11/06/2009','dd/mm/yyyy'),'No' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('11/06/2009','dd/mm/yyyy'),62,TO_DATE('11/06/2009','dd/mm/yyyy'),'No' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('11/06/2009','dd/mm/yyyy'),62,TO_DATE('11/06/2009','dd/mm/yyyy'),'No' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('11/06/2009','dd/mm/yyyy'),62,TO_DATE('11/06/2009','dd/mm/yyyy'),'No' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('11/06/2009','dd/mm/yyyy'),62,TO_DATE('11/06/2009','dd/mm/yyyy'),'No' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('11/06/2009','dd/mm/yyyy'),62,TO_DATE('13/05/2010','dd/mm/yyyy'),'Si' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('13/05/2010','dd/mm/yyyy'),62,TO_DATE('13/05/2010','dd/mm/yyyy'),'No' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('13/05/2010','dd/mm/yyyy'),62,TO_DATE('13/05/2010','dd/mm/yyyy'),'No' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('13/05/2010','dd/mm/yyyy'),62,TO_DATE('13/05/2010','dd/mm/yyyy'),'No' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('13/05/2010','dd/mm/yyyy'),62,TO_DATE('13/05/2010','dd/mm/yyyy'),'No' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('13/05/2010','dd/mm/yyyy'),62,TO_DATE('13/05/2010','dd/mm/yyyy'),'No' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('13/05/2010','dd/mm/yyyy'),62,TO_DATE('13/05/2010','dd/mm/yyyy'),'No' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('13/05/2010','dd/mm/yyyy'),62,TO_DATE('13/05/2010','dd/mm/yyyy'),'No' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('13/05/2010','dd/mm/yyyy'),62,TO_DATE('13/05/2010','dd/mm/yyyy'),'No' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('13/05/2010','dd/mm/yyyy'),62,TO_DATE('13/05/2010','dd/mm/yyyy'),'No' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('13/05/2010','dd/mm/yyyy'),62,TO_DATE('13/05/2010','dd/mm/yyyy'),'No' FROM DUAL UNION ALL
SELECT 100132641,1.1054401,'Crema Meggle Chantilly Natural 250Gr',1,TO_DATE('13/05/2010','dd/mm/yyyy'),62,TO_DATE('13/05/2010','dd/mm/yyyy'),'No' FROM DUAL
)
SELECT DISTINCT
MAX ( FEC_FIN_VIGENCIA_COSTO ) OVER () FEC_FIN_VIGENCIA_COSTO
, FIRST_VALUE ( MTO_PRECIO_VENTA_CM_IVA ) OVER ( ORDER BY FEC_FIN_VIGENCIA_COSTO DESC ) AS MTO_PRECIO_VENTA_CM_IVA
, FIRST_VALUE ( CND_TRASPASADO_PRECIO ) OVER ( ORDER BY FEC_FIN_VIGENCIA_COSTO DESC ) AS FEC_FIN_VIGENCIA_COSTO
FROM dta
;
FEC_FIN_V MTO_PRECIO_VENTA_CM_IVA FE
--------- ----------------------- --
08-DEC-10 1.7 Si
1 row selected.
And here's the subquery
<< omitted the WITH clause here, just to save space >>
SELECT
MTO_PRECIO_VENTA_CM_IVA
, FEC_FIN_VIGENCIA_COSTO
, CND_TRASPASADO_PRECIO
FROM dta
WHERE FEC_FIN_VIGENCIA_COSTO = ( SELECT MAX( FEC_FIN_VIGENCIA_COSTO ) FROM dta )
;
MTO_PRECIO_VENTA_CM_IVA FEC_FIN_V CN
----------------------- --------- --
1.7 08-DEC-10 Si
1 row selected.
I would caution you to be careful with either technique: you have not specified a deterministic sort. There are a lot of records with the same values in this field. If if were not for the record for December 8, 2010, the highest value would be on May 13, 2010, and there are 22 records with that value. This means that Oracle would have to break the tie.
Tags: Database
Similar Questions
-
JavaScript input parameter should take the value of the element page Apex
I have a JavaScript function which i dwonloaded ffrom net to generate bar codes
DrawCode39Barcode(data,checkDigit).
I call this function in the body of page attribute by using the following script
< div id = "P5_X" > < / div >
< script type = "text/javascript" >
/ * < ! [CDATA [* /]]
function get_object (id) {}
var object = null;
If (document.layers) {}
object = document.layers [id];
} Else if (document.all) {}
object = document.all [id];
} else if (document.getElementById) {}
object = document.getElementById (id);
}
Returns the object;
}
get_object('P5_X').innerHTML = DrawCode39Barcode('1-1-1111',0);
< /script >
When I run the page, the barcode for the value 1-1-1111' is generated. Please help so that when this page is running it will automatically take the value of the page item P5_X as parameter instead of hard coded value ' 1 - 1-1111'
I think it would be simpler. You use the same id for the region and the order of the day, they must be different id
JavaScript code can be in a dynamic action who sets fire to the loading of the page, or load Execute on the page of your page properties section.
$('#barcode').html (DrawCode39Barcode ($v ('P5_X'), 0));
-
is it far to disable the shortcut ctrl-alt-tab on windows 7 (cycle between windows) to avoid the substitution of this same shortcut (indented) in excel?
Hello
The feature you're talking about is the default value of design in Windows 7. If you have comments or suggestions, you can post your query to the Windows 7 feedback forum. -
Error: ORA-16757: failed to get the value of this property
Hi all
I have an error:
DGMGRL > see the database dbname_stb LogXptStatus;
Error: ORA-16757: failed to get the value of this property
I check:
DGMGRL > see the configuration;
Configuration - dbname_dg
Protection mode: MaxPerformance
Databases:
dbname_pr - primary database
dbname_stb - physical of the standby database
Fast-Start Failover: DISABLED
The configuration status:
SUCCESS
drcdbname_stb.log:
RSM0: Received the request the property Get: rid = 0 x 01010000, pid = 54
2012-10-17 15:21:14.702 of database Resource: get the LogXptStatus property
RSM 15:21:14.702 2012-10-17 error: trying to interview a 'LogXptStatus' primary type property on a standby database resource.
2012 10-17 error 15:21:14.702 database resource GetProperty (16501,16757)
I don't understand this error?
Thank you all.Take a look on this
-
How ItemRenderer change for DataGrid column based on the value of this column?
Hello! I am trying to create a DataGrid that has a component Button to register when the value of this column is 'Open', then a label saying full when the value of this column is "Full". But Im having a hell of a time he find.
Here's my MXML with 2 different inline installation of components for different rendering engines point 2:
<? XML version = "1.0" encoding = "utf-8"? >
"" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "absolute" >
< mx:Component id = "RegFull" >
< mx:VBox horizontalAlign = "center" verticalAlign = "middle" >
< mx:Label id = 'Full text' text = "Full" / >
< / mx:VBox >
< / mx:Component >
< mx:Component id = "RegButton" >
< mx:VBox horizontalAlign = "center" verticalAlign = "middle" >
< mx:Button label = "Save" / >
< / mx:VBox >
< / mx:Component >
< mx:DataGrid id = "scGrid" width = "100%" height = "100%" number of lines = "4" >
< mx:dataProvider >
< mx:Object label = "Status" data = 'Open' / >
< mx:Object label = "Status" data = "Full" / >
< mx:Object label = "Status" data = 'Open' / >
< mx:Object label = "Status" data = "Full" / >
< mx:Object label = "Status" data = 'Open' / >
< mx:Object label = "Status" data = "Full" / >
< / mx:dataProvider >
< mx:columns >
< mx:DataGridColumn id = "RegCol" headerText = "Reg" dataField = "data" / >
< / mx:columns >
< / mx:DataGrid >
< / mx:Application >
How can I dynamically use the right of itemrenderer based on the value of the field? THANKS FOR ANY HELP PROVIDED!
The best
StephenYou can have more than 1 column renderer engine. There are two ways to do this. One way would be to use States. A State for each possible value in the data. Since you either want a button (data == 'open') or a label (data == 'Full') by using the States wouldn't be a bad choice.
Alternatively, you can use a canvas instead of a VBox. Make a label and a button with horizontalCenter = "0" "0" = red to make them each other. Make it visible according to the data value:
where dataField is the value of the property dataField on this converter DataGridColumn.
-
How can I fix, "an error has occurred in the script on this page line: 2107"?
How can I fix "an error has occurred in the script on this page line: 2107, Char: 1? I've recently upgraded to Explorer 9
Hello
I'll try to uninstall IE9 as shown in the link below.
When this is complete and you have restarted the PC, see if you can now print. If everything works well, try reinstalling IE9 with your security software temporarily disabled during installation.
Kind regards
DP - K
-
Original title: cannot print in Explorer
Hi, I have a new Packard Bell PC and everything was fine, then I ran an update and that he now refuses to print from the Internet Explore. When I try and print it there is an error: 'in the script on this page"line 2107 and url://ieframe.dll/preview.js. If I click Yes or no to the question application that it still does not print. I have to lower the load and then printing that isn't always possible.
Pins to the ie9 with 36 votes useful Forums:
I get a script error when printing of IE9
http://answers.Microsoft.com/en-us/IE/Forum/IE9-Windows_7/i-am-getting-a-script-error-when-printing-from-IE9/ce6e8366-8be9-4F86-92BA-cf6d172635e3 -
How to get the value of a particular tag to a column (clob)
Hi friends,
How to get the value of a particular tag to a column (clob), which has an XML value?
Thanks in advance.
Kind regards
Sirot ChauvetYou are welcome, if you got your answer to the question as such brand
-
AF:iterator and get the values of a particular line
Hello
I use af:iterator to browse a set of results in the original Version.
< af:iterator binding = "#{backingBeanScope.backing_subscribe.i1} '"
value = "#{bindings." SubscriptionPublicView1.collectionModel}.
var = "row".
ID = "i1" >
At each iteration, I display a row of data since my VO in a box.
Each box has a Link command.
In general, the bean of my support, I do something like this to get an iterator attribute out of sight.
Line currentRow = getIterator("SubscriptionPublicView1Iterator").getCurrentRow ();
int sid = (Integer) currentRow.getAttribute ("Sid");
However, in this case, I always get the "sid" from the first record in the collectionModel and not the "sid" which corresponds to the commandLink selected by the user.
What is the best way to do when using an af:iterator?
Thank you
JoelJoel,
Take a look at this video: http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/classic_api_mistakes_part2/classic_api_mistakes_part2.html
In there, Frank shows how to use af:iterator and af:forEach and to avoid warnings.It seems that you do not set the current line, so that you always get the value of the first row.
Timo
-
Comparison of the values of two consecutive lines.
Hello.
I can compare the value of the same field in two consecutive rows?
If this is the case. How could I do?
Thanks in advanceHello
Check [function Lag Lead | http://www.oracle-base.com/articles/misc/LagLeadAnalyticFunctions.php].
Twinkle
-
Calculate the values of a SharePoint workflow status Page column lines
On the workflow status page, how can I have a column with a value in the column lines? My workflow page lists commands that are in the workflow. I wish there was a column where the value of each PO, displays a running total of the PO rises before him.
Hello
It is not a community forum for issues of SharePoint. Please post to the appropriate
Forum on MSDN SharePoint.
http://social.msdn.Microsoft.com/forums/SharePoint/en-us/home
Don
-
An error occurred in the script on this page
Line: 1344
1 tank
error Unespecified
Code 0
URL: res://C:\WINDOWS\system32\shdoclc.dll/preview.dlg
Do you want to continue running scripts on this page
YES NO
Go to start | Run and type (or copy / paste.) (Note the space).
regsvr32 ole32.dll
Press ENTER.
Bruce Hagen
MS - MVP October 1, 2004 ~ September 30, 2010
Imperial Beach, CA -
ADF Table cell color based on the value of this field
Dear all,
I want to create a table for our new application that contains a table that is used to represent the data in a table or matrix format.
and each cell of the table should be filled with a color of three colors, based on the value belongs to who will for example: (1-8-> green, 9-20 - yellow etc.).
I don't know how to implement this. Help, please...
RognardPlease post in the subforum that is appropriate for your question.
http://forums.Oracle.com/forums/Ann.jspa?annID=599
This blocking thread
-
Hi all
If I run this query using a tool like developer PL/SQL (SQL window), the values are displayed as a Collection. Just click and see the results of the al.
Select
dbms_resconfig.getRepositoryResConfigPaths)
Of
Double;
I want to know how to display these values using any tool of sqlplus (with dbms_output or something like that).
How can I do? With the help of the table? Create a type?
TKSuser12083350 wrote:
I want to know how to display these values using any tool of sqlplus (with dbms_output or something like that).
SQL> select * from table(dbms_resconfig.getRepositoryResConfigPaths()) 2 / COLUMN_VALUE -------------------------------------------------------------------------------- /sys/xs/userrc.xml /sys/xs/rolesetrc.xml /sys/xs/drolerc.xml /sys/xs/rolerc.xml /sys/xs/frolerc.xml /sys/xs/xdserc.xml /sys/xs/scrc.xml 7 rows selected. SQL>
And in PL/SQL:
SQL> declare 2 v_list xdb$string_list_t := dbms_resconfig.getRepositoryResConfigPaths(); 3 begin 4 for i in 1..v_list.count loop 5 dbms_output.put_line(v_list(i)); 6 end loop; 7 end; 8 / /sys/xs/userrc.xml /sys/xs/rolesetrc.xml /sys/xs/drolerc.xml /sys/xs/rolerc.xml /sys/xs/frolerc.xml /sys/xs/xdserc.xml /sys/xs/scrc.xml PL/SQL procedure successfully completed. SQL>
SY.
Published by: Solomon Yakobson, April 24, 2010 15:04
-
The value of textarea with line breack (crlf, CR LF) using javascript
Hello
I want to set the value of a text box called P103_SEND_MESSAGE with line breaks inside before it appears (via pop-up site).
& gt; & lt; script language = "JavaScript" type = "text/javascript" & gt;
& gt; int CHECK_SEND_MAIL (v_value)
& gt; {
& gt; If (v_value == 'YES') {}
& gt; var v_message_text = "Test CR LF Hello, utl_tcp.crlf had finished your task";
& gt; var url = ' f? p = & APP_ID.:103: & SESSION. : P103_SEND_MESSAGE: "+ v_message_text;
& gt; Window.Open (url, ' popup ',' toolbar = no, width = 520 height = 320, resizable = no, top = 40, scrollbars = no "");
& gt; P52_CHECK_SEND_MAIL in JS variable
& gt; var l_field_id = document.getElementById ("P52_CHECK_SEND_MAIL");
& gt; value set for the field
& gt; l_field_id.value = ";
& gt; }
& gt ;}
The field fill up, but no line breaks appear.
Anyone who has an idea?
Thanks in advance,
TobiasHi Tobias,.
In plsql, you can use your method.
The javascript I use works for me? Have a look here http://examples.apex-evangelists.com/pls/apex/f?p=286:45Kind regards
Dimitri
----------------------------------
http://dgielis.blogspot.com/
http://www.apex-evangelists.com/
http://www.apexblogs.info/
Maybe you are looking for
-
CO5110Y BIOS will not allow edits LAN or video BIOS version 5.38
Hello I have a Compaq CQ5110Y with BIOS version 5.38. My problem is that I need to disable the LAN chip on board. My current BIOS will record the changes to the date and time, but it seems that it will not save the changes to the ADVANCED tab. I adde
-
HP pavilion P0S36EA laptop: can I upgrade ram?
I've got 6 GB of Ram. I want to buy 2 x 8 strips and install them. My support for laptop more than 6 GB of ram, if so which one should I buy?
-
Have a HP Officejet 6500 wireless. Used without flaw for several years. About 3-4 months ago I lost the wireless capability. Have you used, but nothing has worked. If wired it and everything was fine. Last week there was an upgrade and it stopped pr
-
Extensions: Convert T - SQL code
HelloDo we not have an extension for SQL Developer that converts the Oracle in T - SQL code?Thank you
-
Model form of upgrade R52 1846 - 64G 60 GB to 160 GB HDD does not
Hello I just bought a bigger Samsung HM160HC 160GBdrive to replace my small MHV2060AH Original of Fujitsu 60 GB drive. When I plug this new drive in, it will not be recognized by the BIOS or during the process of Installation of Windows XP. Nothing w