Error

davidbyford
Posts: 2
Joined: 2008-02-25

Settings are as follows:
showRoot="false" labelFunction="treeLabel" toggledField="allowAccess"
dataprovider is an ArrayCollection.
Error on fill is:

ReferenceError: Error #1069: Property invalidBranch not found on entity.AppSecurityItemRoleRel and there is no default value.
at com.teotiGraphix.controls.checkBoxTreeClasses::CheckBoxTreeDataDescriptor/isInvalidBranch()
at com.teotiGraphix.controls.checkBoxTreeClasses::CheckBoxItemRenderer/com.teotiGraphix.controls.checkBoxTreeClasses:CheckBoxItemRenderer::commitProperties()
at mx.core::UIComponent/validateProperties()
at mx.managers::LayoutManager/validateClient()
at mx.controls::List/mx.controls:List::makeRowsAndColumns()
at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::updateDisplayList()
at mx.controls::List/mx.controls:List::updateDisplayList()
at mx.controls::Tree/mx.controls:Tree::updateDisplayList()
at mx.core::UIComponent/validateDisplayList()
at mx.managers::LayoutManager/::validateDisplayList()
at mx.managers::LayoutManager/::doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()

If I add invalidBranch to my source class the list then loads but then errors (though record is updated OK) when I check/uncheck and item:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.teotiGraphix.controls::CheckBoxTreeFX/com.teotiGraphix.controls:CheckBoxTreeFX::_getParentItem()
at com.teotiGraphix.controls::CheckBoxTreeFX/com.teotiGraphix.controls:CheckBoxTreeFX::reverseValidateItem()
at com.teotiGraphix.controls::CheckBoxTreeFX/toggleItem()
at com.teotiGraphix.controls::CheckBoxTreeFX/::this_checkClickHandler()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at com.teotiGraphix.controls.checkBoxTreeClasses::CheckBoxItemRenderer/::checkButton_clickHandler()

Comments
Teoti
Posts: 172
Joined: 2006-09-04

Hi,

This error is due to the fact I didn't think about the pitfalls of adding an extraneous property to the model. This was my design flaw.

This is a bug, and I will see about getting it fixed within a week.

See; http://www.teotigraphix.com/node/342

Mike

Privacy Policy | Copyright Notice| Disclaimer| Product EULA
©2003-2008 Teoti Graphix, LLC - All rights reserved.