<?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: ListView Widget Help in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458553#M12049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do the config.js file and the Settings.js file in the settings folder look like? Does they contain an entry for layerId? This is mentioned in the section "&lt;A href="https://developers.arcgis.com/web-appbuilder/sample-code/create-a-listview-widget.htm"&gt;Customize the Settings page&lt;/A&gt;". This is how this.config gets variables assigned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Dec 2019 14:54:20 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2019-12-18T14:54:20Z</dc:date>
    <item>
      <title>ListView Widget Help</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458550#M12046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am going through this tutorial and I keep getting this error:&lt;BR /&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/476469_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tutorial:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/web-appbuilder/sample-code/create-a-listview-widget.htm" title="https://developers.arcgis.com/web-appbuilder/sample-code/create-a-listview-widget.htm"&gt;Create a ListView widget—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2019 23:08:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458550#M12046</guid>
      <dc:creator>SamLee1</dc:creator>
      <dc:date>2019-12-17T23:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: ListView Widget Help</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458551#M12047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first error points to line 47&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;queryFeatures&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;query&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lang&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;hitch&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;featureSet&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;which means that "layer" is undefined. You get that earlier at line 39&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; layer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getLayer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;config&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layerId&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Have you set the layerId property in the config to a valid layer in the map?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 12:53:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458551#M12047</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2019-12-18T12:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: ListView Widget Help</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458552#M12048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ken,&lt;/P&gt;&lt;P&gt;Thanks for the response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do you mean by that?&amp;nbsp; I went through all the steps.&lt;/P&gt;&lt;P&gt;Was that one of them?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 14:32:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458552#M12048</guid>
      <dc:creator>SamLee1</dc:creator>
      <dc:date>2019-12-18T14:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: ListView Widget Help</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458553#M12049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do the config.js file and the Settings.js file in the settings folder look like? Does they contain an entry for layerId? This is mentioned in the section "&lt;A href="https://developers.arcgis.com/web-appbuilder/sample-code/create-a-listview-widget.htm"&gt;Customize the Settings page&lt;/A&gt;". This is how this.config gets variables assigned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 14:54:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458553#M12049</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2019-12-18T14:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: ListView Widget Help</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458554#M12050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Settings.js:&lt;BR /&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/476488_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;I do not have a config.js in my settings folder. There wasn't a step for that in the tutorial.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 15:01:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458554#M12050</guid>
      <dc:creator>SamLee1</dc:creator>
      <dc:date>2019-12-18T15:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: ListView Widget Help</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458555#M12051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, that should have been config.json.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you gone into the debugger in the Developer Tools and determined what value is being returned for this.config.layerId?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 15:36:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458555#M12051</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2019-12-18T15:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: ListView Widget Help</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458556#M12052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I did use the debugger. There is no value returned as there is an error.&lt;/P&gt;&lt;P&gt;config.json file:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/476517_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 15:51:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458556#M12052</guid>
      <dc:creator>SamLee1</dc:creator>
      <dc:date>2019-12-18T15:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: ListView Widget Help</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458557#M12053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does the debugger show for this.config?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/476528_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 16:24:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458557#M12053</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2019-12-18T16:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: ListView Widget Help</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458558#M12054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not get what you are getting as there is no debugger in my Chrome tools.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 16:44:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458558#M12054</guid>
      <dc:creator>SamLee1</dc:creator>
      <dc:date>2019-12-18T16:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: ListView Widget Help</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458559#M12055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Chrome, it's under the Sources tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/476530_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 16:50:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458559#M12055</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2019-12-18T16:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: ListView Widget Help</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458560#M12056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I hover over my this.config is shows undefined.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 17:13:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458560#M12056</guid>
      <dc:creator>SamLee1</dc:creator>
      <dc:date>2019-12-18T17:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: ListView Widget Help</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458561#M12057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post the entire directory so I can take a look at it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 18:49:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458561#M12057</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2019-12-18T18:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: ListView Widget Help</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458562#M12058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="/legacyfs/online/476558_Screenshot (2).png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 18:59:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458562#M12058</guid>
      <dc:creator>SamLee1</dc:creator>
      <dc:date>2019-12-18T18:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: ListView Widget Help</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458563#M12059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry, I meant post the zipped widget files so I can open and run it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 19:21:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458563#M12059</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2019-12-18T19:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: ListView Widget Help</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458564#M12060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No icon to upload zip file.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/476559_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 19:31:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458564#M12060</guid>
      <dc:creator>SamLee1</dc:creator>
      <dc:date>2019-12-18T19:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: ListView Widget Help</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458565#M12061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to use the reply from the discussion itself, not from the Inbox. You'll see the "Use advanced editor" link in the upper right.&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/476570_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 19:37:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458565#M12061</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2019-12-18T19:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: ListView Widget Help</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458566#M12062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is the zipped file for the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 19:54:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458566#M12062</guid>
      <dc:creator>SamLee1</dc:creator>
      <dc:date>2019-12-18T19:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: ListView Widget Help</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458567#M12063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The widget works properly for me, with this.config getting populated properly and the layer instantiated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/476607_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/476608_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your app, have you added a map and selected a layer in the widget settings?&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/476609_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2019 13:19:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458567#M12063</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2019-12-19T13:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: ListView Widget Help</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458568#M12064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I used the default map and layer. Is there a specific one that you used?&lt;/P&gt;&lt;P&gt;How did you get to the Configure ListView window?&lt;/P&gt;&lt;P&gt;I just realized that you are on the server not the client.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I get:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="476630" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/476630_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;But after I click okay and the widget this happens:&lt;BR /&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/476632_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2019 16:36:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458568#M12064</guid>
      <dc:creator>SamLee1</dc:creator>
      <dc:date>2019-12-19T16:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: ListView Widget Help</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458569#M12065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your problem is that your map doesn't have any layers. It needs at least one layer to properly make "this.config". I tested with an empty map and got that same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your remedy would be to check to see if there are layers in your map. You could add line 10-15 to your Settings.js file (adding in the module and argument for Message)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;define&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;"jimu/dijit/Message"&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
  &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; Message&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;

      LayerInfos&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getInstance&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;itemInfo&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;then&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;
        lang&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;hitch&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layerInfosObj&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
          &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; infos &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; layerInfosObj&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getLayerInfoArray&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
          &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;infos&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;length &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Message&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
              type&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"error"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
              message&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Your map must have at least one layer!"&lt;/SPAN&gt;
            &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
          &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:25:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/listview-widget-help/m-p/458569#M12065</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-11T20:25:16Z</dc:date>
    </item>
  </channel>
</rss>

