Archive

Archive for January, 2010

Prevent the drag possibility for some items in a dragEnabled Flex list

January 21st, 2010 Wannes No comments

If you have a Flex list (List, DataGrid, TileList or whatever) that is drag enabled, you don’t always want that each item of the list is draggable.
It should be very handy if Flex offers some kind of filter function that decides which items are draggable and which aren’t. Unfortunately such a function is not available yet.

The easiest way to prevent the dragging at this time is to listen to the dragStart event and prevent the default behavior when the item is not allowed to be dragged.

Read more…

Update a datetime field by adding extra time in MySql

January 14th, 2010 Wannes No comments

If you want to update a datetime field in a mysql table by adding some extra hours for example you can use the next statement:

UPDATE table_name SET column_name = ADDTIME(column_name, '9:0:0')

This will add 9 hours to each row of the table. Read more…

Categories: MySql Tags: , ,