Skip to main content

How can I show a 2 attribute tables (point/line) with show results?

Comments

1 comment

  • Ryan Dickinson

    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!

     

    result tabs

    0

Please sign in to leave a comment.