need an example of the compareFunction Date-sort
Hi all
I just need an example of the compareFunction (dateCompareFunc) on how to sort an ArrayCollection collection on a date (StartDate is of type Date).
var sort: sort = new Sort();
var sortField:SortField = new SortField ("StartDate");
sortField.compareFunction = dateCompareFunc;
fate. Fields = [sortField];
dateSortedAC.sort = oSort;
dateSortedAC.refresh ();
Can someone give an example?
Thnx!
If this post answers your question or assistance, please mark it as such.
Tags: Flex
Similar Questions
-
Need code examples for the use of the PL/SQL and popup areas
Hi all
I looked at the documentation, but it does not explain how to use it.
I need to create a region using PL/SQL to retrieve data from the tables and print it on a plain HTML page/region I use APEX 4.0.2 and DB Oracle 11i
Thank you!Hello
You can do like this:
DECLARE
NUMBER OF V_SAL;
BEGINSELECT NVL (SUM (salary), 0)
To emp_sal WHERE the emp_id =: P170_emp_id
IN V_SAL;HTP.p (')
');
Salary
'|| LTRIM (TO_CHAR (NVL(V_SAL,0), 'FML999G999G999G999G990D00')) | »
END; -
Need help to extract the Exif data
I can't wrap my brain on how to get an individual item in a generated table. Here's what I'm trying to do: I have a script that will read all the information of an image file's exif header. It traverses the list and display each element exif very well. If I keep stuck trying to extract specific items such as copyright, artist, and description. I took the script out of the php.net site and I understand well enough how it works completely.
Can someone break it down by the measures taken by the script? I think that if I understood it better that I could figure out how to get what I need. For example, should I loop through the $exif table before I can point to the specific exif info I want? I also don't understand the exif_read_data() function parameters (I read what php.net, but it is clear to me).
Thanks in advance for any help.
Mike D
I finally got. The code in the previous post works as what. I had the wrong variable in the "alt" tags It should have been $image_description. Problem solved.
-
Impossible to find a solution to control the next dates on multiple instances of the entity.
Hello
I have a simple scenario. I have two instances of an entity that match two records of a component of bussiness in Siebel. I need to put a validation that the date of the end of an instance is the eve of the start date of the other.
Using the functions Nextdate() etc. can be useful within the same instance, but the way to check on multiple instances?
Any suggestion is welcome.
If you want to exclude from the last instance, there are two options. You can set a Global attribute to the start date of the last session, for example
the date of beginning of last session = InstanceMaximum (sessions, the start date of the session)
... then use this attribute as a filter in your other rules. If there are some things where you want to run the logic on the same subset of instances (e.g., the subset that excludes the last instance), then it might be useful to create an inferred relationship:
1. in the properties file, create one-to-many relationship overall to the session. (Relationships that will be deducted must always be on many-to-many.)
2. give the new relationship a unique and descriptive name for example 'the sessions (excluding the last session) '.
3. write a membership rule to determine which instances of the entity are part of the new relationship, for example
the session is a member of the sessions (excluding the last session), if
start date of the session< the="" start="" date="" of="" the="" latest="">
4. When you want to redo the subset of instances of logic, use the relationship 'the sessions (excluding the last session)' rather than 'the sessions', for example
the end dates of the sessions are valid if
ForAll (sessions (excluding the last session), the session end date is certain)
Using the cross-entity argument version of my example above, the following rule could be set to TRUE:
the end dates of the sessions are valid if
ForAll (sessions (excluding the last session), the session end date is certain)
Whereas this rule would have the value FALSE:
the end dates of the sessions are valid if
ForAll (sessions, the closing date of the session is certain)
I hope that gives you enough to continue their career with your specific scenario!
See you soon,.
Jasmine
-
How to extract data using the xml data type
Hello
I tried the following example using the xml data type, but not the desired output.
could you please correct the query in order to obtain the necessary
CREATE TABLE TEST.EMP_DETAIL ( EMPNO NUMBER, ENAME VARCHAR2(32 BYTE), EMPDETAILS SYS.XMLTYPE )
I need to get the record for Empid = '2'Insert into EMP_DETAIL (EMPNO, ENAME, EMPDETAILS) Values (7, 'Martin', XMLTYPE('<Dept> <Emp Empid="1"> <EmpName>Kevin</EmpName> <Empno>50</Empno> <DOJ>20092008</DOJ> <Grade>E3</Grade> <Sal>3000</Sal> </Emp> <Emp Empid="2"> <EmpName>Coster</EmpName> <Empno>60</Empno> <DOJ>01092008</DOJ> <Grade>E1</Grade> <Sal>1000</Sal> </Emp> <Emp Empid="3"> <EmpName>Samuel</EmpName> <Empno>70</Empno> <DOJ>10052008</DOJ> <Grade>E2</Grade> <Sal>2530</Sal> </Emp> <Emp Empid="4"> <EmpName>Dev</EmpName> <Empno>80</Empno> <DOJ>10032007</DOJ> <Grade>E2</Grade> <Sal>1200</Sal> </Emp> </Dept> '));
Then tried the following query with no expected o/p
Thank you...SELECT a.empno,a.ename,a.empdetails.extract('//Dept/Emp/EmpName/text()').getStringVal() AS "EmpNAME", a.empdetails.extract('//Dept/Emp/Empno/text()').getStringVal() AS "EMPNumber", a.empdetails.extract('//Dept/Emp/DOJ/text()').getStringVal() AS "DOJ", a.empdetails.extract('//Dept/Emp/Grade/text()').getStringVal() AS "Grade", a.empdetails.extract('//Dept/Emp/Sal/text()').getStringVal() AS "Salary", a.empdetails.extract('//Dept/Emp[@Empid="2"]').getStringVal() AS "ID", a.empdetails.extract('//Dept/Emp[EmpName="Coster"]').getStringVal() AS "CHK" FROM emp_detail a where empno=7 AND a.empdetails.existsNode('//Dept/Emp[@Empid="2"]') =1
Karthick_Arp wrote:
I'm not very good at that... But if your XML code should not be more like thisSQL> Insert into EMP_DETAIL 2 (EMPNO, ENAME, EMPDETAILS) 3 Values 4 (7, 'Martin', XMLTYPE('
5 6 .. cut ..1 7Kevin 850 920092008 10E3 113000 12Why? It is perfectly valid to data as attributes rather than elements and also quite common for key values.
-
The variable "date" is also defined in the regular transition is used?
Hello
I needed to understand if the variable "date" is also set when the due transition is used. The reason I ask is the scenario that we saw:
1. There is a regular transition form an interactive activity on an automatic
2. the automatic was an error of syntax (typo) in a SQL statement
3. when the proceedings reached this automatic... instance abandoned... [level of process Exception Management is not present :(]
My first thought was that there is an instanceExpiration exception, but wasn't sure.
A son would be nice...As you know, there are two deadlines:
1. a delay of the process defined by the predefined variable of time and
2. a period for one instance of a work item within an Interactive activity which has a regular transition.The column "Deadline" by default in the workspace shows one of two deadlines that will expire the first.
Dan
-
Use the project start Date and duration to calculate the end Date of project
I'm trying to calculate the end date of the project in a report using the project end Date and time entered on the opportunity.
For example, if the start date of the project filled an opportunity is 31/01/2009 and the length (integer) is entered on the opportunity is 5, the project end date is in the report must be 30/06/2009.
I'm trying to TIMESTAMPADD forumaul allows you to add the duration (number of months) to the project start date
This Fx works TIMESTAMPADD (SQL_TSI_MONTH, 12, '-used Custom Attributes ".) DATE_40)
But if I try to replace the number twelve by the length (integer field) I get an error when you try to save: TIMESTAMPADD (SQL_TSI_MONTH, "-opportunity Custom Metrics".) S_INT_0, '-used custom attributes. DATE_40)
Any ideas on how I can get this to work would be greatly appreciated.Hi, try this. It might solve your prioblem TIMESTAMPADD (SQL_TSI_MONTH, CAST (YOUR FIELD AS INTEGER), account. (' "Last modified")
-John CRMIT
-
Need information about the data included in the example for the inner race with flaws
Hello
There are several examples for fault detection in bearing (Vibration tool sets). I need more information about these data include:
-Bringing its specifications
-How to perform data acquisition
-a link to the tutorial
I came across this manual that shows how to use OATS envelope detection VI to perform detection of failures of bearings.
http://zone.NI.com/reference/en-XX/help/372416A-01/svtconcepts/cst_speed_brg/
It lists the specifications of turnover:
- Inch diameter 0,2813
- Primitive diameter: 1,1228 inch
- Speed: 1 234 RPM
It also goes to the list of characteristic frequencies determined by these attributes.
The data acquisition is carried out by the use of an accelerometer and a tachometer. These devices measure the vibration and the rotation speed of the bearing data. Failure detection uses a method called detection of the envelope to look at the signals of the bearing and compared to signals of standard bearings to the discovery of flaws. You can learn more about the method of acquisition of data here:
http://zone.NI.com/reference/en-XX/help/372416A-01/svtconcepts/fault_detection/#Envelope_Detection
The first link is a tutorial on the detection of failures in the bearings. The end of the link provides the location of an example VI that may also be useful.
-
Sort records by using the approval date in HRMS
HII All
I have a table that displays the records after search
on the search page
now, I want to add a column over at the end of this table which shows the date of approval
This approval approved by a Director with different ID and password
How can I see the date of approval of the vacancy?
and I also want to show a drop down list with options ascending and descending
on this basis the column date of approval must be sorted
How can I achieve this?Hello
If the display attributes are available in VO (responsible for display in the columns of the table) to the corresponding fields, you can
1.) create the areas through customization.
2.) extend the controller and order by condition dynamically in the PFR on the VO responsible to display the value in the columns of the table.
3.) something, you need to check if you are able to add the action event ppr on falling down during the creation of this area through customization, and even then set the ppr on this field in the PR of the extended controller method.If the corresponding attributes are not available you must extend the VO (responsible for display in the columns of the table) too.
Thank you
Pratap -
Collective update to a field in the data sorted in a tubular form
I do a mass update to a field in the data sorted in a tubular form. I've seen samples where they use Java script, but how can I do the same thing in sql, is this possible?
Again thanks.It is possible to make updates in SQL, but of course after a shipment.
JavaScript changes the values of the form objects, when you use SQL wil you need a way to know what values should be updated and with what value.
You can create a process with this update, which is carried out under the condition of a specific button.Hope this helps,
DickDral
-
I think I have to reset the SMC on my MacBook Pro, but I need MUCH more information on my MacBook Pro. For example, is the battery removable?
Depends on what year it is.
-
If I sell my iPhone 6, indicating the error 53, for parts, should I worry about the person buying it have some sort of access to the personal data registered on this phone?
Hello error 53 matched a UN failure to the home button you had to replace the screen or the home button alone or outside apple store so if you replace the button man of origin and you restored the iPhone error will be fixed but if you sell the buyer has no access to the data of the iPhone
-
I have a PCI 6519 data acquisition card. I want to install it on the PC and use it outputs to control a robot. I have problems with the connections to the terminal block which is attached to the cable.
What type of connections I do for the acquisition of data PCI 619 card pins? What I have to give it to the ground and the CCV on the pins of the connector myself? What should be the value of the SCR I need to give to the PIN?
-
Need for a versatile to pass data to the chart
Hello
I have a sub - vi that performs data analyses. I pulled out the results through a def type. I want that this type def to include data necessary to plot the results on a XY Chart.
My problem is that the data will sometimes contain only 1 and sometimes multiple data series dear. or sometimes the output should be a cluster of two 1 d-tables, sometimes it must be an array of clusters. Is there a good way to do this?
vs
udka wrote:
You can try using for loop with indexing enabled so you will come to know how much coulumns you have during execution and clusters and then indexing on so that you always have table of clusters.
You are on the right track. Just need a little before the loop to transpose the table (to properly make the indexing job) and remove the data from the x-axis.
-
Activating/Deactivating the program to sort data during the acquisition sets
Hello
I have a pledge Board of two channels that I use for recording analog signal flight time. I already have a program that records the signal and it is average, but I'm about to do my laser and a new experience that turns my detector at 40 Hz to 20 Hz. With this info, here is what I do:
1. I need to record the signal of the FTT, as usual, however, I need to make a distinction between my data and my laser data.
One idea I had is to somehow trigger the program after the initial outbreak, to indicate if the laser is enabled or disabled. Then, I could use a deal to build two data tables.
A second idea is to use a loop for. Because a rep rate is two times more than the other, I can simply add the data of all the iterations, even to an array and the odd data to another. However, with this I have no idea what table contains the laser power data.
The overall program removes subtables of the laser and laser data to make a substantive correction in real time. The idea is similar to a detector lock-in-amplify or sensitive to the phase except that I will subtract the phase signal output. Right now, I just need to make the distinction between the two types of incoming data sets.
Thanks in advance
Maybe you are looking for
-
Computer cannot find the printer on the network
I have a Photosmart D110A and use a router Airport Extreme to print from my PC and iPad. Until a few days ago, it worked fine but now neither my iPad or PC can find the printer on the network. When I run the test report of network on the printer, i
-
EliteBook 8730w: number of key Windows Vista 32 and 64 bit
Hello XP has been installed from a disk partition (D) My laptop has been improved from XP to Vista 32 bit with the CD that I got the pakage. In the buttom is a buffer with the key number. I have the CD with Vista 32 and Vista 64 1 is the number of th
-
When trying to connect in my chess club of the page but login box does not work, at the bottom of the screen, it is said that he has to wait for the response & error symbol appears for this page
-
Errored score named E: can it be changed to C:-rev B
Thanks for the replies. I had crash of windows with or without backups. won't start not but hppefully data can be read and transferred to a new. With VAST effort, I bought and loaded an identical copy Windows, internet explorer, Qwest HS internet & a
-
The data agroenvironnemenaux file recovery
I had a disk failure, and while I was waiting for the new upcoming disc in my drive also failed mirrored. Is there a way to get my database of fingerprints, because I had many, many connections stored in it?