<?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: Has anyone made a custom widget to display related data from a feature selection? in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864680#M12191</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This appears to be an app built using the ESRI API 3.28. I need this functionality, but within a Web AppBuilder widget. I understand how to build this out in the JS API, but the WAB widget creation is giving me plenty of issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 May 2019 23:50:02 GMT</pubDate>
    <dc:creator>BrianVan_Nostrand</dc:creator>
    <dc:date>2019-05-28T23:50:02Z</dc:date>
    <item>
      <title>Has anyone made a custom widget to display related data from a feature selection?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864675#M12186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to figure out how to put together a web appbuilder widget that will display a formatted table of related attributes from a selected feature. My customer doesn't like how the out of the box attribute table looks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone ever tried something like this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2019 17:18:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864675#M12186</guid>
      <dc:creator>BrianVan_Nostrand</dc:creator>
      <dc:date>2019-05-17T17:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone made a custom widget to display related data from a feature selection?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864676#M12187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a custom widget that shows a custom report base on a polygon and 3 related tables. Unfortunately it's not yet public, so I can't show it to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically there is a map click, it does the polygon selection, then finds all the related records and parses JSON. Then it formats the report in the panel. I can try to be more details, or do you have any specific questions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 May 2019 22:54:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864676#M12187</guid>
      <dc:creator>RowenaTansley1</dc:creator>
      <dc:date>2019-05-19T22:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone made a custom widget to display related data from a feature selection?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864677#M12188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/3/samples/featuretable_relatedrecords/"&gt;https://developers.arcgis.com/javascript/3/samples/featuretable_relatedrecords/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's very easy to migrate into your widget.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2019 08:36:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864677#M12188</guid>
      <dc:creator>LeoLiu1</dc:creator>
      <dc:date>2019-05-22T08:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone made a custom widget to display related data from a feature selection?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864678#M12189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks like it would do what we need perfectly. Is there a GitHub page or something I can pull the code from and work with it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 15:19:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864678#M12189</guid>
      <dc:creator>BrianVan_Nostrand</dc:creator>
      <dc:date>2019-05-28T15:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone made a custom widget to display related data from a feature selection?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864679#M12190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am with Brian, is there a publicly available code somewhere?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 15:37:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864679#M12190</guid>
      <dc:creator>DianaWalker1</dc:creator>
      <dc:date>2019-05-28T15:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone made a custom widget to display related data from a feature selection?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864680#M12191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This appears to be an app built using the ESRI API 3.28. I need this functionality, but within a Web AppBuilder widget. I understand how to build this out in the JS API, but the WAB widget creation is giving me plenty of issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 23:50:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864680#M12191</guid>
      <dc:creator>BrianVan_Nostrand</dc:creator>
      <dc:date>2019-05-28T23:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone made a custom widget to display related data from a feature selection?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864681#M12192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the code he used:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;FeatureTable - related records&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;link rel="stylesheet" href="https://js.arcgis.com/3.28/dijit/themes/claro/claro.css"&amp;gt;&lt;BR /&gt;&amp;lt;link rel="stylesheet" href="https://js.arcgis.com/3.28/esri/css/esri.css"&amp;gt;&lt;BR /&gt;&amp;lt;script src="https://js.arcgis.com/3.28/"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;style&amp;gt;&lt;BR /&gt; html, body, #map{&lt;BR /&gt; width:100%;&lt;BR /&gt; height:100%;&lt;BR /&gt; margin:0;&lt;BR /&gt; padding:0;&lt;BR /&gt; }&lt;BR /&gt; &amp;lt;/style&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;BR /&gt; require([&lt;BR /&gt; "esri/layers/FeatureLayer",&lt;BR /&gt; "esri/dijit/FeatureTable",&lt;BR /&gt; "esri/tasks/query",&lt;BR /&gt; "esri/geometry/Extent",&lt;BR /&gt; "esri/symbols/SimpleFillSymbol",&lt;BR /&gt; "esri/symbols/SimpleLineSymbol",&lt;BR /&gt; "esri/Color",&lt;BR /&gt; "esri/map",&lt;BR /&gt; "esri/dijit/Popup",&lt;BR /&gt; "esri/dijit/PopupTemplate",&lt;BR /&gt; "dojo/dom-construct",&lt;BR /&gt; "dojo/dom",&lt;BR /&gt; "dojo/number",&lt;BR /&gt; "dojo/parser",&lt;BR /&gt; "dojo/ready",&lt;BR /&gt; "dojo/on",&lt;BR /&gt; "dojo/_base/lang",&lt;BR /&gt; "dijit/registry",&lt;BR /&gt; "dijit/form/Button",&lt;BR /&gt; "dijit/layout/ContentPane",&lt;BR /&gt; "dijit/layout/BorderContainer",&lt;BR /&gt; "dijit/form/TextBox"&lt;BR /&gt; ], function (&lt;BR /&gt; FeatureLayer, FeatureTable, Query, Extent, SimpleFillSymbol, SimpleLineSymbol, Color, Map,&lt;BR /&gt; Popup, PopupTemplate, domConstruct, dom, dojoNum, parser, ready, on,lang,&lt;BR /&gt; registry, Button, ContentPane, BorderContainer, TextBox&lt;BR /&gt; ) {&lt;/P&gt;&lt;P&gt;parser.parse();&lt;/P&gt;&lt;P&gt;ready(function(){&lt;BR /&gt; var popupOptions = {&lt;BR /&gt; marginLeft: "20",&lt;BR /&gt; marginTop: "20"&lt;BR /&gt; };&lt;BR /&gt; &lt;BR /&gt; // create a popup to replace the map's info window&lt;BR /&gt; var popup = new Popup(popupOptions, domConstruct.create("div"));&lt;BR /&gt; &lt;BR /&gt; var map = new Map("map",{&lt;BR /&gt; basemap: "topo", &lt;BR /&gt; infoWindow: popup,&lt;BR /&gt; extent: new Extent({&lt;BR /&gt; xmax: -13178092.546668783, xmin: -13180901.607458338,&lt;BR /&gt; ymax: 4038066.907666304, ymin: 4036294.524072895,&lt;BR /&gt; "spatialReference":{"wkid":102100,"latestWkid":3857}&lt;BR /&gt; })&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;map.on("load", loadTable);&lt;/P&gt;&lt;P&gt;function loadTable(){&lt;/P&gt;&lt;P&gt;// create a popup template for Bevery Hills &lt;BR /&gt; // Trees by block layer &lt;BR /&gt; var popupTemplate = new PopupTemplate({&lt;BR /&gt; "title": "Beverly Hills Trees By Block",&lt;BR /&gt; "fieldInfos": [{&lt;BR /&gt; "fieldName": "Point_Count",&lt;BR /&gt; "label": "Count of Points",&lt;BR /&gt; "format": {&lt;BR /&gt; "places": 0,&lt;BR /&gt; "digitSeparator": true&lt;BR /&gt; }&lt;BR /&gt; }, {&lt;BR /&gt; "fieldName": "relationships/0/Point_Count_COMMON",&lt;BR /&gt; "label": "Sum of species tree count",&lt;BR /&gt; "format": {&lt;BR /&gt; "places": 0,&lt;BR /&gt; "digitSeparator": true&lt;BR /&gt; },&lt;BR /&gt; "statisticType": "sum"&lt;BR /&gt; }, {&lt;BR /&gt; "fieldName": "relationships/0/COMMON",&lt;BR /&gt; "label": "Common Name"&lt;BR /&gt; }, {&lt;BR /&gt; "fieldName": "BLOCKCE10",&lt;BR /&gt; "label": "Block"&lt;BR /&gt; }],&lt;BR /&gt; "description": "There are {Point_Count} trees within census block {BLOCKCE10}",&lt;BR /&gt; "showAttachments": false,&lt;BR /&gt; "mediaInfos": [{&lt;BR /&gt; "title": "Count By Type",&lt;BR /&gt; "type": "columnchart",&lt;BR /&gt; "caption": "",&lt;BR /&gt; "value": {&lt;BR /&gt; "theme": "GreySkies",&lt;BR /&gt; "fields": ["relationships/0/Point_Count_COMMON"],&lt;BR /&gt; "normalizeField": null,&lt;BR /&gt; "tooltipField": "relationships/0/COMMON"&lt;BR /&gt; }&lt;BR /&gt; }]&lt;BR /&gt; });&lt;BR /&gt; &lt;BR /&gt; var myFeatureLayer = new FeatureLayer("https://services.arcgis.com/V6ZHFr6zdgNZuVG0/ArcGIS/rest/services/Beverly%20Hills%20Trees%20By%20Block/FeatureServer/0",{&lt;BR /&gt; mode: FeatureLayer.MODE_ONDEMAND,&lt;BR /&gt; infoTemplate: popupTemplate,&lt;BR /&gt; outFields: ["*"],&lt;BR /&gt; //set the definition expression &lt;BR /&gt; definitionExpression: "TRACTCE10 = '700902'", &lt;BR /&gt; visible: true,&lt;BR /&gt; id: "fLayer"&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;// apply the selection symbol for the layer &lt;BR /&gt; var selectionSymbol = new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID,&lt;BR /&gt; new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID,&lt;BR /&gt; new Color([255, 0, 0, 0.35]), 1),&lt;BR /&gt; new Color([255, 0, 0, 0.35]));&lt;BR /&gt; myFeatureLayer.setSelectionSymbol(selectionSymbol);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; // listen to featurelayer click event to handle selection &lt;BR /&gt; // from layer to the table. &lt;BR /&gt; // when user clicks on a feature on the map, the corresponding &lt;BR /&gt; // record will be selected in the table. &lt;BR /&gt; myFeatureLayer.on("click", function(evt) {&lt;BR /&gt; var idProperty = myFeatureLayer.objectIdField;&lt;BR /&gt; var feature, featureId, query;&lt;/P&gt;&lt;P&gt;if (evt.graphic &amp;amp;&amp;amp; evt.graphic.attributes &amp;amp;&amp;amp; evt.graphic.attributes[idProperty]) {&lt;BR /&gt; feature = evt.graphic,&lt;BR /&gt; featureId = feature.attributes[idProperty];&lt;/P&gt;&lt;P&gt;query = new Query();&lt;BR /&gt; query.returnGeometry = false;&lt;BR /&gt; query.objectIds = [featureId];&lt;BR /&gt; query.where = "1=1";&lt;/P&gt;&lt;P&gt;myFeatureLayer.selectFeatures(query, FeatureLayer.SELECTION_NEW);&lt;BR /&gt; }&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;map.addLayer(myFeatureLayer);&lt;/P&gt;&lt;P&gt;// create new FeatureTable and set its properties &lt;BR /&gt; var myFeatureTable = new FeatureTable({&lt;BR /&gt; featureLayer : myFeatureLayer,&lt;BR /&gt; map : map,&lt;BR /&gt; syncSelection: true,&lt;BR /&gt; showRelatedRecords: true,&lt;BR /&gt; showAttachments: true,&lt;BR /&gt; fieldInfos: [&lt;BR /&gt; {&lt;BR /&gt; name: 'AnalysisArea', &lt;BR /&gt; alias: 'Area SQ/KM', &lt;BR /&gt; editable: false,&lt;BR /&gt; format: {&lt;BR /&gt; template: "${value}",&lt;BR /&gt; places: 3 // number of decimal places&lt;BR /&gt; // digitSeparator: true // default is true&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; ],&lt;BR /&gt; // outfields &lt;BR /&gt; outFields: ["TRACTCE10", "BLOCKCE10", "GEOID", "NAME", "MTFCC", "ALAND", "AnalysisArea", "Point_Count", "Join_ID"],&lt;BR /&gt; }, 'myTableNode');&lt;/P&gt;&lt;P&gt;myFeatureTable.startup();&lt;/P&gt;&lt;P&gt;// listen to row-click event &lt;BR /&gt; // to hide visible popups &lt;BR /&gt; myFeatureTable.on("row-select", function(evt){&lt;BR /&gt; if (map.infoWindow.isShowing){&lt;BR /&gt; map.infoWindow.hide(); &lt;BR /&gt; }&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;// listen to show-attachments event&lt;BR /&gt; myFeatureTable.on("show-attachments", function(evt){&lt;BR /&gt; console.log("show-attachments event - ", evt);&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;// listen to show-related-records event&lt;BR /&gt; myFeatureTable.on("show-related-records", function(evt){&lt;BR /&gt; console.log("show-related-records event - ", evt);&lt;BR /&gt; });&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; });&lt;BR /&gt; &amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body class="claro esri"&amp;gt;&lt;BR /&gt; &amp;lt;div data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design:'headline'" style="width:100%; height:100%;"&amp;gt;&lt;BR /&gt; &amp;lt;div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center', splitter:true" style="height:60%"&amp;gt;&lt;BR /&gt; &amp;lt;div id="map"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div id="bot" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'bottom', splitter:true" style="height:40%"&amp;gt;&lt;BR /&gt; &amp;lt;div id="myTableNode"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It appears to be JS API code from the 3.28 API. It probably is very easy to migrate into my widget. I don't know how to do that, though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 23:55:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864681#M12192</guid>
      <dc:creator>BrianVan_Nostrand</dc:creator>
      <dc:date>2019-05-28T23:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone made a custom widget to display related data from a feature selection?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864682#M12193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The codes are very similar to it supposed to be in the widget. You just need to:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. configure feature actions for your custom widget.&lt;/P&gt;&lt;P&gt;2. in the function that binding to your feature action, determine feature/featureset has related data or not.&lt;/P&gt;&lt;P&gt;3. show the widget UI if it has related data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will see if I can figure out some time to build a simple widget sample for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2019 02:35:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864682#M12193</guid>
      <dc:creator>LeoLiu1</dc:creator>
      <dc:date>2019-05-29T02:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone made a custom widget to display related data from a feature selection?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864683#M12194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Leo, that would be a huge help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2019 15:10:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864683#M12194</guid>
      <dc:creator>BrianVan_Nostrand</dc:creator>
      <dc:date>2019-05-29T15:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone made a custom widget to display related data from a feature selection?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864684#M12195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this customized widget, I just quickly copied the codes from the sample I mentioned before.&lt;/P&gt;&lt;P&gt;You probably need to polish the codes to make it more robust.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/LeoLiu-EsriAu/WebAppBuilderDEV"&gt;https://github.com/LeoLiu-EsriAu/WebAppBuilderDEV&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Leo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2019 02:09:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864684#M12195</guid>
      <dc:creator>LeoLiu1</dc:creator>
      <dc:date>2019-05-30T02:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone made a custom widget to display related data from a feature selection?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864685#M12196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Leo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! I'm working on tweaking the code to use the schema of my services now. Do you have any tips on resources to figure out how to do this? How did you learn to make widgets?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2019 00:21:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864685#M12196</guid>
      <dc:creator>BrianVan_Nostrand</dc:creator>
      <dc:date>2019-05-31T00:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone made a custom widget to display related data from a feature selection?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864686#M12197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I normally play in the developer version before deploy to Portal.&lt;/P&gt;&lt;P&gt;The documents and samples there are very helpful.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/web-appbuilder/guide/getstarted.htm"&gt;https://developers.arcgis.com/web-appbuilder/guide/getstarted.htm&lt;/A&gt;&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/448878_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2019 00:39:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864686#M12197</guid>
      <dc:creator>LeoLiu1</dc:creator>
      <dc:date>2019-05-31T00:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone made a custom widget to display related data from a feature selection?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864687#M12198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Leo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help last month. Using your code as a framework, I managed to put together a widget that our customer likes. For anyone reading this in the future that is getting hung up on accessing the attributes of a selected feature, look at the code Leo shared above, specifically:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;STRONG&gt;showRelatedData&lt;/STRONG&gt;: function(&lt;STRONG&gt;featureSet&lt;/STRONG&gt;){ &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var layerId = featureSet.features[0]._layer.id; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.selectedFeatureLayer = &lt;STRONG&gt;this.map&lt;/STRONG&gt;._layers[layerId];&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;poke around in featureSet to find a list of the selected features and their attributes, and in this.map to find map properties, as they would appear in a ESRI JS API 3.28 map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 19:39:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/has-anyone-made-a-custom-widget-to-display-related/m-p/864687#M12198</guid>
      <dc:creator>BrianVan_Nostrand</dc:creator>
      <dc:date>2019-07-09T19:39:09Z</dc:date>
    </item>
  </channel>
</rss>

