Select to view content in your preferred language

Attribute window

846
4
Jump to solution
12-19-2016 11:33 AM
GregRieck
Frequent Contributor

Jewelry Box theme. WAB 2.2

Hello, 

I have a FeatureAction attached to the attribute window. When I activate my feature action a widget opens and I'd like to close the attribute window. How would I go about that? 

Thank You,

Greg

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Greg,

   No I just thought you were talking about the AT Widget. In that case it is as simple as 

this.map.infoWindow.hide();

View solution in original post

4 Replies
RobertScheitlin__GISP
MVP Emeritus

Greg,

   Sure you just need to get a reference to the AT widget and call the _closeTable method:

//requires
'jimu/WidgetManager',
...
WidgetManager
...
var attWidget = WidgetManager.getInstance().getWidgetByLabel("Attribute Table");
if (attWidget) {
   attWidget._closeTable();
}
GregRieck
Frequent Contributor

Hi Robert,

Thank you for responding. Well, its not an Attribute Table. Its the Attribute Window. The popup window from selecting a feature on the map. It displays all the attributes of the selected feature, it has the zoom to link and the three dots on the right side. Those three dots is where my feature action is. So when I click my feature action I want this selected features attribute window to close. Does it have a different name?

Greg

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Greg,

   No I just thought you were talking about the AT Widget. In that case it is as simple as 

this.map.infoWindow.hide();

GregRieck
Frequent Contributor

Thank You Robert that is exactly what I was looking for.

0 Kudos