<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Extend the functionality of &amp;quot;Layers filter map tool&amp;quot; in dashboard by js api in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/extend-the-functionality-of-quot-layers-filter-map/m-p/762355#M4021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 6px; color: #141823; font-family: helvetica, arial, sans-serif;"&gt;i am working in in creating esri operation dashboard ,&lt;/P&gt;&lt;P style="margin-top: 6px; margin-bottom: 6px; color: #141823; font-family: helvetica, arial, sans-serif;"&gt;i need to extend the functionality of "Layers filter map tool" in dashboard by js api .&lt;/P&gt;&lt;P style="margin-top: 6px; margin-bottom: 6px; color: #141823; font-family: helvetica, arial, sans-serif;"&gt;what i need to change in the default behavior is to have the ability to filter more than one layer in the same time , also to make the condition between filters AND not OR&lt;/P&gt;&lt;P style="margin-top: 6px; margin-bottom: 6px; color: #141823; font-family: helvetica, arial, sans-serif;"&gt;i started to create my first maptool with js API but without function till now ..!&lt;/P&gt;&lt;P style="margin-top: 6px; margin-bottom: 6px; color: #141823; font-family: helvetica, arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="margin-top: 6px; margin-bottom: 6px; color: #141823; font-family: helvetica, arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 16px; color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif;"&gt;here is my js code&lt;/P&gt;&lt;P style="margin-bottom: 16px; color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif;"&gt;define([&lt;BR /&gt;"dojo/_base/declare",&lt;BR /&gt;"dojo/_base/lang",&lt;BR /&gt;"dijit/_WidgetBase",&lt;BR /&gt;"dijit/_TemplatedMixin",&lt;BR /&gt;"esri/opsdashboard/DataSourceProxy",&lt;BR /&gt;"esri/opsdashboard/MapToolProxy",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"dojo/text!./bufferMapToolTemplate.html"&lt;BR /&gt;], function (declare, lang, _WidgetBase, _TemplatedMixin, DataSourceProxy,MapToolProxy, templateString&lt;BR /&gt;) {&lt;/P&gt;&lt;PRE style="font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 11.9px; margin-bottom: 16px; padding: 16px; color: #333333; background-color: #f7f7f7;"&gt;&lt;CODE style="font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 11.9px; background: transparent;"&gt;console.log(DataSourceProxy);&amp;nbsp; return declare("Buffer", [_WidgetBase, _TemplatedMixin,DataSourceProxy, MapToolProxy], {&amp;nbsp; templateString: templateString,&amp;nbsp; hostReady: function () {&amp;nbsp; // Update the size of the user experience this.setDisplaySize({ width: 200, height: 200 }); }, onDeactivateButtonClick: function(){ this.deactivateMapTool(); } }); &lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="margin-bottom: 16px; color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif;"&gt;});&lt;/P&gt;&lt;P style="margin-bottom: 16px; color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif;"&gt;what i need is&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;how to query the dashboard Layers data sources with my filters data ?&lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin-bottom: 16px; color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif;"&gt;also in my json file&lt;/P&gt;&lt;P style="margin-bottom: 16px; color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif;"&gt;{&lt;BR /&gt;"type": "Map Tool",&lt;BR /&gt;"title": "Filter Map Tool",&lt;BR /&gt;"description": "A map tool that creates buffers from a clicked point",&lt;BR /&gt;"usePortalServices": true,&lt;BR /&gt;"useDataFromView": true,&lt;BR /&gt;"runtime": {&lt;BR /&gt;"iconPath": "icon.png",&lt;BR /&gt;"path": "buffer.html",&lt;BR /&gt;"viewType": "toolbar"&lt;BR /&gt;},&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"configuration": {&lt;BR /&gt;"path": "bufferConfig.html"&lt;/P&gt;&lt;P style="margin-bottom: 16px; color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif;"&gt;},&lt;BR /&gt;"credits": "By Esri (&lt;A href="http://www.esri.com/" style="color: #4078c0;"&gt;http://www.esri.com&lt;/A&gt;)"&lt;BR /&gt;}&lt;/P&gt;&lt;P style="margin-bottom: 16px; color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif;"&gt;i need to change "viewType": "toolbar" to value not to replace the default tool bar&lt;/P&gt;&lt;P style="color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif;"&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 20 Sep 2015 10:17:15 GMT</pubDate>
    <dc:creator>mahmoudfadel2</dc:creator>
    <dc:date>2015-09-20T10:17:15Z</dc:date>
    <item>
      <title>Extend the functionality of "Layers filter map tool" in dashboard by js api</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/extend-the-functionality-of-quot-layers-filter-map/m-p/762355#M4021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 6px; color: #141823; font-family: helvetica, arial, sans-serif;"&gt;i am working in in creating esri operation dashboard ,&lt;/P&gt;&lt;P style="margin-top: 6px; margin-bottom: 6px; color: #141823; font-family: helvetica, arial, sans-serif;"&gt;i need to extend the functionality of "Layers filter map tool" in dashboard by js api .&lt;/P&gt;&lt;P style="margin-top: 6px; margin-bottom: 6px; color: #141823; font-family: helvetica, arial, sans-serif;"&gt;what i need to change in the default behavior is to have the ability to filter more than one layer in the same time , also to make the condition between filters AND not OR&lt;/P&gt;&lt;P style="margin-top: 6px; margin-bottom: 6px; color: #141823; font-family: helvetica, arial, sans-serif;"&gt;i started to create my first maptool with js API but without function till now ..!&lt;/P&gt;&lt;P style="margin-top: 6px; margin-bottom: 6px; color: #141823; font-family: helvetica, arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="margin-top: 6px; margin-bottom: 6px; color: #141823; font-family: helvetica, arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 16px; color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif;"&gt;here is my js code&lt;/P&gt;&lt;P style="margin-bottom: 16px; color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif;"&gt;define([&lt;BR /&gt;"dojo/_base/declare",&lt;BR /&gt;"dojo/_base/lang",&lt;BR /&gt;"dijit/_WidgetBase",&lt;BR /&gt;"dijit/_TemplatedMixin",&lt;BR /&gt;"esri/opsdashboard/DataSourceProxy",&lt;BR /&gt;"esri/opsdashboard/MapToolProxy",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"dojo/text!./bufferMapToolTemplate.html"&lt;BR /&gt;], function (declare, lang, _WidgetBase, _TemplatedMixin, DataSourceProxy,MapToolProxy, templateString&lt;BR /&gt;) {&lt;/P&gt;&lt;PRE style="font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 11.9px; margin-bottom: 16px; padding: 16px; color: #333333; background-color: #f7f7f7;"&gt;&lt;CODE style="font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 11.9px; background: transparent;"&gt;console.log(DataSourceProxy);&amp;nbsp; return declare("Buffer", [_WidgetBase, _TemplatedMixin,DataSourceProxy, MapToolProxy], {&amp;nbsp; templateString: templateString,&amp;nbsp; hostReady: function () {&amp;nbsp; // Update the size of the user experience this.setDisplaySize({ width: 200, height: 200 }); }, onDeactivateButtonClick: function(){ this.deactivateMapTool(); } }); &lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="margin-bottom: 16px; color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif;"&gt;});&lt;/P&gt;&lt;P style="margin-bottom: 16px; color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif;"&gt;what i need is&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;how to query the dashboard Layers data sources with my filters data ?&lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin-bottom: 16px; color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif;"&gt;also in my json file&lt;/P&gt;&lt;P style="margin-bottom: 16px; color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif;"&gt;{&lt;BR /&gt;"type": "Map Tool",&lt;BR /&gt;"title": "Filter Map Tool",&lt;BR /&gt;"description": "A map tool that creates buffers from a clicked point",&lt;BR /&gt;"usePortalServices": true,&lt;BR /&gt;"useDataFromView": true,&lt;BR /&gt;"runtime": {&lt;BR /&gt;"iconPath": "icon.png",&lt;BR /&gt;"path": "buffer.html",&lt;BR /&gt;"viewType": "toolbar"&lt;BR /&gt;},&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"configuration": {&lt;BR /&gt;"path": "bufferConfig.html"&lt;/P&gt;&lt;P style="margin-bottom: 16px; color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif;"&gt;},&lt;BR /&gt;"credits": "By Esri (&lt;A href="http://www.esri.com/" style="color: #4078c0;"&gt;http://www.esri.com&lt;/A&gt;)"&lt;BR /&gt;}&lt;/P&gt;&lt;P style="margin-bottom: 16px; color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif;"&gt;i need to change "viewType": "toolbar" to value not to replace the default tool bar&lt;/P&gt;&lt;P style="color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif;"&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Sep 2015 10:17:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/extend-the-functionality-of-quot-layers-filter-map/m-p/762355#M4021</guid>
      <dc:creator>mahmoudfadel2</dc:creator>
      <dc:date>2015-09-20T10:17:15Z</dc:date>
    </item>
  </channel>
</rss>

