Display Out Statistic in Description
I have a workflow that performs a Query Task with Out Statistics to get the count by call type which I called "incnature_count". I then use the SortFeatureSet to sort by "incnature_count". I would then like to display the call type and count in the results. I was thinking I could set the Long Description Format in the SelectFeatures activity but am unsure of how to use the count statistic ("incnature_count" I retrieved from the Query Task in the Long Description Format. Perhaps this is not the way to do this.
Any help is appreciated.
Josh
0
-
You can do this... what is the problem you have, specifically? 0 -
Zack,
I was hoping that in the Select Features Activity I would simply be able to use the "incnature_count" filed in the Long Description Format by simply including it in curly braces {incnature_count} but that didn't work for me. Is there some other formatting I need to use? Or do I need to display the Out Statistics some other way?0 -
Aha, I misunderstood you earlier. You're only going to be able to access fields in your configured data from the feature description's replacement tokens, see the docs on replacement tokens (https://docs.geocortex.com/essentials/4.9/admin-help/Default.htm#ge/admin/replacement-tokens.htm) .
A workaround might be to iterate your results in the workflow and add each feature to the selection one by one. Then you could concatenate the featureset attribute data into your feature title and description.
Your other option here is to do some back-end work and get those counts into your served data/related data tables with a layer/relationship token.
0 -
I was able to get the results as I was originally trying to do. My issue was I did not leave the Map Service Id and Layer Name parameters blank in the Select Features activity, thus not accessing the field created in my Feature Set through the OutStatistics.
My workflow goes as follows:
Officers select a date range and an area(s) through a Display Form,
A Query Task then performs a query with OutStatistics(Count), Grouped by call type.
SortFeatureSet by count
SelectFeatures then displays the results to the officer.0
Please sign in to leave a comment.
Comments
4 comments