Dynamic Visibility Error

Hello All,

I’m doing the following:

  1. Add a Radio Button and Bind it to data X,Y,Z and insert the position into Cell A1
  2. Add 3 list components with Dynamic Visibility binded to A1.

So when i select X, the first List Box is displayed, Y displays the second and Z the third. But thats not happening. When i try to preview it, it gives me the following error.

TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at mx.core::ScrollControlBase/updateDisplayList()
	at mx.controls.listClasses::ListBase/updateDisplayList()
	at mx.controls::List/updateDisplayList()
	at xcelsius.controls.listClasses::ListBase/updateDisplayList()
	at xcelsius.controls::List/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()
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at mx.core::UIComponent/dispatchEvent()
	at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()
	at mx.core::Container/addChildAt()
	at template2901818973-34086-4573-128-41-1712167316915071/restoreDisplayObject()
	at xcelsius.controls::List/setDynamicVisibility()
	at xcelsius.controls::List/commitDynamicVisibilityProperties()
	at xcelsius.controls::List/set displayStatus()
	at MethodInfo-2997()
	at xcelsius.binding::XCChangeWatcher/wrapHandler()
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at xcelsius.binding.tableMaps.output::TableToSingleton/updateMap()
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at xcelsius.collections::ArrayTable/flushUpdateEvents()
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at xcelsius.spreadsheet::Document/Calculate()

RohitCX (BOB member since 2008-09-09)

I might be off on your issue here, but shouldn’t your insert option be “Value” instead of “Position”?


thartm (BOB member since 2007-05-31)

As far as i know, The insert option should not make a difference. However i tried all possible insert options (Row, Value, Label Etc). Still it returns the same error when i preview. I’m attaching the XLF file as reference.

Please help.

Regards,
Rohit
DynamicVisibilityError.zip (5.0 KB)


RohitCX (BOB member since 2008-09-09)

I looked at this. I couldn’t open the file in 4.5, maybe we’re on different SP’s.

I have a different install of v 2008, and I opened the file there. The visibility worked just like you said it should.

I’m not really sure what to tell you. The only other thing that I can think to try to would be to directly reference the cell $A$3 for the Dynamic Visiblity Key instead of using the numbers (1,2,3).


thartm (BOB member since 2007-05-31)

Hi Rohit

I have tried to replicate your problem. I opened your XLF file it is working fine without any errors as you said.

Thanks ,
Srinivas Dandamudi.


dandamudi :india: (BOB member since 2008-07-03)

Hi Rohit,
the fact that you see error messages tells that you have the debug version of Flash player installed. While the error message indicates that some bug may be present, it is also possible that your swf will work fine if you install release version of Flash player. To do it, you need to remove Flash through Control Panel->Add and remove programs and install release version of flash player (you can get it from Adobe website).


MargaretG (BOB member since 2008-06-03)

Hi Rohit,
I could not reproduce your problem even with debug flash player.
Margaret


MargaretG (BOB member since 2008-06-03)

Hello Margaret,

I got this one fixed. It was an issue with the flash.ocx file missing in Windows Vista.

MyXcelsius.com helped me resolving the issue in a different thread.

https://bobj-board.org/t/117604

Thank you.


RohitCX (BOB member since 2008-09-09)