Select to view content in your preferred language

Change CSV list separator in Attribute Widget

3421
19
Jump to solution
03-14-2013 07:15 AM
JosVroegop
Deactivated User
Hello all,

I can't seem to change the list separator for the csv export in the attribute widget.
It's now "," and i would like to change it to ";" Does anyone know where to look?

I'm working with the 3.1 sourcecode. Thanks in advance.

Jos
Tags (2)
0 Kudos
19 Replies
BjornSvensson
Esri Regular Contributor
Sorry, I did not read the question properly.  I thought you were asking about supporting (incoming) CSV files that didn't use commas.  Reading it again, it is clear that you are asking about EXPORT with semicolon. This isn't possible to do currently.

In order to support this in the API, I have some questions:

Do you think this should be decided by the person setting up the applications (with a tag in the attributetable config file)?
Or do you think it would be something that the end-user would have an option to pick?
0 Kudos
BjornSvensson
Esri Regular Contributor
FYI: In the next release (3.3), we're planning to add a "exportColumnDelimiter" option to both the API and Viewer for exporting with non-comma separators.

Thank you for your feedback.
0 Kudos
marcostenorio
Emerging Contributor

Hello Bjorn,

how to add new item on the menu option in the attribute table?

I'm trying to add an option to export to excel.

I already have the api as3xls and function, but do not know where to insert.

could indicate which file mxml I change?

thank you very much.

Tenorio

0 Kudos
BjornSvensson
Esri Regular Contributor

Tenorio, I responded on the specific discussion you created - see https://community.esri.com/message/390859#390859

0 Kudos
marcostenorio
Emerging Contributor

Bjorn, thank you very much

0 Kudos
JosVroegop
Deactivated User
Hello Bjorn,

Many thanks for adding the option to set the csv delimiter in version 3.3. About your question,

"Do you think this should be decided by the person setting up the applications (with a tag in the attributetable config file)?
Or do you think it would be something that the end-user would have an option to pick? "


I think the person setting up the application knows wich delimiter should be used, much less confusion for the user.
This would be enough for me anyways.
0 Kudos
olivierthomas
Emerging Contributor
Hi Bjorn,

Thanks for the feed back.
It will be great if the Flex Viewer release 3.3 lets the end user define its own separator for csv.

Regards,

Olivier T.
0 Kudos
KenCarrier
Deactivated User
I am sure I am doing something wrong here but is anyone else having problems with 3.2 and line 910 of the AttributeTableWidget?

I am getting an error during the building of the workspace.

1119: Access of possibly undefined property exportColumnDelimiter through a reference with static type com.esri.ags.components:AttributeTable. AttributeTableWidget.mxml /FlexViewer/src/widgets/AttributeTable line 910 Flex Problem

Is this a known issue or is there a workaround.

Here is the line of code, I just downloaded everything from the resource center, have a call into tech support waiting on a call back.


attributeTable.exportColumnDelimiter = settings.exportColumnDelimiter;
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ken,

   You are unintentionally using the develop branch of the Flex Viewer GitHub repository with essentially is 3.3 Beta. You need to switch to the Master branch and re-download the viewers source.
0 Kudos
KenCarrier
Deactivated User
Thanks Robert my fault.
0 Kudos