Popups not updating when searching in WebApp

586
5
02-23-2018 06:50 AM
Kara_Shindle
Occasional Contributor III

Just to preface this, please bear with me as my supervisor took a new job and left me with a online subscription parcel website that is built as a WebApp on AGOL. He built it and rolled it out without testing to the public at the beginning of the year, and now I am trying to get updates to make it more user friendly.  IT is meant to replace our old system that the public used to access our tax and assessment data.

I am still learning the ins and outs as he didn't leave documentation or involve anyone else in design and development.  

My issue is that the popups are not displaying certain fields when someone searches for a particular parcel in the search box.  In this particular instance, the Delinquent Tax fields.  I have 8 fields that are combined using an expression on the popup configuration.  It pulls the data from CAMA (our assessment program) and it is joined to our parcels.  

It looks should like this:

DELINQUENT TAXES        2017: $####

                                           2016: $####

                                           2015: $####

DELINQUENT TAXES:    TOTAL: $####

The years and the amounts are actually automatically calculated and pulled from SQL.

If a parcel doesn't have delinquent taxes, it should still show the years, as below:

DELINQUENT TAXES        2017: $

                                           2016: $

                                           2015: $

DELINQUENT TAXES:    TOTAL: $

When someone searches by the unique parcel ID, the fields come up as blank.  It looks like this:

DELINQUENT TAXES                : $

                                                    : $

                                                    : $

DELINQUENT TAXES:    TOTAL: $

If someone clicks on the parcel, the fields are populated correctly, and it looks like the first example.

Why would the popups be different based on the way a parcel is located?  If the Tax Collectors and assessors who use this site search by a parcel, they are going to believe there are no delinquent taxes, and that could cause huge issues.

We've tested this, and it appears to be doing the same thing when we search / click on other parcels.

Any suggestions?

Update: This seems to related to the custom expressions in the popup configuration that I am using to displaying this data.  If I remove them, it appears to be populating when searching, it just looks horrible.

In testing this, it does this with any combination of these custom expressions.  I've double checked it's doing them as a number instead of a string, and I still had the same result.  I do have two other custom expressions that involve other fields, and they seem to be populating fine.

Screenshot attached.  This is what I see when I open the popup config

0 Kudos
5 Replies
XanderBakker
Esri Esteemed Contributor

What does the expression look like?

0 Kudos
Kara_Shindle
Occasional Contributor III

It's a very simple expression that concatenates the year with the tax total on the same line

DELINQUENT TAXES:              $feature.OT_1YA+": $"+$feature.OT_1YA_TOTAL

In my testing, it appears that any use of the custom expressions is causing this issue.

0 Kudos
XanderBakker
Esri Esteemed Contributor

OK, it seems you have some use of Arcade in here, but as an Arcade expression, what you posted is not a valid syntax. Or is this the actual content of the custom attribute display? If so, I don't think you can directly reference the Arcade syntax there. You would have to create an Arcade expression first with:

return $feature.OT_1YA + ": $" + $feature.OT_1YA_TOTAL;

and then read the expression {expression/expr0} in the custom attribute display.

Can you provide an actual screenshot to see where and how this is used exactly?

0 Kudos
Kara_Shindle
Occasional Contributor III

I've attached a screenshot of the popup configuration screen. 

0 Kudos
XanderBakker
Esri Esteemed Contributor

Thanks for sharing. The expression seems to be OK (although you could include some formatting to the text using:

return $feature.OT_1YA + Text($feature.OT_1YA_TOTAL, ': $#,###.00');

(see Data Functions | ArcGIS for Developers ), however can you hit the TEST button and verify if the expression returns the desired result?

Can you also include a screenshot of the HTML pop-up configuration to see if you are correctly connecting to the expression?