TypeError: Error #1009: Cannot access a property or method of a null object reference.
at widgets.Legend2.Handlers::DynamicMapDetailHandler/buildMapDespt()
at widgets.Legend2.Handlers::DynamicMapDetailHandler/buildDetailForm()
at widgets.Legend2.Handlers::DynamicMapDetailHandler/result()
at com.esri.ags.tasks::DetailsTask/handleDetails()
at Function/http://adobe.com/AS3/2006/builtin::call()
at com.esri.ags.tasks::BaseTask/handleResult()
at MethodInfo-1684()
at mx.rpc::Responder/result()
at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyResult()
at mx.rpc.events::ResultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()
at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()
at mx.rpc::Responder/result()
at mx.rpc::AsyncRequest/acknowledge()
at DirectHTTPMessageResponder/completeHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
Hello zilla,
thanks for the last update.
But, now i've got an error popup when the property button in front of a service is clicked (the buttons in front of groups or layers are ok)
error : Null object reference at :
Legend2.Handlers:DynamicMapDetailHandler/buildMapDespt()
DynamicMapDetailHandler.as at line 71
and i still have the problem whith the checkbox of groups an layers until the checkbox of the service is not checked/unchecked
Erwan
I'm experiencing an error with a map service that is published as both a feature service and a mapservice when I hit the properties button:
I have the feature service layers excluded in the xml so that only dynamic map services will show up.
All other map services that are not published as feature service will show the properties. any ideas
else if (layer is FeatureLayer) { var FeatServId:Number = Number.NaN; var msName:String = FeatureLayer(layer).url.replace("FeatureServer","MapServer"); var x:String = msName.substring(msName.length - 9); if(msName.substring(msName.length - 9) != "MapServer") { httpServ.url = msName.substring(0,msName.lastIndexOf("/")) + "/legend?f=json"; FeatServId = parseInt(msName.substring(msName.lastIndexOf("/")+ 1)); }else{ httpServ.url = msName + "/legend?f=json"; } httpServ.resultFormat = "text"; lname = FeatureLayer(layer).id; httpServ.addEventListener(ResultEvent.RESULT,function(event:ResultEvent):void{processLegend(event,lname,FeatServId)}); httpServ.send(); }