Configuring a File Extension for CSV Report
eMACH-Sigma enables you to configure a report with a specific file extension of your choice for the CSV format. You can even select a specific delimiter for the CSV format. Delimiters like comma and semicolon pave the way for the listed characters in the data sets to be distinctively separated in a proper manner. For the CSV format, the delimiters like comma and semicolon logically separate the different characters present in the data sets and the logical sequence of data will be displayed in an acute manner in accordance with the adept usage of delimiters. In eMACH-Sigma Studio, you can assign delimiters and choose a specific file extension for the CSV format with simple and effective configuration steps.
To disable the headers and footers of a CSV report, specify the print options as N for the CSV report header and footer in the eMACH-Sigmaexportconfig.properties file (e.g. D:\Canvas\apache-tomcat-8.5.9\webapps\eMACH-Sigma\WEB-INF\lib), present in the eMACH-Sigma Application WAR folder. A sample entry is provided in the following code snippet:
# Indicator to decide to print CSV header in CSV report output. PRINT_CSV_HEADER = N # Indicator to decide to print CSV footer in CSV report output. PRINT_CSV_FOOTER = N
For detailed information on the eMACH-Sigmaexportconfig.properties file, refer /wiki/spaces/sigma2021/pages/2577957158.
To configure a report in the CSV format with a particular delimiter and a specific file extension, perform the following steps in eMACH-Sigma Studio:
- On the home page of eMACH-Sigma Studio, click Manage > Report.
The Information Report screen appears. - Enter a unique ID in the Report Id field, e.g. ACCOUNT_MASTER.
- Enter a unique name in the Report Name field, e.g. ACCOUNT MASTER.
Provide the other necessary details for the report, as shown in the following screen shot.
For detailed information on creating reports, refer Configuring Reports.
- In the Select Allowed Format field, click the CSV format.
The Configure delimiter for CSV pop-up appears. Click the Delimiter drop-down list and select the delimiter of your choice, e.g. Comma.
The available delimiters are: Comma, SemiColon, Space, Tab, Pipe and Caret.
Click the Text Qualifier drop-down list and select a text qualifier of your choice, e.g. Double Quotes.
Text Qualifiers are used within the delimiters to indicate the beginning and the end of the contents for a particular delimited text value. If the delimited text values are indicated in double-quotes, then the text values placed within the double quotes will not get separated by the delimiter, thereby ensuring that the specified text values placed within the double quotes are considered as a single value.
Click the Select File Extension drop-down list and select a file extension of your choice, e.g. csv.
The available file extensions for the CSV format are: csv, tsv and txt.
Enter '#' to view the list of functions to modify the CSV column headers in the Header Expression field and select any from the list.
The functions used in CSV headers are:
- Replace () - This function is used to replace a specific character with another character.
For example, s:replace( value,'a','5')
Where,- value is a static parameter without quotes.
- The given character 'a' is replaced with the new character '5'.
- Trim() - This function is used to remove all the leading and trailing white-space characters.
For example, s:trim( value )
Where,- value is a static parameter without quotes.
- value is a static parameter without quotes.
- On the Information Report screen, click the Report Parameters tab.
If the report column headers need to be hidden when the report is generated, click the Remove Column Header in drop-down list and select the report formats which when generated must not have the report column headers.
- Replace () - This function is used to replace a specific character with another character.
- Click Save to save the report.
A confirmation message, indicating a successful save of the report, appears. - Click Ok.
For detailed information on generating a CSV report with a specific file extension in eMACH-Sigma Application, refer Generating a CSV report with a specific file extension.