Select to view content in your preferred language

Flex Mobile / FindTask & SplitViewNavigator

1603
11
Jump to solution
08-05-2013 10:29 AM
KomanDiabate
Deactivated User
Hello All,
I trying to build flex moblile app where I am using  splitNavigator to display a query and map result on two separte views. I am using the findTask to query the data however, I am having some problems displaying the query results on the map view.

On the findTask executeComplete event I am running the executeCompleteHandler event using the pushView method to push the graphics to the map, but nothing is being display:

private function executeCompleteHandler(event:FindEvent):void {    var resultCount:int = event.findResults.length;   if (resultCount == 0)   {    //do something   }   else   {    // add feature as graphic to graphics layer    for (var i:int = 0; i < resultCount; i++)    {     findTaskResults.addItem(event.findResults.feature)     }       var snv:SplitViewNavigator=navigator.parentNavigator as SplitViewNavigator;   var mapView:ViewNavigator=snv.getViewNavigatorAt(1) as ViewNavigator;    mapView.pushView(map, findTaskResults); }      } 


On the map view, I trying to load the data in the following manner, but I getting an error on the graphic layer dataprovider
{data.feature}.

<esri:GraphicsLayer graphicProvider="{data.feature}" >    <esri:symbol>     <esri:SimpleFillSymbol alpha="0.5" color="red">      <esri:outline>       <esri:SimpleLineSymbol alpha="1.0" color="yellow"/>      </esri:outline>     </esri:SimpleFillSymbol>    </esri:symbol>   </esri:GraphicsLayer>


Any help will be appreciated.

Thanks all.

Koman Diabate
Tags (2)
0 Kudos
11 Replies
AaronNash1
Frequent Contributor
Not sure specifically what you are trying to do by using or getting rid of transitions. By using pushView you are changing the active view which is appropriate in a mobile setting, too many active views eats up memory. If you want to stay in your current view you can use states instead of changing views or just create a pop-up to display results. I have done it both ways and each way has its benefits.
0 Kudos
KomanDiabate
Deactivated User
Aaron, I was able to do this in the ViewNavigator by setting transitionsEnabled="false".
0 Kudos