[flexcoders] Re: Cursor Error: Bookmark no longer valid.
I got a workarround just simplely: ac.disableAutoUpdate(); before you make any change to the ac.
Re: [flexcoders] Re: Cursor Error: Bookmark no longer valid.
Hi Luke, Mine is just a GroupingCollection (http://livedocs.adobe.com/flex/3/langref/mx/collections/GroupingCollection.html ). _rico On 04.03.2009, at 06:59, luke_lee1124 wrote: Hi, rico Thanks very much. what is the data type of your gc? mine is a mx:HierarchicalData, it did not have a refresh() method. Thanks --- In flexcoders@yahoogroups.com, Rico Leuthold rleuth...@... wrote: Hi Luke, I couldn't find any solution to this, but found a workaround. Just filter the underlying ArrayCollection, set it as source for the grouping collection and refresh the collection. ac.filterFunction = theFilterFunc; gc.source = ac; gc.refresh(); adg.expandAll(); This works for me. _rico On 25.02.2009, at 03:25, luke_lee1124 wrote: Error: Bookmark no longer valid. at ListCollectionViewCursor/seek()[E:\dev\3.1.0\frameworks\projects \framework\src\m\ x\collections\ListCollectionView.as:2055] at mx.collections::HierarchicalCollectionViewCursor/ collectionChangeHandler()[C:\wo\ rk\flex\dmv_automation\projects\datavisualisation\src\mx \collections \Hierarchica\ lCollectionViewCursor.as:1116] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.collections::HierarchicalCollectionView/ nestedCollectionChangeHandler()[C:\wo\ rk\flex\dmv_automation\projects\datavisualisation\src\mx \collections \Hierarchica\ lCollectionView.as:1199] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.collections::ListCollectionView/dispatchEvent()[E:\dev \3.1.0\frameworks\proje\ cts\framework\src\mx\collections\ListCollectionView.as:833] at mx.collections::ListCollectionView/addItemsToView()[E:\dev \3.1.0\frameworks\proj\ ects\framework\src\mx\collections\ListCollectionView.as:931] at mx.collections::ListCollectionView/listChangeHandler()[E:\dev \3.1.0\frameworks\p\ rojects\framework\src\mx\collections\ListCollectionView.as:1051] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.collections::ArrayList/internalDispatchEvent()[E:\dev \3.1.0\frameworks\projec\ ts\framework\src\mx\collections\ArrayList.as:510] at mx.collections::ArrayList/addItemAt()[E:\dev\3.1.0\frameworks \projects\framework\ \src\mx\collections\ArrayList.as:311] at mx.collections::ListCollectionView/addItemAt()[E:\dev \3.1.0\frameworks\projects\\ framework\src\mx\collections\ListCollectionView.as:501] at components.section_page_manager::section_page_add_form/addPage() [D: \xampp\htdocs\ \flex\survey_builder_v3\src\components\section_page_manager \section_page_add_for\ m.mxml:206] at components.section_page_manager::section_page_add_form/doSave()[D: \xampp\htdocs\\ flex\survey_builder_v3\src\components\section_page_manager \section_page_add_form\ .mxml:93] at components.section_page_manager::section_page_editor/ __btnSave_click()[D:\xampp\\ htdocs\flex\survey_builder_v3\src\components\section_page_manager \section_page_e\ ditor.mxml:94]
[flexcoders] Re: Cursor Error: Bookmark no longer valid.
Hi, rico Thanks very much. what is the data type of your gc? mine is a mx:HierarchicalData, it did not have a refresh() method. Thanks --- In flexcoders@yahoogroups.com, Rico Leuthold rleuth...@... wrote: Hi Luke, I couldn't find any solution to this, but found a workaround. Just filter the underlying ArrayCollection, set it as source for the grouping collection and refresh the collection. ac.filterFunction = theFilterFunc; gc.source = ac; gc.refresh(); adg.expandAll(); This works for me. _rico On 25.02.2009, at 03:25, luke_lee1124 wrote: Error: Bookmark no longer valid. at ListCollectionViewCursor/seek()[E:\dev\3.1.0\frameworks\projects \framework\src\m\ x\collections\ListCollectionView.as:2055] at mx.collections::HierarchicalCollectionViewCursor/ collectionChangeHandler()[C:\wo\ rk\flex\dmv_automation\projects\datavisualisation\src\mx\collections \Hierarchica\ lCollectionViewCursor.as:1116] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.collections::HierarchicalCollectionView/ nestedCollectionChangeHandler()[C:\wo\ rk\flex\dmv_automation\projects\datavisualisation\src\mx\collections \Hierarchica\ lCollectionView.as:1199] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.collections::ListCollectionView/dispatchEvent()[E:\dev \3.1.0\frameworks\proje\ cts\framework\src\mx\collections\ListCollectionView.as:833] at mx.collections::ListCollectionView/addItemsToView()[E:\dev \3.1.0\frameworks\proj\ ects\framework\src\mx\collections\ListCollectionView.as:931] at mx.collections::ListCollectionView/listChangeHandler()[E:\dev \3.1.0\frameworks\p\ rojects\framework\src\mx\collections\ListCollectionView.as:1051] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.collections::ArrayList/internalDispatchEvent()[E:\dev \3.1.0\frameworks\projec\ ts\framework\src\mx\collections\ArrayList.as:510] at mx.collections::ArrayList/addItemAt()[E:\dev\3.1.0\frameworks \projects\framework\ \src\mx\collections\ArrayList.as:311] at mx.collections::ListCollectionView/addItemAt()[E:\dev \3.1.0\frameworks\projects\\ framework\src\mx\collections\ListCollectionView.as:501] at components.section_page_manager::section_page_add_form/addPage()[D: \xampp\htdocs\ \flex\survey_builder_v3\src\components\section_page_manager \section_page_add_for\ m.mxml:206] at components.section_page_manager::section_page_add_form/doSave()[D: \xampp\htdocs\\ flex\survey_builder_v3\src\components\section_page_manager \section_page_add_form\ .mxml:93] at components.section_page_manager::section_page_editor/ __btnSave_click()[D:\xampp\\ htdocs\flex\survey_builder_v3\src\components\section_page_manager \section_page_e\ ditor.mxml:94]
Re: [flexcoders] Re: Cursor Error: Bookmark no longer valid.
Hi Luke, I couldn't find any solution to this, but found a workaround. Just filter the underlying ArrayCollection, set it as source for the grouping collection and refresh the collection. ac.filterFunction = theFilterFunc; gc.source = ac; gc.refresh(); adg.expandAll(); This works for me. _rico On 25.02.2009, at 03:25, luke_lee1124 wrote: Error: Bookmark no longer valid. at ListCollectionViewCursor/seek()[E:\dev\3.1.0\frameworks\projects \framework\src\m\ x\collections\ListCollectionView.as:2055] at mx.collections::HierarchicalCollectionViewCursor/ collectionChangeHandler()[C:\wo\ rk\flex\dmv_automation\projects\datavisualisation\src\mx\collections \Hierarchica\ lCollectionViewCursor.as:1116] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.collections::HierarchicalCollectionView/ nestedCollectionChangeHandler()[C:\wo\ rk\flex\dmv_automation\projects\datavisualisation\src\mx\collections \Hierarchica\ lCollectionView.as:1199] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.collections::ListCollectionView/dispatchEvent()[E:\dev \3.1.0\frameworks\proje\ cts\framework\src\mx\collections\ListCollectionView.as:833] at mx.collections::ListCollectionView/addItemsToView()[E:\dev \3.1.0\frameworks\proj\ ects\framework\src\mx\collections\ListCollectionView.as:931] at mx.collections::ListCollectionView/listChangeHandler()[E:\dev \3.1.0\frameworks\p\ rojects\framework\src\mx\collections\ListCollectionView.as:1051] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.collections::ArrayList/internalDispatchEvent()[E:\dev \3.1.0\frameworks\projec\ ts\framework\src\mx\collections\ArrayList.as:510] at mx.collections::ArrayList/addItemAt()[E:\dev\3.1.0\frameworks \projects\framework\ \src\mx\collections\ArrayList.as:311] at mx.collections::ListCollectionView/addItemAt()[E:\dev \3.1.0\frameworks\projects\\ framework\src\mx\collections\ListCollectionView.as:501] at components.section_page_manager::section_page_add_form/addPage()[D: \xampp\htdocs\ \flex\survey_builder_v3\src\components\section_page_manager \section_page_add_for\ m.mxml:206] at components.section_page_manager::section_page_add_form/doSave()[D: \xampp\htdocs\\ flex\survey_builder_v3\src\components\section_page_manager \section_page_add_form\ .mxml:93] at components.section_page_manager::section_page_editor/ __btnSave_click()[D:\xampp\\ htdocs\flex\survey_builder_v3\src\components\section_page_manager \section_page_e\ ditor.mxml:94]
[flexcoders] Re: Cursor Error: Bookmark no longer valid.
Hi, Here is my debug result Error: Bookmark no longer valid. at ListCollectionViewCursor/seek()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:2055] at mx.collections::HierarchicalCollectionViewCursor/collectionChangeHandler()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\collections\HierarchicalCollectionViewCursor.as:1116] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.collections::HierarchicalCollectionView/nestedCollectionChangeHandler()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\collections\HierarchicalCollectionView.as:1199] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.collections::ListCollectionView/dispatchEvent()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:833] at mx.collections::ListCollectionView/addItemsToView()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:931] at mx.collections::ListCollectionView/listChangeHandler()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:1051] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.collections::ArrayList/internalDispatchEvent()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\collections\ArrayList.as:510] at mx.collections::ArrayList/addItemAt()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\collections\ArrayList.as:311] at mx.collections::ListCollectionView/addItemAt()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:501] at components.section_page_manager::section_page_add_form/addPage()[D:\xampp\htdocs\flex\survey_builder_v3\src\components\section_page_manager\section_page_add_form.mxml:206] at components.section_page_manager::section_page_add_form/doSave()[D:\xampp\htdocs\flex\survey_builder_v3\src\components\section_page_manager\section_page_add_form.mxml:93] at components.section_page_manager::section_page_editor/__btnSave_click()[D:\xampp\htdocs\flex\survey_builder_v3\src\components\section_page_manager\section_page_editor.mxml:94]
[flexcoders] Re: Cursor Error: Bookmark no longer valid.
Error: Bookmark no longer valid. at ListCollectionViewCursor/seek()[E:\dev\3.1.0\frameworks\projects\framework\src\m\ x\collections\ListCollectionView.as:2055] at mx.collections::HierarchicalCollectionViewCursor/collectionChangeHandler()[C:\wo\ rk\flex\dmv_automation\projects\datavisualisation\src\mx\collections\Hierarchica\ lCollectionViewCursor.as:1116] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.collections::HierarchicalCollectionView/nestedCollectionChangeHandler()[C:\wo\ rk\flex\dmv_automation\projects\datavisualisation\src\mx\collections\Hierarchica\ lCollectionView.as:1199] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.collections::ListCollectionView/dispatchEvent()[E:\dev\3.1.0\frameworks\proje\ cts\framework\src\mx\collections\ListCollectionView.as:833] at mx.collections::ListCollectionView/addItemsToView()[E:\dev\3.1.0\frameworks\proj\ ects\framework\src\mx\collections\ListCollectionView.as:931] at mx.collections::ListCollectionView/listChangeHandler()[E:\dev\3.1.0\frameworks\p\ rojects\framework\src\mx\collections\ListCollectionView.as:1051] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.collections::ArrayList/internalDispatchEvent()[E:\dev\3.1.0\frameworks\projec\ ts\framework\src\mx\collections\ArrayList.as:510] at mx.collections::ArrayList/addItemAt()[E:\dev\3.1.0\frameworks\projects\framework\ \src\mx\collections\ArrayList.as:311] at mx.collections::ListCollectionView/addItemAt()[E:\dev\3.1.0\frameworks\projects\\ framework\src\mx\collections\ListCollectionView.as:501] at components.section_page_manager::section_page_add_form/addPage()[D:\xampp\htdocs\ \flex\survey_builder_v3\src\components\section_page_manager\section_page_add_for\ m.mxml:206] at components.section_page_manager::section_page_add_form/doSave()[D:\xampp\htdocs\\ flex\survey_builder_v3\src\components\section_page_manager\section_page_add_form\ .mxml:93] at components.section_page_manager::section_page_editor/__btnSave_click()[D:\xampp\\ htdocs\flex\survey_builder_v3\src\components\section_page_manager\section_page_e\ ditor.mxml:94]
RE: [flexcoders] Re: Cursor Error: Bookmark no longer valid.
Post the full stack trace From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of luke_lee1124 Sent: Sunday, February 01, 2009 1:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Cursor Error: Bookmark no longer valid. I have the same problem, please let me know if you find a solution. Many thanks
[flexcoders] Re: Cursor Error: Bookmark no longer valid.
I have the same problem, please let me know if you find a solution. Many thanks