Re: Another Flex/VMS example - Browsing the ACCOUNTNG.DAT file
- From: Jean-François Piéronne <jf.pieronne@xxxxxxxxxxx>
- Date: Sun, 25 May 2008 23:02:25 +0200
Richard Maher wrote:
Hi JF,[snip]
You have to specify Array.NUMERIC when you call the sortOn Array method.
for example: myarray.sortOn('item', Array.NUMERIC);
I think the problem Peter's experiencing is on the default Flex datagrid
column sort. (ie. Just clicking on the column header). I don't use the
gratuitous waste of bandwith that is XML myself and am not sure how one
would distinguish a numeric from a string (although if you look at the Adobe
Dashboard example for a while it can't be too hard to figure out as it (with
XML) certainly works there.)
The array is the one specified as the dataProvider of the datagrid. Just specified the flag and Flex do the job for you when you click on the column title.
if you specified the sortOn method using Array.NUMERIC the array will be sorted (for this column) using a numeric sort instead of a string sort.
My example use the AMF protocol which is native in Flex (according to the PyAMF site using AMF allow applications to load data up to 10 times faster than with text-based formats such as XML or SOAP.)
JF
ps.
As promise a long time ago, I have set up a repository will full source of my example. I have,initially, planed to rewrite it using PureMVC but due to lack of time it's delayed, so I have decide to publish the code asis. I also expect to publish another example because 3 students are working on a T4 data browser using Flex.
Send me email with a valid email and I will give you access (read only or read/write if you want to collaborate) to the repository.
.
- References:
- Another Flex/VMS example - Browsing the ACCOUNTNG.DAT file
- From: Peter Weaver
- Re: Another Flex/VMS example - Browsing the ACCOUNTNG.DAT file
- From: Jean-François Piéronne
- Re: Another Flex/VMS example - Browsing the ACCOUNTNG.DAT file
- From: Richard Maher
- Another Flex/VMS example - Browsing the ACCOUNTNG.DAT file
- Prev by Date: Re: Galaxy on ES45
- Next by Date: Re: fibre channel tape drives accessed from multiple clusters
- Previous by thread: Re: Another Flex/VMS example - Browsing the ACCOUNTNG.DAT file
- Next by thread: Re: Another Flex/VMS example - Browsing the ACCOUNTNG.DAT file
- Index(es):
Relevant Pages
|