How can I show a 2 attribute tables (point/line) with show results?
Hello,
I am wanting to display my query results with "show results". Show results will bring up one attribute table but I want 2 attribute tables to show. I would like the point and line table to show in my web application. I am using the WF as a widget in WAB. Thank you!
Shelley Schulte/Nebraska DOT
-
This worked in gvh 4.12.2:
Create an empty array
Create value = []
Add Items:
Collection = $empty_array
Items to add = $query1.results.features
Add Items:
Collection = $empty_array
Items to add = $query2.results.features
ForEach item in $empty_array:
If Condition = "paths" in $forEach.item.geometry
true =
object: $forEach.item
setProperty: Property Name = "geometryType"
setProperty: Value = "polyline"
Show Results
Features : $forEach.item
false=
object: $forEach.item
setProperty: Property Name = "geometryType"
setProperty: Value = "polygon"
Show Results
Features : $forEach.item
BE ADVISED!!!! This will create a new tab for EACH record returned from your query. One result from each query, no problem! Multiple results from each query and you'll end up with a bunch of tabs!
0
Please sign in to leave a comment.
Comments
1 comment