Archives for categorie "Errors"

Fixed bug with selectAll item in component ComboCheck.

Thank you Miral for the comment!

  • Share/Bookmark

Located a bug in Flex SDK 3.4 about HTTPService Responders Are Called Twice.

In this post of Web App Solution Web there is a workaround.

  • Share/Bookmark

LiveCycle control managed object [Managed] to basic operations CRUD with tag autoCommit.

It can control the same process using Assembler methods with flex DataService (createItem, deleteItem, commit).
Updating process use commit without any responder:

public function updateItem(item:myManagedClass):void {
   service.commit();
   //var call:AsyncToken = service.commit(); // Don't use it
   //call.addResponder(responder); // Don't use it
}
  • Share/Bookmark

Fixed bug with checkbox checked at dropdown in component ComboCheck.

Thank you giorgio for the comment!

  • Share/Bookmark

Using paged collections (in GraniteDS) as data source in a flex comboBoxcomo we get following error:

Error: Items pending from 0 to 20 for index 10
	at org.granite.tide.collections::PagedCollection/getItemAt()[C:\workspace\graniteds\as3\framework\org\granite\tide\collections\PagedCollection.as:507]
	at ListCollectionViewCursor/moveNext()
	at mx.controls::ComboBox/calculatePreferredSizeFromData()
	at mx.controls::ComboBase/measure()
	at mx.controls::ComboBox/measure()
	at mx.core::UIComponent/measureSizes()
	at mx.core::UIComponent/validateSize()
	at mx.managers::LayoutManager/validateSize()
	at mx.managers::LayoutManager/doPhasedInstantiation()
	at Function/http://adobe.com/AS3/2006/builtin::apply()
	at mx.core::UIComponent/callLaterDispatcher2()
	at mx.core::UIComponent/callLaterDispatcher()

SOLUTION: To use big amount of data in the component we can bind the complete list (without pagination) as:

private function onCreationComplete():void {
	myList.addEventListener(CollectionEvent.COLLECTION_CHANGE, myListBinding);
}
private function myListBinding(event:CollectionEvent):void {
	myCombo.executeBindings();
}
[...]
<mx:ComboBox id="myCombo" dataProvider="{myList.list}"/>

More information in graniteds forum.

  • Share/Bookmark
Creative Commons License
This blog is under Creative Commons licence, unless indicated otherwise.
Special thanks to Mark James for the icon set used in this blog.