I have a bot that exports a CSV file.
When I have quantity greater than 1,000, the comma indicating the thousand gets interpreted as another field in the CSV. How can I eliminate this comma?
Template:
cBatchNo,cBatchDescription,iTrCodeID,iStockID,iFromWhseID,iToWhseID,fQuantity,cReference,cDescription
<<Start:SELECT([Related Transfers][Row ID],[QtyCheck]>0)>><<[BatchNumber]>>,<<[TransferNumber]>> (App),WHT,<<[Item Code]>>,<<[WarehouseFromCode]>>,<<[WarehouseToCode]>>,<<[QtyCheck]>>,Submitted by: <<[Name]>>,Processed by: <<[ProcessedByName]>>
<<End>>
Solved! Go to Solution.
Something to try that I did not test myself, but maybe use the SUBSTITUTE() function for each number or decimal column:
<<SUBSTITUTE([NumberOrDecimalColumn], ",","")>>
Something to try that I did not test myself, but maybe use the SUBSTITUTE() function for each number or decimal column:
<<SUBSTITUTE([NumberOrDecimalColumn], ",","")>>
I believe the official solution is to encapsulate the number in double quotes when you're exporting the CSV.
<<Start:SELECT([Related Transfers][Row ID],[QtyCheck]>0)>>
<<[BatchNumber]>>,<<[TransferNumber]>> (App),WHT,<<[Item Code]>>,<<[WarehouseFromCode]>>,<<[WarehouseToCode]>>,"<<[QtyCheck]>>",Submitted by: <<[Name]>>,Processed by: <<[ProcessedByName]>>
<<END>>
User | Count |
---|---|
40 | |
32 | |
30 | |
16 | |
16 |