My Government Services Application with Periods in Field Name

1764
2
10-20-2015 06:19 AM
by Anonymous User
Not applicable

I am trying to configure the My Government Services app to access data from a service that has periods in the field name. All of the other services that do not have periods in their field names are working as expected. Recreating the layer and changing the field names would be a last resort.

Has anyone else found a workaround to this problem? I found this discussion - accessing fields with periods in field names  but can't figure out how to apply this to the My Government Services app.

0 Kudos
2 Replies
JakeSkinner
Esri Esteemed Contributor

Hi Cody,

If you open the config.js file, you should be able to edit the field names there.  You will need to update each FieldName option.  Ex:

screen1.PNG

0 Kudos
by Anonymous User
Not applicable

Hi Jake,

I've edited my config.js file with the the fields I want shown. This is working correctly in the app for all of my services except the one that has periods in its field names.

I believe the code that needs to be changed is in the carousel.js file here:

attribute_switch = dojo.string.substitute(service.FieldNames.Field, feature.attributes);

0 Kudos