172
Views
2
Comments
CSV Util
Question

Hi All,

I am using CSV util Extension to download csv file, Here I was not able to customize the header name of download file.

Usually for excel download Entity/Structure attribute label will take as header name, but in CSV util Entity/Structure attribute name will take as header name. Meaning the headers of downloaded csv file are matching with Entity/Structure attribute name instead of Label. 

Eg: If the Structure attribute name is First_Name - in csv getting same as First_Name instead of First Name even I make label as First Name.

If you have any idea please let me know,

Best Regards

Asif

2021-08-12 11-00-27
Nordin Ahdi
 
MVP

Hi Asif,

If you have a question related to a Forge Asset, please include the related Asset in the Post context section of your post so the team behind it will get notified.

Thanks,

Nordin

2021-11-18 18-03-41
AJ.

Hello @Asif k

Using the CSVUtil component, I do not know how to access the attribute Labels instead of the Name. 

I, however, wanted to share the following tip to override the attribute name - by using the 'CustomHeader' property.

For e.g. if you have a structure with attribute names as - Name, Age, Gender

You can override these to instead display 'Name1', 'Age1', 'Gender1' in the downloaded CSV file by setting the CustomHeader property for ExportRecordList2CSV as shown below:

Basically list out the column names separated by a comma. Hope this helps,

Regards,

AJ

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.