In the Text Widget/Dynamic Text is there a way to hide the variable and the curly brackets until something is selected? Or a way to write an expression - i.e. If {County} = "" Then "" Else {County}? Seems like this should be easy but I'm not seeing anything. Thanks.
Until we support more expressions to manage what is shown in the text widget here is a workaround:
Use a default in the text box and use view for empty selection in the feature layer under the data panels so it uses default values if nothing is selected. By design, it will pull in the first record from the feature layer. You could have that record blank if nothing is selected. For example, the animated gif below has a default value for Washington D.C. if nothing is selected.
Cheers,
David
Great work around @DavidMartinez - I honestly had never seen those settings in the feature layer configuration for ExB.
-----------------------------------
Brian Baldwin, Esri Inc., Lead Solution EngineerHi David,
Could you elaborate on how you are doing this?
I have a text widget using dynamic text on selected features. I have tried both Statistics and Expression to get the count of selected features. Seems to be working fine until the Count result = 0, then it just shows the Expression used.
If I have 2 features selected, the text widget displays:
"Selected Features: 2"
However, if there is no selection (I.e., selected feature count = 0), it displays:
"Selected Features: COUNT({OBJECTID}) "
How do I make this show the "actual" count of selected features?
It should report:
"Selected Features: 0"
Thanks,
R_
Hi,
You can use Expression instead of Statistics, and use "0" for the expression title.
Shengdi
Thanks Shengdi,
I tried the expression, but didn't think to rename it and didn't like "Expression 1" result when zero.
Though, I still think this is a bug (since the "count" actually is zero and not being reported), this workaround does the trick.
R_
Thanks Shengdi, it works!
So simple, and exactly what I needed!
I agree. I'm attempting to implement @DavidMartinez 's workaround solution but would like to see a setting that could be enabled with a configurable "no data message" similar to the Feature Info configuration. Another potential solution would be for the Feature Info Widget to have more configurations that allow field visibility, alias, arrangement, and disabling functions such as the next arrows and feature counts.
In our next release, you will be able to use Feature info with selected features. For example, it will only show when you select an item on the map. When no item is selected on the map it will have the no data message. In this scenario, there are no feature counts or arrows.
Cheers,
David