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 advance
Hello
Check [function Lag Lead | http://www.oracle-base.com/articles/misc/LagLeadAnalyticFunctions.php].
Twinkle
Tags: Database
Similar Questions
-
Two tables provided, how you retrieve the values in two columns using values in a column (the pass get values. If col. A is not null values and get the pass. B if col. A is null)?
Guessing
Select nvl (x.col_a, y.col_b) the_column
from table_1 x,.
table_2 y
where x.pk = y.pk
Concerning
Etbin
-
get the value of two fields in a field
Hellou,
I need some new help with javascript
Currently I use the below code to get the value of one field to another:
getField("Text35").value = getField("Text1").valueAsString;
Now, I wonder how to change this code, so I could get the values of two fields in one. I for example field 'Name' and 'name' field, now I want to show in the field 'name '.
Example, if the firstname field have John value and the value of the lastname field is Doe, I want to show in the field name as "John Doe".
I hope that u understand what I want
Thank you for helping me!
getField("Text35").value = getField("Text1").valueAsString + "" +.
getField("Text2").valueAsString;
-
Help to submit Input tag - how to wrap the value on two lines for BB Pearl (8100)
Hello
I have a question about the packaging of the value of a tag input submit on a page I have.
I have an input tag:
On the BB Bold/Storm is very good but I find on the Blackberry 8100 in the button text appears as a 'Yes. Dangerous goods have... ».
Is there a way to encapsulate the text? I tried the class CSS white-space: normal but that has not worked. I also tried to add in
(new line) and an assortment of different ways without success.Users want is the full text for legal purposes.
If it is not possible, what would be the best option in addition to shorten the text (which is my last option)?
Thanks in advance for your help.
Kind regards
Andrew Low
You can also change your user interface so that both boxes option for the user to choose Yes or no, and then have a submit with generic text button that is perhaps not as long.
-
Take the values of this same line of a column max
Hello
I 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.
-
How to compare the value of two combo
I have two Combo Box (cbFirst & cbSecond). I want to compare the value that has been selected by the user and according to the result, the output is displayed. In the two combo box, I have provided the value.
Here is my code:
var a: number;
var b:Number;function First(evt:Event):void {}
a = evt.target.value;
trace (a);
}
cbFirst.addEventListener (Event.CHANGE, first);function Second(evt:Event):void {}
b = evt.target.value;
trace (b);
}
cbSecond.addEventListener (Event.CHANGE, second);If (a > b) {}
trace ("more")
on the other
trace (b is higher);
Trace the statement inside the functions work very well and the value correct a & b is printed. But the comparison in the if statement does not seem to work. Could you please help me.
There is a typing error. Fix it or delete it:
var a: number;
var b:Number;function First(evt:Event):void {}
a = evt.target.value;trace (a);
compareF();
}
cbFirst.addEventListener (Event.CHANGE, first);function Second(evt:Event):void {}
b = evt.target.value;
trace (b);compareF()
}
cbSecond.addEventListener (Event.CHANGE, second);function compareF() {}
If (a > b) {}
trace ("more")
on the other
trace (b is higher);
}
-
Detect the shift in two consecutive low contrast images
Hello
To determine how fast a sample of ice sliding USB camera (rate of about of 30 mm/min) I head to align an image every 5 ~ 10 sec and then compare the two images. I'm fighting to get a robust method to determine the displacement. The main displacement will be that in a sense however ice may move a few pixel widths in the other direction as it slides in front of the camera.
Currently I am comparing the two images taking a large (400 x 800 pixels) KING of the second picture, then taking the pixel values average of all the columns in the two images that then allows me to subtract 1 d arrays that result and find the position where the difference is minimal.
This works very well for the "perfect" images but no longer reliable with less then perfect images.
Because the images are samples of ice with very little "features" (not counting the odd are bubbles) and low contrast, I feel that I have to rely on profiles in levels of medium gray rather then a 'function' follow-up or detect an edge etc..The berries average grayscale of the King plotted in the graph to see the clear peaks and valleys, so another method would be to match the data but I don't know how to do it again.
Any suggestions on how I can better determine the displacement between the images? The method should relatively quickly because it must be in 'real time', i.e. within seconds.
Thanks as always for all of your help.
Jack
Hi again
Advice of Follwing Mike subtract images I've played around with this feature and have now the principle works well.
In case someone else I would try something similar please see attached the VI and two images of the example that I used to experience.Well yet, which doesn't seem to work, it's the method of detection of peak/Valley. Any width I put may not find the Valley... suggestions welcome!
Have a great day.
Jack
-
Is there an easy way to filter a 2D table based on the values in two fields?
Y at - it an easy way to filter a 2D table based on the values of one of the fields. In my attached VI the output array has the following format:
Ident Frame Type bytes TimeStamp data
10:57:07.621 3AD00016 POUVEZ 8 0000000000000000 data frame
10:57:07.622 3AD00017 CAN data frame 8 000005E000000000
10:57:07.624 3AD00018 POUVEZ 8 0000000003300000 data frame
10:57:07.625 2DC00000 POUVEZ 8 0000000000000000 data frame
10:57:07.626 3AD00019 POUVEZ 4 0000030000000000 data frame
I would like to delete all lines that do not have an "Ident" between the values of 3AD00000 and 3AD0001E. So for the data above the fourth row would be removed. The only way I can see to do this is to form a 1 d table. Is there a better approach?
Thank you.
Hi chuck72352,
After you've sorted your data, you can use the function InRange. Combined with a "search in 1 table D", you get the range you really want.
Mike
-
Add up the values from two numeric columns on RTF model
Hello
I'm trying to add up the values of the numeric column 2.
I tried..? column_1 and column_2? > but it's not as simple as that obviously I get an error when you try to do
I tried..? sum (current - group () / column_1) + sum (current - group () / column_2)? >, but who does no more work that it also returns an error
Any ideas how to add two numeric columns in RTF model?for 2 + 3
-
Hi all
I need to compare two table datas and get the descripencies. The main table is M_data that has 15 columns and another name in the Loaded_data table that has 21 columns. First, I took the names of similar columns between the two tables and LEFT on the M_data table join. While the two tables has a first column Code, in the main table, the values are as 80,83, 70.98, 88,90 etc. but the Loaded table includes values like 8083, 7093,8890. Where is it possible that we can compare the values such that convert values of (8083, 7093,8890) please advice.
The Oracle worm: 10g
Thanks in advance.Maybe I'm missing something, but don't you divide just a side of 100 (or multiply the other side by 100)?
WHERE master_table.column_name = loaded_table.column_name / 100
Justin
-
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
-
JavaScript function to exchange the values of two text entry fields
Hello
I am a beginner APEX with the first application of the APEX. This app has a 22 page to enter data for a graph edge. There are two P22_LINK_NODE_A, P22_LINK_NODE_B text input fields.
Sometimes it is necessary to toggle (swap) the values of these two areas.
To do this, I added a button 'toggle_A_B' HTML and a Javascript function.
But... it does what it is supposed to make :(
By clicking on the button seems to send the page to the server, although this should not be the case... and the values of the fields P22_LINK_NODE_A, P22_LINK_NODE_B do not change.
I didn't expect that everything goes right on the client side.
Is it normal that the browser is trying to send the page?
Do I need to implement something on the side Server? (process, branches,...)
The "toggle_A_B" a button attribute HTML button: onclick = "toggleNodes (); »
Redirect Optioanl of the button is set to "no target". (behavior is the same with "redirecting to page 22")
In the "HTML Header" page, there is the following Javascript function (which works find in a non-Oracle-APEX HTML page).
< script type = "text/javascript" language = "JavaScript" >
function toggleNodes() {}
var x = document.getElementById("P22_LINK_NODE_A").value;
var y = document.getElementById("P22_LINK_NODE_B").value;
document.getElementById("P22_LINK_NODE_B").value = x;
document.getElementById("P22_LINK_NODE_A").value = y;
}
< /script >
There is a post on the forum with a similar topic, maybe I should also use this approach to ($s)?
Kind regards
RomanRoman:
Set the target URL of the Html button
JavaScript:toggleNodes();
CITY
-
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/ -
Comparison of the values of the choose/when/otherwise
I have the following logic to choose/when/otherwise
At run time, even if PersonId value equals the ManagerId, he always goes in the clause otherwise
CHOOSE
WHEN PersonId = ManagerId
display ManagerComments
END WHEN
WHEN PersonId! ManagerId =
display WorkerComments
END WHEN
IN THE OPPOSITE CASE
view comments
END OTHERWISE
CHOOSE END
If I print the value of the PersonId and ManagerId, they are equal and that they are strings.
PersonId is a parameter that is passed to the report.
any help will be greatly appreciated.Can you send me the RTF and xml for [email protected]? file example I'll take a peek and try to help.
Thank you
Bipuser -
How to get the values of two points separated in Javascript checkbox
Hello
I want to get the values of an element of the checkbox as a form of separted from the colon as what we get in the database. For example '10:11:12 '.
When I tried to write a code like this it does not work. Please tell me where I'm wrong.
function getValues (pcheckbox) {}
cb_name = html_GetElement(pcheckbox+'_0').name;
cb_array = document.getElementByName (cb_name);
var val_str =': ';
for (i = 0; i < cb_array.length; i ++)
{
If (cb_arraychecked)
{
val_str += cb_array [i] .value + ':';
}
}
html_GetElement (P206_TEXT) .value = val_str;
}
I try to call the function getValues ('P206_CHECK');
Thank you and best regards,
Vikas KrishnaHi Vikas,
Try this-
(1) create a checkbox element called PI_CHK
(2) in the Option of the attributes of the form element, type onclick = "getValues () '"
(3) create a named text field point PI_TEXTEnter the HTML of the Page Header Section
Concerning
Paul
Maybe you are looking for
-
My tab options is inactive - cannot start page change or display anything else
Firefox works fine, but since the last update in Google to Bing start page and all the tabs under 'options' are inactive - I can't make changes to the homepage, or even view the other tabs. All the patches? Thank you!
-
I've updated to the new version of firefox 34.0.5. After the update, I noticed a lot of questions.1. menu does not display the names - mouse hover it dispaear and reappear (same problem with links)2 tried to watch some videos, its still flashes3. ent
-
New iPhone 6 s. iLife/iWork preinstalled keep apps reinstall even if you uninstall the
I bought a new iPhone 6 s today and I noticed that Apple iLife/iWork applications are preinstalled. iTunes U, Numbers, Pages, Keynote, iMovie, and GarageBand. I don't want to keep on my phone because I hardly touch except iMovie and GarageBand, I hav
-
Analog input and output using 5640r
Hello world I'm Christine, I'm implementing OFDM on fpga using 5640r. The code that I have, which is good in the simulation using labview and also using 'nor 5640r treatment only' but I want to implement in "analog input and exit vi" so that I can se
-
How to run the attached image control
How to run vi in archive zip attached for image control. Communicate it always the entry is not valid. Thank you.