date of sorting in the collection of table field
How can I sort on a date field in a collection of table?for reference, this is the date format: "Fri 01 Dec 09:47:43 GMT - 07:00 2006.
Any idea?
Thanks for the idea,
It worked!
Once again thank you! Babo_Ya for your constant help & support!
Tags: Flex
Similar Questions
-
the collection of table support
Hi, I'm trying to create a slideshow with the RSS feeds from flickr. I use a component datagrid to store the images (because of the effects of transition when I add or remove an item from the dataProvider.) I can go through the images very efficiently by simply removing the first element in the collection of table, but then I get to the end and of course the slideshow is none because I deleted everything. is there an easy way for me to just take the first object in the collection of table and move it to the end? I tried photoFeed.setItemAt (object, int); but I don't know how to call on the first object in the collection of table. also, for the int variable I try to use photoFeed.length because I want it move to the end of the array whose length should be the correct number from the beginning of indexation of array to 0.Although I can't understand the requirement of moving an item at the end of a slide show, you can use
var point: Object = photoFeed.removeItemAt (0);
photoFeed.addItem (item);to achieve what you want.
If you just want to browse the pictures one by one until the end, you just need to use the createCursor API and get a cursor. By calling moveNext on the slider, you move through the collection until moveNext returns false.
-
Hello
Please let me know the tables which are filled during the Collection plan run. According to the functional behavior, the collection plan executes sub activities
(i) all operations planning in ADS (Application Data Bank) are moved to the intermediate taking during program planning data table.
(II) for the ODS load planning the entire transaction in the staging tables are moved to the ODS (operational data store).
I need to know the activities of moving data in the tables during the planning data pull and program load planning ODS.
Hope you understand.
With respect,
M.RaamjeeDuring the collection process, Oracle first refreshes the snapshot on the EBS instance.
Planning data pull then refreshes the CAWC st (staging) tables. The tables are too many to list, but their names were inside st.
for example, msc_st_system_items, msc_st_boms
You can find them bySELECT * from all_tables owner WHERE = 'MSC' AND AS 'MSC_ST_ %' table_name order 2
Load planning ODS treats st tables and load the tables of the CPSA. In general, the name of the destination table is similar to table st (except _Pl)
for example, msc_st_system_items-online msc_system_items
msc_st_boms-online msc_boms
etc.All the data collected in these destination tables a plan_id =-1 where the plan of real data had plan_id > 0
Sandeep Gandhi
-
Fill in the Signature of the IOM UPA table field
The IOM UPA table has a SIGNATURE field that you can use for storing the digital signature of the snapshot (for purposes of non-repudiation).
Default - the value of this field is "NULL" in the database.
Have found no documentation on how this field is filled in.
At any fact a use of this feature of non-repudiation.
Thank you
ChetanI guess that this field is NOT used anywhere in the implementation of the IOM... Is perhaps a feature that is coming in the next version, but also just as I know, this field is not used.
-
FOR the UPDATE OF table.field
Why the following does it
but just add the clause "for update" allows to make the point?create table division (code varchar2(2) primary key, div_desc varchar2(20)); insert into division values ('01', 'Ninja assassins'); insert into division values ('02', 'Working for the man'); create table employees (tk number, first_name varchar2(10), last_name varchar2(10), code varchar2(2) references division(code)); insert into employees values (1, 'Chuck', 'Smith', '01'); insert into employees values (2, 'John', 'Smith', '02'); DECLARE CURSOR my_csr IS Select e.tk, e.first_name, e.last_name From employees e, division d Where e.code = d.code and e.code = '01' and e.last_name = 'Smith' For update; cnt_updated NUMBER; BEGIN cnt_updated := 0; FOR my_row IN my_csr LOOP Update employees Set last_name = 'Forbes' Where current of my_csr; cnt_updated := cnt_updated + SQL%ROWCOUNT; dbms_output.put_line('You updated '||cnt_updated||' records'); END LOOP; END;
We discovered this recently, and fellow developers are wondering "why?" Is there a reason documented, or is - just how it is?DECLARE CURSOR my_csr IS Select e.tk, e.first_name, e.last_name From employees e, division d Where e.code = d.code and e.code = '01' and e.last_name = 'Smith' For update *of e.tk*;
Thank you
-= Chuckof 'of the user to the database PL/SQL Oracle® reference Guide. "
"10g Release 2 (10.2):
"During the interrogation of several tables, you can use the FOR UPDATE clause to limit the line blocking to specific tables. Rows in a table are locked unless done FOR UPDATE OF clause refers to a column in the table. For example, the following query locks the rows in the employees table, but not in the departments table:DECLARE
CURSOR c1 IS SELECT last_name, department_name FROM employees, departments
WHERE employees.department_id = departments.department_id
AND job_id = "SA_MAN."
FOR the UPDATE OF treatment; »a little demo:
SQL> select * from v$version; BANNER ------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production PL/SQL Release 11.1.0.6.0 - Production CORE 11.1.0.6.0 Production TNS for 32-bit Windows: Version 11.1.0.6.0 - Production NLSRTL Version 11.1.0.6.0 - Production 1 DECLARE 2 CURSOR my_csr IS 3 Select e.tk, e.first_name, e.last_name, e.rowid 4 From employees_t e, division d 5 Where e.code = d.code 6 and e.code = '01' 7 and e.last_name = 'Smith' 8 For update of e.tk; 9 cnt_updated NUMBER; 10 BEGIN 11 cnt_updated := 0; 12 FOR my_row IN my_csr 13 LOOP 14 Update employees_t 15 Set last_name = 'Forbes' 16 Where current of my_csr; 17 cnt_updated := cnt_updated + SQL%ROWCOUNT; 18 dbms_output.put_line('You updated '||cnt_updated||' records'); 19 END LOOP; 20* END; SQL> / You updated 1 records PL/SQL procedure successfully completed. SQL> ed Wrote file afiedt.buf 1 DECLARE 2 CURSOR my_csr IS 3 Select e.tk, e.first_name, e.last_name, e.rowid 4 From employees_t e, division d 5 Where e.code = d.code 6 and e.code = '01' 7 and e.last_name = 'Smith' 8 For update;-- of e.tk; 9 cnt_updated NUMBER; 10 BEGIN 11 cnt_updated := 0; 12 FOR my_row IN my_csr 13 LOOP 14 Update employees_t 15 Set last_name = 'Forbes' 16 Where current of my_csr; 17 cnt_updated := cnt_updated + SQL%ROWCOUNT; 18 dbms_output.put_line('You updated '||cnt_updated||' records'); 19 END LOOP; 20* END; SQL> / PL/SQL procedure successfully completed.
Amiel
-
Date of max from the entire lookup table
Hello people:
I hope that this discussion finds you well. I have 2 tables (MED_IMMUNO and LU_MED_IMMUNO). "MED_IIMMUNO" is the base table, and "LU_MED_IMMUNO" is the lookup table for the column 'IMM_REC '. Please see CFDS below:
TABLE: MED_IMMUNO
CREATE TABLE 'MED_IMMUNO' ('ID', 'EMP_ID' NUMBER, NUMBER OF "IMM_REC", "IMM_DATE" DATE, VARCHAR2 (255) 'IMM_NOTES', 'IMM_APPLICABLE' NUMBER, NUMBER OF "IMM_REFUSED")
/
INSERTION of REM in MED_IMMUNO
TOGETHER TO DEFINE
Insert into MED_IMMUNO (ID, EMP_ID, IMM_REC, IMM_DATE, IMM_NOTES, IMM_APPLICABLE, IMM_REFUSED) values (55,8474,5,to_date('12-JAN-12','DD-MON-RR'),null,null,null);
Insert into MED_IMMUNO (ID, EMP_ID, IMM_REC, IMM_DATE, IMM_NOTES, IMM_APPLICABLE, IMM_REFUSED) values (56,8474,6,to_date('26-JUN-12','DD-MON-RR'),null,null,null);
Insert into MED_IMMUNO (ID, EMP_ID, IMM_REC, IMM_DATE, IMM_NOTES, IMM_APPLICABLE, IMM_REFUSED) values (57,8474,8,to_date('10-JAN-12','DD-MON-RR'),null,null,null);
Insert into MED_IMMUNO (ID, EMP_ID, IMM_REC, IMM_DATE, IMM_NOTES, IMM_APPLICABLE, IMM_REFUSED) values (58,8474,9,to_date('13-FEB-12','DD-MON-RR'),null,null,null);
Insert into MED_IMMUNO (ID, EMP_ID, IMM_REC, IMM_DATE, IMM_NOTES, IMM_APPLICABLE, IMM_REFUSED) values (59,8474,10,to_date('26-JUN-12','DD-MON-RR'),null,null,null);
Insert into MED_IMMUNO (ID, EMP_ID, IMM_REC, IMM_DATE, IMM_NOTES, IMM_APPLICABLE, IMM_REFUSED) values (60,8474,22,to_date('10-JAN-12','DD-MON-RR'),null,null,null);
Insert into MED_IMMUNO (ID, EMP_ID, IMM_REC, IMM_DATE, IMM_NOTES, IMM_APPLICABLE, IMM_REFUSED) values (61,8474,4,to_date('10-JAN-12','DD-MON-RR'),null,null,null);
Insert into MED_IMMUNO (ID, EMP_ID, IMM_REC, IMM_DATE, IMM_NOTES, IMM_APPLICABLE, IMM_REFUSED) values (62,8474,16,to_date('10-JAN-12','DD-MON-RR'),null,null,null);
Insert into MED_IMMUNO (ID, EMP_ID, IMM_REC, IMM_DATE, IMM_NOTES, IMM_APPLICABLE, IMM_REFUSED) values (63,8474,17,to_date('10-JAN-12','DD-MON-RR'),null,null,null);
Insert into MED_IMMUNO (ID, EMP_ID, IMM_REC, IMM_DATE, IMM_NOTES, IMM_APPLICABLE, IMM_REFUSED) values (64,8474,11,to_date('10-JAN-12','DD-MON-RR'),null,null,null);
Insert into MED_IMMUNO (ID, EMP_ID, IMM_REC, IMM_DATE, IMM_NOTES, IMM_APPLICABLE, IMM_REFUSED) values (65,5900,1,to_date('19-JUN-11','DD-MON-RR'),null,null,null);
Insert into MED_IMMUNO (ID, EMP_ID, IMM_REC, IMM_DATE, IMM_NOTES, IMM_APPLICABLE, IMM_REFUSED) values (66,5900,2,to_date('17-JUL-11','DD-MON-RR'),null,null,null);
Insert into MED_IMMUNO (ID, EMP_ID, IMM_REC, IMM_DATE, IMM_NOTES, IMM_APPLICABLE, IMM_REFUSED) values (67,5900,3,to_date('20-DEC-11','DD-MON-RR'),null,null,null);
Insert into MED_IMMUNO (ID, EMP_ID, IMM_REC, IMM_DATE, IMM_NOTES, IMM_APPLICABLE, IMM_REFUSED) values (68,5900,22,to_date('19-JAN-11','DD-MON-RR'),null,null,null);
Insert into MED_IMMUNO (ID, EMP_ID, IMM_REC, IMM_DATE, IMM_NOTES, IMM_APPLICABLE, IMM_REFUSED) values (69,5900,4,to_date('19-JAN-11','DD-MON-RR'),null,null,null);
Insert into MED_IMMUNO (ID, EMP_ID, IMM_REC, IMM_DATE, IMM_NOTES, IMM_APPLICABLE, IMM_REFUSED) values (70,5900,14,to_date('19-JAN-11','DD-MON-RR'),null,null,null);
Insert into MED_IMMUNO (ID, EMP_ID, IMM_REC, IMM_DATE, IMM_NOTES, IMM_APPLICABLE, IMM_REFUSED) values (71,5900,17,to_date('19-JAN-11','DD-MON-RR'),null,null,null);
Insert into MED_IMMUNO (ID, EMP_ID, IMM_REC, IMM_DATE, IMM_NOTES, IMM_APPLICABLE, IMM_REFUSED) values (72,5900,16,to_date('19-JAN-11','DD-MON-RR'),null,null,null);
Insert into MED_IMMUNO (ID, EMP_ID, IMM_REC, IMM_DATE, IMM_NOTES, IMM_APPLICABLE, IMM_REFUSED) values (73,10069,5,to_date('16-JAN-12','DD-MON-RR'),null,null,null);
Insert into MED_IMMUNO (ID, EMP_ID, IMM_REC, IMM_DATE, IMM_NOTES, IMM_APPLICABLE, IMM_REFUSED) values (74,10069,6,to_date('24-FEB-12','DD-MON-RR'),null,null,null);
Insert into MED_IMMUNO (ID, EMP_ID, IMM_REC, IMM_DATE, IMM_NOTES, IMM_APPLICABLE, IMM_REFUSED) values (75,10069,8,to_date('16-JAN-12','DD-MON-RR'),null,null,null);
Insert into MED_IMMUNO (ID, EMP_ID, IMM_REC, IMM_DATE, IMM_NOTES, IMM_APPLICABLE, IMM_REFUSED) values (76,10069,9,to_date('24-FEB-12','DD-MON-RR'),null,null,null);
Insert into MED_IMMUNO (ID, EMP_ID, IMM_REC, IMM_DATE, IMM_NOTES, IMM_APPLICABLE, IMM_REFUSED) values (77,10069,22,to_date('05-DEC-11','DD-MON-RR'),null,null,null);
Insert into MED_IMMUNO (ID, EMP_ID, IMM_REC, IMM_DATE, IMM_NOTES, IMM_APPLICABLE, IMM_REFUSED) values (78,10069,4,to_date('02-JAN-12','DD-MON-RR'),null,null,null);
Insert into MED_IMMUNO (ID, EMP_ID, IMM_REC, IMM_DATE, IMM_NOTES, IMM_APPLICABLE, IMM_REFUSED) values (79,10069,16, null, null, null, null);
Try this:
WITH max_date AS
(
SELECT emp_id, imm_rec, max (imm_date) imm_date
OF MED_IMMUNO M
GROUP BY emp_id, imm_rec
)
DIS_MED_IMMUNO AS
(
SELECT DISTINCT M.emp_id
OF MED_IMMUNO M
)
tmp AS
(
SELECT *.
OF DIS_MED_IMMUNO
CROSS JOIN LU_MED_IMMUNO
)
Tmp.emp_id SELECT emp_id, tmp.ID, tmp. IMM_DESC, M.imm_date
OF tmp LEFT OUTER JOIN max_date M
ON tmp.emp_id = M.emp_id
AND tmp.ID = M.IMM_REC
ORDER BY tmp.emp_id, tmp.ord
-
Update the data to uppercase in the parent/child tables
Hi gurus!
In production, we have a table product and that is in reference by many tables making parent child relationship. By mistake, we realized last month some products have been added to lowercase and now we have a request to update all these product codes uppercase so that existing code that use these tables have no impact. Appreciate if you can give an idea about how can I update the existing data in the table parent uppercase as well as child records?
Concerning
SriAre the product code that you need to update what is stored in the tables of children? If Yes, then you must do it in several steps, something like:
Identify the child tables
SELECT table_name, constraint_name FROM user_constraints WHERE r_constraint_name = (SELECT constraint_name FROM user_constraints WHERE table_name = 'PRODUCT_TABLE' and constraint_type = 'P');
Create new product of upper-case code in the product table:
INSERT INTO product_table SELECT UPPER(product_code), other_columns FROM product_table WHERE product_code <> UPPER(product_code);
Update the children tables for caps product codes
UPDATE child1 SET product_code = UPPER(product_code) WHERE product_code <> UPPER(product_code);
Finally, remove the tiny product_table product codes
DELETE FROM product_table WHERE product_code <> UPPER(product_code);
John
-
How to complete the data not sorted in the listview?
Hello
I use the model dataset to display the list, but the content populated sort alphabatically. How to display the list without sorting?
Thank you
Dembélé George Jacob
Why do you use a sort template when you do not want to sort the list simply use one of the other patterns?
-
XLS2COLLECTION in the collection date format
Recently, I noticed the Date format imported into the collection as part of the XLS2COLLECTION is to come across as DD/MM/YYYY even if the XLS format is DD/MM/YYYY. I can't seem to find a setting anywhere where it would change someone knows all the parameters that affect this format?
XLS2COLLECTION
I actually reached out to my contact at Oracle to get some clarification on this and he was kind enough to return after scanning through the code that is actually a HARD-CODED in the earphone date format. He recommended to post something in the forum of listener to try and address the potential for improvement, but for now it looks like it's like that and in my case, I need to code exception to reformat the date in my application.
Thanks for your comments to Mike!
-
For the moment, I have a collection of table which is filled by an http request to a remote xml file. One of the fields he gets from this xml file is "productoptiona", which, in the application fills the text field of a radio button. What I want is this radio button does not appear in the application, IF the productoptiona field is not any text inside in the collection/xml table that is the product of the selected file is not an option a. Name of my collection of table from the file xml is 'productsAC' and 'choicesTilelist' is the tilelist filled by this collection of table which users will use to select products from.
I applied the following code to the property inludeInLayout of the option button and I can't for the life of understand me why he is not doing anything.
includeInLayout = {} «»
choicesTilelist.selectedItem.productoptiona! == ''}"
This code I can say should mean that the selected product productoptiona is NOT empty, then it should be included in the app, but if it is empty, but when I run the app this option button is included in the application, whether or not the productoptiona field is empty, it should be excluded.
Even if you do includeInLayout = false, the component will always be visible
on the stage. You must make the visible = false also.
Let me know if this helped you
-
Select the column values in the collection
Greetings,
I want to select column values from the collection (plsql tables or table), as the following code, would it be possible
Here tt is any collection
Select emp_no, name, date of birth, sal tt (1), tt (2), tt (3), tt (4) emp; -single line query
Select name, Department of justice, strength and dep_no in tt (5), tt (6), tt (7), tt (8) EMP; -single line query
Version
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
Thanks in advanceNot sure about your business needs. But technically you can do.
declare type tbl is table of number; lemp tbl := tbl(); begin lemp.extend; lemp.extend; lemp.extend; select empno , mgr , sal into lemp(1) , lemp(2) , lemp(3) from emp where empno = 7369; for i in 1..lemp.count loop dbms_output.put_line(to_char(lemp(i))); end loop; end;
-
Searching for an object in a Collection of table
So I have a Collection of table with an object in, the following trace output
(mx.collections::ArrayCollection)#0 filterFunction = (null) length = 1 list = (mx.collections::ArrayList)#1 length = 1 source = (Array)#2 [0] (Object)#3 fileName = "belt_002" filePath = "/mens/belts/" uid = "2EA13990-EEBA-BDD7-8E55-532927494C53" sort = (null) source = (Array)#2
When you add items to the collection of table I want to check that there is no such thing as an object with the same properties.
So, how can I check that the object above is not already in the table, basically that there is no corresponding file name and filePath?
Thanks for your help
Hello
Try this:
protected function componentsCheckList_changeHandler(event:IndexChangeEvent):void { if (_secdataProvider.length==0){ _secdataProvider.addItem(event.currentTarget.selectedItem); _secdataProvider.refresh(); } var myTemp:String = event.currentTarget.selectedItem.file; var arrayLength:Number = _secdataProvider.length; var flag:Boolean = false; for(var i:int = 0; i < arrayLength; i++) { if(_secdataProvider[i].file == myTemp) flag = true; } if (flag == true){ Alert.show("already selected"); }else{ Alert.show("this can be added"); _secdataProvider.addItem(event.currentTarget.selectedItem); _secdataProvider.refresh(); } }
Rgds
Johnny
-
Access to the content of the data of publication in the forms using variables
I have a problem when I tried to access publish data on a form by using a variable...
Login form
< cfquery name = "ConsultaPrecios" datasource = "#Application.DB #" >
SELECT * FROM
VwConsultaPrecios
ORDER BY NOMBRE_PRE
< / cfquery >"< preservedata cfform = 'Yes' name ="formaVentaGastos"action =" "onsubmit =" verificaCampos () "enctype =" multipart/form-data">
< cfloop query = "consultaPrecios" >
< cfoutput >
< tr align = "center" class = "forma" >
< class td = "forma" align = "right" > #consultaPrecios.NOMBRE_PRE #-#NumberFormat(consultaPrecios.PRECIO_PRE, "$___.__") # < table > < / cfoutput >
< class td = "forma" > < cfinput validate = 'integer' value = '0' onChange = "if(this.value=='') {this.value = 0 ;}. validateInt (this, #consultaPrecios.PRECIO_PRE #, ' #consultaPrecios.Nombre_Pre #'); "maxlength ="3"message = 'El campo debe ser entero amount!' type ="text"size ="8"name =" #consultaPrecios.Nombre_Pre #_venta "> < table >
< class td = "forma" > < cfinput style = "" background-color: # 999999; "validate ="integer"readonly ="Yes"value ="0"type ="text"size ="8"name =" #consultaPrecios.Nombre_Pre # "> < table >"
< /tr >
< / cfloop >< / cfform >
Treatment of the form
< cfloop list = "" #Form.FieldNames # ' index 'i' = > "
< cfif findNocase('Venta',#i#) AND NOT findNoCase ("TOTAL", #i #) AND NOT findNoCase ('FARM', #i #) AND NOT findNoCase ("RUTA", #i #) >
< cfset = ' form. Interno ">"
< cfoutput #Ii # > < / cfoutput >< br >
< / cfif >I don't think I understand what you try to do or what you really have a problem.
Looking at your logic, I'd wait loop on your list 'i' variable to hold the value of 'fields' to one of the iterations of the loop. This logic will loop over each of the values in the list "form.fieldnames" and the output of each itteration.
If you want to access the value of the structure of the form for each itteration, table notation is the common approach.
#i#: #form[i]# You can do the same thing with a loop of the collection.
#field#: #form[field]# HTH
Ian
-
Loopback address VRF who flees to the global routing table
Hello
I have a router and you have set up several VRF. I was also able to run routes between the global routing table and one of the VRF (VRF data) with success.
Now, I have not been able to flee the VRF (1.1.1.1) data loopback address in the global routing table, so I can ping to the VRF the global routing table loopback address.
I also read this article:
http://www.Cisco.com/en/us/Tech/tk436/tk832/technologies_configuration_example09186a0080231a3e.shtml
Does anyone know this before?
Joined the config
Thank you
Reza
If select VRF is not supported, you can create a false road map and apply it to the loopback interface:
FAKE route map
vrf adjustment data
!
int loopback 0
FAKE IP policy-map of route
receive data IP vrf
!
HTH
Laurent.
-
Collection of table sorting or Listbox
I need to sort a collection of table or a list box. I tried the example collection ArrayCollection and it ran without errors but do you not sort.
kind of varort = new Sort();
There isn't that one sort field, so use a null value
first parameter.
SortField varortField = new SortField ("null", true);
sortfield.setStyle("locale","en-US");
fate. Fields = [sortfield];
myAC.sort = sort;
myAC.refresh ();Is there a way to sort the listbox control in ascending order? The ArrayCollection collection contains the same data, which is just names.
Neil
Have solved it. I had to change the
SortField varortField = new SortField (null, true);
TO
SortField varortField = new SortField (null, false);
Neil
Maybe you are looking for
-
Satellite Pro L870-172 error 003 when retrieving the recovery DVDs
Hi all Having a devil of a time with this portable darn. So I bought the recovery dvd. tried to boot from the disk and comes with no OS bootable. Thinking it could be a problem with the optical drive, I created a bootable usb key. Received the usb ke
-
Equium P200 1ir - where can I buy cable LCD screen
Hi all I have an Equium P200 1ir and my screen has been crazy, color errors everywhere.I followed the problem down to be a cut wire in the cable of the internal lcd screen. My question is: where can I buy a cable lcd screen replacement for this machi
-
iMessage unable connect the new Macbook Pro
Hello I just bought a new Macbook Pro today. I already have a Macbook air with imessage and FaceTime. But when I want to connect to my iMessage on my Macbook Pro to nog I still get the same error: "an error occurred while verifying identity. Can some
-
Install Windows 7 on Inspiron 9300 - drivers?
Decided to try Windows 7 on my laptop 9300. So far, pretty good. Performance is fast, but I need some drivers I can't find: 1. the multimedia audio driver (no sound). Any ideas where a Vista driver could be found? 2 failed to get the correct resolut
-
I can't download the app from muse.
says that my system is not quite new but my updates say that it is not an update of my system software