Hello all,
it is passible to change the separator for the csv export in the attribute table widget in Web App Builder? e.g., by changing web map application scipt, ...
Now, only comma separator is available.
Thanks in advance.
Martin
Solved! Go to Solution.
Martin,
Sorry I see the attribute table widget uses a different file E:\___SW\arcgis-web-appbuilder-2.2\WebAppBuilderForArcGIS\server\apps\5\jimu.js\CSVUtils.js (lines 135 and 153).
Martin,
In the [install dir]\server\apps\[app#]\jimu.js\exportUtils.js createCSVString function (line 333):
Change
comma = ',';
Hi Robert,
thank you for your replay. Unfortunatelly, I cant find the same path as you described. I find "createCSVString function" only under path below, but i ques it is wrong js file. Could you please specify in more detail where could be located export.Utils.js file?
c:\Program Files\ArcGIS\Portal\apps\webappbuilder\stemapp\widgets\AttributeTable\Widget.js
Thanks in advance.
Martin
Martin,
You can not make code changes like this unless you are using the un-minified code from the WAB Deve Edition.
Hi Robert,
I apologize for my wrong understanding...
Now, in the right script, if I change parts that you mentioned (red circles), it has no effect on csv formát. Do I rewrote the correct values or format?
Martin
Martin,
Can you show me the exact path to the file your are changing?
Here it is:
E:\___SW\arcgis-web-appbuilder-2.2\WebAppBuilderForArcGIS\server\apps\5\jimu.js\exportUtils.js
Martin,
Sorry I see the attribute table widget uses a different file E:\___SW\arcgis-web-appbuilder-2.2\WebAppBuilderForArcGIS\server\apps\5\jimu.js\CSVUtils.js (lines 135 and 153).
Hi Robert,
thank you very much, this is exactly what I needed!
Martin
I've tested and changing both files, it works for me. I would like if someone knows if the separator can be changed in Web appbuilder arcgis online version, because these files doesn't exists.