<?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 Re: What Variables are the fields in the Group Layer WAB Widget Populated by? in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/what-variables-are-the-fields-in-the-group-layer/m-p/1111226#M14637</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/130286"&gt;@NicoKroes&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The filter and group filter widgets are very difficult to follow in code. Each parameter of the filter gets a jimu/dijit/FilterParameter and that module uses _SingleFilterParameter. If you attempt to follow the code then the FilterParameter module has a _spObj that holds all the _SingleFilterParameter objects. The&amp;nbsp;_SingleFilterParameter has a method called getValueObject.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Oct 2021 13:12:38 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2021-10-26T13:12:38Z</dc:date>
    <item>
      <title>What Variables are the fields in the Group Layer WAB Widget Populated by?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/what-variables-are-the-fields-in-the-group-layer/m-p/1108860#M14634</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;Does any one know what variables in the 'Group Filter' widget's JavaScript that the dropdowns in the Group Filter Widget get their values from (See attached image)? I am looking to use the values in these variables in another widget. Any information that you can provide would be great.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nico&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Group Filter Widget.png" style="width: 348px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25532i1D8C152F25BB3941/image-size/large?v=v2&amp;amp;px=999" role="button" title="Group Filter Widget.png" alt="Group Filter Widget.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 15:26:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/what-variables-are-the-fields-in-the-group-layer/m-p/1108860#M14634</guid>
      <dc:creator>NicoKroes</dc:creator>
      <dc:date>2021-10-19T15:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: What Variables are the fields in the Group Layer WAB Widget Populated by?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/what-variables-are-the-fields-in-the-group-layer/m-p/1110983#M14636</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1104"&gt;@RobertScheitlin__GISP&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know what variables in the GroupFilter widget.js file in Web App Builder store the values that the user enters into the filter criteria dropdowns in the GroupFilter widget. I am attempting to grab the values that the user selects in each dropdown in the GroupFilter widget and send these values to another widget that displays what values the user currently has selected in the GroupFilter widget. I included a photo below of what will be populated in the "receiving widget". Can you provide me a little guidance or even a hint on what variable I should be using to grab user selected values in the groupfilter widget?&lt;/P&gt;&lt;P&gt;Any assistance provided will be greatly appreciated. Thanks.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Current Selections.PNG" style="width: 759px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26117iCBC71FF56974AE49/image-size/large?v=v2&amp;amp;px=999" role="button" title="Current Selections.PNG" alt="Current Selections.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 18:57:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/what-variables-are-the-fields-in-the-group-layer/m-p/1110983#M14636</guid>
      <dc:creator>NicoKroes</dc:creator>
      <dc:date>2021-10-25T18:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: What Variables are the fields in the Group Layer WAB Widget Populated by?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/what-variables-are-the-fields-in-the-group-layer/m-p/1111226#M14637</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/130286"&gt;@NicoKroes&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The filter and group filter widgets are very difficult to follow in code. Each parameter of the filter gets a jimu/dijit/FilterParameter and that module uses _SingleFilterParameter. If you attempt to follow the code then the FilterParameter module has a _spObj that holds all the _SingleFilterParameter objects. The&amp;nbsp;_SingleFilterParameter has a method called getValueObject.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 13:12:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/what-variables-are-the-fields-in-the-group-layer/m-p/1111226#M14637</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-10-26T13:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: What Variables are the fields in the Group Layer WAB Widget Populated by?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/what-variables-are-the-fields-in-the-group-layer/m-p/1111261#M14638</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1104"&gt;@RobertScheitlin__GISP&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been using the Widgets inside the \WebAppBuilderForArcGIS\client\stemapp\widgets\samplewidgets\WidgetCommunication folder as a starting point. I am planning to add the code from the 'widget.js' file in the WidgetA (Sending Message Widget) into another copy of the GroupFilter Widget. Below is the code that I had in mind for when the GroupFilter widget sends the currently entered filter user parameters to the second widget.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;_onPublishClick: function() {
      this.publishData({
        message: 'I am widget Test' + _spObj
      });
      this.i ++;
      this.pubInfoNode.innerText = 'Publish ' + this.i;
    },&lt;/LI-CODE&gt;&lt;P&gt;For the receiving widget, I plan to grab each user filter parameter from the group filter widget and display its value on the receiving widget, I was thinking of code similar to this in onReceiveData below.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;onReceiveData: function(name, widgetId, data, historyData) {
    //filter out messages
    if(name !== 'GroupFilterTest'){
      return;
    }

    var msg = '&amp;lt;div style="margin:10px;"&amp;gt;' +
      '&amp;lt;b&amp;gt;Groups Selected&amp;lt;/b&amp;gt;:' + _spObj[0] + //grabs user parameter(s) from first filter criteria (Groups Selected)
      '&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;Driver Selected:&amp;lt;/b&amp;gt;' + _spObj[1] + //grabs user parameter(s) from second filter criteria (driver(s) selected)
      '&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;Date Range Selected:&amp;lt;/b&amp;gt;' + _spObj[2]; //grabs user parameter(s) from thurd filter criteria (date range selected)

    //handle history data
    if(historyData === true){
      //want to fetch history data.
      msg += '&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;historyData:&amp;lt;/b&amp;gt;' + historyData + '. Fetch again.&amp;lt;/div&amp;gt;';
      this.messageNode.innerHTML = this.messageNode.innerHTML + msg;
      this.fetchDataByName('WidgetA');
    }else{
      msg += '&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;historyData:&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;' +
        array.map(historyData, function(data, i){
          return i + ':' + data.message;
        }).join('&amp;lt;br&amp;gt;') + '&amp;lt;/div&amp;gt;';
      this.messageNode.innerHTML = this.messageNode.innerHTML + msg;&lt;/LI-CODE&gt;&lt;P&gt;What do you think? Am I approaching grabbing the values from the group filter widget incorrectly. Let me know if I can provide any further clarification.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 14:52:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/what-variables-are-the-fields-in-the-group-layer/m-p/1111261#M14638</guid>
      <dc:creator>NicoKroes</dc:creator>
      <dc:date>2021-10-26T14:52:37Z</dc:date>
    </item>
  </channel>
</rss>

