Programmatically open infoWindowRenderer

443
3
07-24-2013 09:48 AM
AaronNash1
Occasional Contributor II
I have a web application that zooms to a selected feature on a data grid click. I am trying to programmatically open a pop-up window when the feature is selected and zoomed to in the map. Here is the pop-up window for the feature class

   <esri:infoWindowRenderer>
    <fx:Component id="test">
     <mx:VBox backgroundColor="0xffffff" color="0x444444" label="{data.Name}" fontWeight="bold" height="300" width="350" fontSize="14">
      <mx:Text text="Location: {data.Address}" width="300" fontSize="12"/>
      <mx:Label text="LSNI District: {data.District}" fontSize="12"/>
      <mx:Label text="Project Manager: {data.Manager}" fontSize="12"/>
      <mx:Label text="Project Assistant: {data.Assistant}" fontSize="12"/>
      <mx:Label text="Division: {data.DS_Department}" fontSize="12"/>
      <mx:Label text="Current Status: {data.Cur_Status}" fontSize="12"/>
      <mx:Label text="Next Step: {data.Steps}" fontSize="12"/>
      <mx:Label text="Project Funding: {data.Total_Fund}" fontSize="12"/>
      <mx:Text text="Description: {data.Scope}" width="300" fontSize="12"/>
      <mx:Text text="Status: {data.Issues}" width="300" fontSize="12"/>
      <mx:Text text="Timeline: {data.DS_Timeline}" width="300" fontSize="12"/>
      <mx:Text text="Milestones: {data.DS_Milestones}" width="300" fontSize="12"/>      
     </mx:VBox>
    </fx:Component>
   </esri:infoWindowRenderer>


after the feature is selected i am showing the pop-up through this command myMap.infoWindow.show(remapPoint); remapPoint being the location of the selected feature. The pop-up is empty, would appreciate any thoughts, been banging my head against the wall on this one
Tags (2)
0 Kudos
3 Replies
LloydHeberlie
Occasional Contributor
I have a web application that zooms to a selected feature on a data grid click. I am trying to programmatically open a pop-up window when the feature is selected and zoomed to in the map. Here is the pop-up window for the feature class

   <esri:infoWindowRenderer>
    <fx:Component id="test">
     <mx:VBox backgroundColor="0xffffff" color="0x444444" label="{data.Name}" fontWeight="bold" height="300" width="350" fontSize="14">
      <mx:Text text="Location: {data.Address}" width="300" fontSize="12"/>
      <mx:Label text="LSNI District: {data.District}" fontSize="12"/>
      <mx:Label text="Project Manager: {data.Manager}" fontSize="12"/>
      <mx:Label text="Project Assistant: {data.Assistant}" fontSize="12"/>
      <mx:Label text="Division: {data.DS_Department}" fontSize="12"/>
      <mx:Label text="Current Status: {data.Cur_Status}" fontSize="12"/>
      <mx:Label text="Next Step: {data.Steps}" fontSize="12"/>
      <mx:Label text="Project Funding: {data.Total_Fund}" fontSize="12"/>
      <mx:Text text="Description: {data.Scope}" width="300" fontSize="12"/>
      <mx:Text text="Status: {data.Issues}" width="300" fontSize="12"/>
      <mx:Text text="Timeline: {data.DS_Timeline}" width="300" fontSize="12"/>
      <mx:Text text="Milestones: {data.DS_Milestones}" width="300" fontSize="12"/>      
     </mx:VBox>
    </fx:Component>
   </esri:infoWindowRenderer>


after the feature is selected i am showing the pop-up through this command myMap.infoWindow.show(remapPoint); remapPoint being the location of the selected feature. The pop-up is empty, would appreciate any thoughts, been banging my head against the wall on this one


Hi Aaron,

Have you seen this sample?
https://developers.arcgis.com/en/flex/sample-code/display-popups-programmatically.htm
0 Kudos
AaronNash1
Occasional Contributor II
thanks for the response, I did check that out and tried to use it as my base. I did a lot of custom work in my project, but I am stuck at trying to programmatically open the popup window. I may move back towards that sample project again,

thanks,

Aaron
0 Kudos
AaronNash1
Occasional Contributor II
I was able to get the sample to work for my application

thanks,
  Aaron
0 Kudos