<?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 Symbolize Polyline Feature based on Point Feature Values Logic If Statements in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/symbolize-polyline-feature-based-on-point-feature/m-p/1057130#M20824</link>
    <description>&lt;P&gt;I have GeoEvent grabbing real-time status for point layer features. I am trying to develop a workflow that will give a related Polyline Feature a status based on the point layer features. I want this to be displayed in a WebMap or Dashboard I already have created.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Point A - Status = 0&lt;/P&gt;&lt;P&gt;Point B - Status = 1&lt;/P&gt;&lt;P&gt;Point C&amp;nbsp; Status = 0&lt;/P&gt;&lt;P&gt;Polyline A - Status = 1&lt;/P&gt;&lt;P&gt;Polyline B - Status = 0&lt;/P&gt;&lt;P&gt;I believe I can use IF statements to write code that has rules assigned to it that will change the status of the Polyline features based on those rules.&lt;/P&gt;&lt;P&gt;If Point A = 0, and Point B = 1 and Point C = 0, then Polyline A = 1&lt;/P&gt;&lt;P&gt;If Point A = 1, and Point B = 1 and Point C = 0, then Polyline A = 0&lt;/P&gt;&lt;P&gt;If Point A = 0, and Point B = 1 and Point C = 1, then Polyline A = 0&lt;/P&gt;&lt;P&gt;To my knowledge, ESRI does not support symbolizing layers based on ARCADE in the popups.&amp;nbsp; Any direction/help would be much appreciated.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 May 2021 14:21:14 GMT</pubDate>
    <dc:creator>GentryEwing1</dc:creator>
    <dc:date>2021-05-12T14:21:14Z</dc:date>
    <item>
      <title>Symbolize Polyline Feature based on Point Feature Values Logic If Statements</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/symbolize-polyline-feature-based-on-point-feature/m-p/1057130#M20824</link>
      <description>&lt;P&gt;I have GeoEvent grabbing real-time status for point layer features. I am trying to develop a workflow that will give a related Polyline Feature a status based on the point layer features. I want this to be displayed in a WebMap or Dashboard I already have created.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Point A - Status = 0&lt;/P&gt;&lt;P&gt;Point B - Status = 1&lt;/P&gt;&lt;P&gt;Point C&amp;nbsp; Status = 0&lt;/P&gt;&lt;P&gt;Polyline A - Status = 1&lt;/P&gt;&lt;P&gt;Polyline B - Status = 0&lt;/P&gt;&lt;P&gt;I believe I can use IF statements to write code that has rules assigned to it that will change the status of the Polyline features based on those rules.&lt;/P&gt;&lt;P&gt;If Point A = 0, and Point B = 1 and Point C = 0, then Polyline A = 1&lt;/P&gt;&lt;P&gt;If Point A = 1, and Point B = 1 and Point C = 0, then Polyline A = 0&lt;/P&gt;&lt;P&gt;If Point A = 0, and Point B = 1 and Point C = 1, then Polyline A = 0&lt;/P&gt;&lt;P&gt;To my knowledge, ESRI does not support symbolizing layers based on ARCADE in the popups.&amp;nbsp; Any direction/help would be much appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 14:21:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/symbolize-polyline-feature-based-on-point-feature/m-p/1057130#M20824</guid>
      <dc:creator>GentryEwing1</dc:creator>
      <dc:date>2021-05-12T14:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolize Polyline Feature based on Point Feature Values Logic If Statements</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/symbolize-polyline-feature-based-on-point-feature/m-p/1057148#M20825</link>
      <description>&lt;P&gt;If you're not editing, you might consider creating a Query Layer to mash up the Parent and Child features.&amp;nbsp; You will have added benefit of being able to choose which shape to show on the map (Point or Line), then symbolize based on intended attribute updates.&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 14:46:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/symbolize-polyline-feature-based-on-point-feature/m-p/1057148#M20825</guid>
      <dc:creator>EdJuarbe</dc:creator>
      <dc:date>2021-05-12T14:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolize Polyline Feature based on Point Feature Values Logic If Statements</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/symbolize-polyline-feature-based-on-point-feature/m-p/1057155#M20826</link>
      <description>&lt;P&gt;I am somewhat following what you are saying, but can you explain it with a few more details please?&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 14:54:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/symbolize-polyline-feature-based-on-point-feature/m-p/1057155#M20826</guid>
      <dc:creator>GentryEwing1</dc:creator>
      <dc:date>2021-05-12T14:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolize Polyline Feature based on Point Feature Values Logic If Statements</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/symbolize-polyline-feature-based-on-point-feature/m-p/1057189#M20827</link>
      <description>&lt;P&gt;The following assumes you are using an Enterprise Database (SQL, Oracle, or other). I generally work in SQL Server Management Studio to build/test any of my queries, since the OOTB Make Query Layer tool doesn't really have a way to test the query.&amp;nbsp; Also, I'm more familiar with Desktop, but Query Layers will work in Pro as well.&lt;/P&gt;&lt;P&gt;But, I'll try to explain:&lt;/P&gt;&lt;P&gt;You want start with the relationship class (but can work with any 2 tables really):&lt;/P&gt;&lt;P&gt;Line Feature: SewerMains point feature class, fields 'size', 'type', 'shape', objectid&lt;BR /&gt;Related Point Feature: MainInspections, fields, 'date', 'status', 'shape', rel_objectid&lt;/P&gt;&lt;P&gt;Related fields are SewerMains.ObjectID:MainInspections.REL_ObjectID&lt;/P&gt;&lt;P&gt;Here's a psuedo query I'd make to mash these up:&lt;/P&gt;&lt;P&gt;select mi.date, sm.size, sm.type, mi.status, sm.Shape&lt;BR /&gt;from SewerMains as sm&lt;BR /&gt;join MainInspections as mi&lt;BR /&gt;on sm.ObjectID = mi.REL_ObjectID&lt;/P&gt;&lt;P&gt;When you add the above Query Layer to the map, symbolize on the status field, and publish.&lt;BR /&gt;Also, you can also use the inspection point shape to display the actual 'inspection point' on the map by changing sm.shape to mi.Shape (again symbolize based on the mi.status field in ArcGIS Desktop/ArcGIS Pro.&lt;/P&gt;&lt;P&gt;You don't need SMSS to create the query, but it allow you to see if there are any errors in the query before sliding into the map as a QueryLayer.&amp;nbsp; Once you have your query created, just copy/paste into the Make Query Layer tool, and it will show as a single layer in the map where you can symbolize, publish, add to web map, and such.&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 15:54:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/symbolize-polyline-feature-based-on-point-feature/m-p/1057189#M20827</guid>
      <dc:creator>EdJuarbe</dc:creator>
      <dc:date>2021-05-12T15:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolize Polyline Feature based on Point Feature Values Logic If Statements</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/symbolize-polyline-feature-based-on-point-feature/m-p/1057547#M20831</link>
      <description>&lt;P&gt;Hi, you can build/use a view to achieve what you want.&amp;nbsp; View can be created from pro or from sql.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="sqlkeywordcolor"&gt;select case&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;when Point A = 0, and Point B = 1 and Point C = 0&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="sqlkeywordcolor"&gt;THEN&amp;nbsp;&lt;SPAN&gt;Polyline A = 1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="sqlkeywordcolor"&gt;WHEN&lt;/SPAN&gt;&lt;SPAN&gt; Point A = 1, and Point B = 1 and Point C = 0 THEN Polyline A = 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="sqlkeywordcolor"&gt;ELSE&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Polyline A = 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="sqlkeywordcolor"&gt;END as status,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;attribute1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;attribute2,&lt;/P&gt;&lt;P&gt;from table a inner join table b on a.id = b.id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 12:19:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/symbolize-polyline-feature-based-on-point-feature/m-p/1057547#M20831</guid>
      <dc:creator>VictorTey</dc:creator>
      <dc:date>2021-05-13T12:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolize Polyline Feature based on Point Feature Values Logic If Statements</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/symbolize-polyline-feature-based-on-point-feature/m-p/1057558#M20832</link>
      <description>&lt;P&gt;My previous example did not include the filters you requested.&amp;nbsp; Try this format, should get you closer to your goal:&lt;/P&gt;&lt;P&gt;select mi.date, sm.size, sm.type&lt;BR /&gt;, case when (mi.pointtype = 'A' AND mi.status = 0) AND (mi.pointtype = 'B' AND mi.Status = 1) AND (mi.pointtype = 'C' AND mi.status = 0) Then 1&lt;BR /&gt;when (mi.pointtype = 'A' AND mi.status = 1) AND (mi.pointtype = 'B' AND mi.Status = 1) AND (mi.pointtype = 'C' AND mi.status = 0) Then 0&lt;BR /&gt;when (mi.pointtype = 'A' AND mi.status = 0) AND (mi.pointtype = 'B' AND mi.Status = 1) AND (mi.pointtype = 'C' AND mi.status = 1) Then 0&lt;BR /&gt;else NULL&lt;BR /&gt;END&lt;BR /&gt;, sm.Shape&lt;BR /&gt;from ParentTable as sm&lt;BR /&gt;join ChildTable as mi&lt;BR /&gt;on sm.PK = mi.REL_FK&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 12:41:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/symbolize-polyline-feature-based-on-point-feature/m-p/1057558#M20832</guid>
      <dc:creator>EdJuarbe</dc:creator>
      <dc:date>2021-05-13T12:41:54Z</dc:date>
    </item>
  </channel>
</rss>

