Archive | September, 2008

Binding Flex TextInput UI Controls to a DataProvider

In Flex when you bind data to a UI control like a DataGrid, the grid cells refresh every time the dataSource changes. The reverse is also true if the DataGrid is enabled for editing. That is, the dataSource is also updated when you edit a cell. The TextInput can be bound as well so that [...]

16 Comments Continue Reading →

Handling data updates with the Flex AS3 DataGrid

UPDATE: I don’t actually follow this technique because, although I feel it is technically correct, nobody seems to do it and Adobe doesn’t really seem to fix related glitches in this approach (possibly because they don’t want you to do it this way).  But anyway, read on if you are interested in an alternate approach to updating [...]

9 Comments Continue Reading →

Working with dates in Flex AIR and SQLite

UPDATE 3/25/09: Paul Robertson from the AIR team stopped by and writes that declaring your SQLite column affinity (ie column type) as “DATE” will instruct AIR to handle all date conversions for you automatically.  The problems I experienced mainly surfaced in a DataGrid when using a DateField and I have not had a chance to [...]

29 Comments Continue Reading →

Ridiculous date formatting in SQLite

The following code outputs a SQLite date into a standard date format with month abbreviations that, believe it or not, Flex/AIR will accept as a Date value (Though SQLite itself doesn’t recognize it as a valid DATETIME!). I created this atrocious code while trying to figure out the mysterious interaction between AIR and SQLite date [...]

Leave a comment Continue Reading →