Select to view content in your preferred language

How to change export format options and just keep CSV format export in the table widget for dynamic added layer?

289
6
3 weeks ago
WilsonLee
Regular Contributor

Dear all, 
I am using ArcGIS Experience Builder Developer Edition 1.1.7 with Enterprise Portal/Arcgis server 11.3.

I would like removing the export option from the out-of-the-box Table widget.


I am aware that if my layers are pre-added to the web map, I can go to the Data settings and uncheck the export option. However, my layer is added dynamically (not in the web map, can be Map or Feature Service), and I noticed the export options in the Table widget include GeoJSON, JSON, and other formats, as well as CSV.
I need users to be able to export to CSV only and remove other option for GeoJSON, JSON from the Table widget.
is this possible to achieve this, or if there is a way to limit export formats to CSV only for dynamically added layers? can I copy the TABLE widget and make it as custom widget and be able to make the chagnes?


thanks so much!!
Wilson

0 Kudos
6 Replies
DanielFox1
Esri Regular Contributor

Hi @WilsonLee 

I am not sure if this setting is in the Dev Edition you have but in an out of the box Experience Builder from AGOL you can click on the Data Source on the left > Export Settings and select the cog wheel for the layer you want and untick the formats then in the table you will see the export options selected 

DanielFox1_0-1755258082138.png

 

0 Kudos
WilsonLee
Regular Contributor

 Unfortunately, the layer is added dynamically via the Add Data widget (the layers are not PRE-added to the webmap), and the setting isn’t available 😞

0 Kudos
ShengdiZhang
Esri Regular Contributor

Hi @WilsonLee ,

I just want to double-check how you’re dynamically adding the data, are you using an Add Data widget?

Currently, it isn’t possible to change the export format options for layers added at runtime, but we can consider potential enhancements in the future.

Regards,

Shengdi

0 Kudos
WilsonLee
Regular Contributor

Hi Shengdi, @ShengdiZhang 

that's correct, the data is added via the ADD DATA Widget. it would be GREAT if I can control the export format at the WIDGET level and not at the DATA level. 

BTW, is there anyway that i can disable some of the export format option at this current built? eg, workaround OR update the widget code...etc? (even a quick and dirty way to remove the unwanted formats in the dropdown menu in the TABLE widget would be great)

thanks so much for your help!!!!

Regards,


Wilson

0 Kudos
ShengdiZhang
Esri Regular Contributor

Hi @WilsonLee ,

We are considering adding support to control exports and configure export format options in the Add Data widget, but I can’t provide a timeline for when these features might become available.

After discussing with other colleagues, it seems there is currently no way to control the export format for data added at runtime in the Table widget.

Thanks,

Shengdi

0 Kudos
WilsonLee
Regular Contributor

thanks @ShengdiZhang , is there anyway that we can just HIDE the unwanted export format options just on the UI? can we modify the out of the box widget and make it a custom widget?

Regards,

Wilson

Wilson

0 Kudos