One way Data Binding of an ArrayCollection to a last result is altering MySql Record through Coldfusion?
The following if you click on it increments all the dates once, for each time you click,...
like a counter, it changes the value in MySQL, but as I understand what I wrote
I am assigning the last result value to a bindable variable.
So why is the value stored way back in MySQL (after you pass through cold fusion) changed, and how?
This is contrary to my understanding of how the software should work. Comments?
public var theResults:ArrayCollection = new ArrayCollection();
protected function showAllButton_clickHandler(event:MouseEvent):void
getAllLineItemsResult.token = lineItemsService.getAllLineItems();
protected function getAllLineItemsResult_resultHandler(event:ResultEvent):void
theResults = getAllLineItemsResult.lastResult
for each(var item:Object in theResults)
item.AptDate = new Date(item.AptDate.getTime() + (1 * millisecondsPerDay));
and of course theResults is bound to the dataGrid dataProvider property.
FlashBuilder 4, CF9 and MYSQL
Is the service enabled for datamanagement? Also Have you set autocommit on the service's datamanager, to true?
If the answer is yes for the above, then this can happen, as an edit to the datagrid column or an update would automatically call the appropriate functions that are set as part of Datamanagement?