|
Display data read from a CSV file in a grid.
syntax
LoadCsvFile(
fileName
[,bAdjustCols = TRUE]
[,bAdjustRows = TRUE]
[,headerCols = 0]
[,headerRows = 0]
)
Parameters
fileName
|
|
Type:
|
character
|
|
File name.
|
bAdjustCols
|
|
Type:
|
Boolean
|
|
TRUE - The number of grid columns will be automatically adjusted depending on the contents of the CSV file.
FALSE - The number of columns will remain fixed as it is. If the number of columns in the CSV file is greater than the number of columns in the grid, this will be ignored.
|
bAdjustRows
|
|
Type:
|
Boolean
|
|
TRUE - The number of grid rows will be automatically adjusted depending on the contents of the CSV file.
FALSE - The number of rows will remain fixed as is. If the number of rows in the CSV file is greater than the number of rows in the grid, this will be ignored.
|
headerCols
|
|
Type:
|
Number
|
|
If the CSV you are loading contains headers, specify the number of columns in the header direction. After loading, the number of columns in the grid header will be automatically adjusted.
|
headerRows
|
|
Type:
|
Number
|
|
If the CSV you are loading contains headers, specify the number of header rows in the row direction. After loading, the number of header rows in the grid will be automatically adjusted.
|
Return Value
|
|
Type:
|
Boolean
|
|
FALSE - Failure. TRUE - Success.
|
Explanation
This function displays the data read from the CSV file in a grid. This function cannot be used unless you have logged in to the server.
Furthermore, if either bAdjustCols or bAdjustRows is TRUE, any currently active filters will be cleared, and if paging is in progress, you will move to page 0.
|
reference
Copy
Paste
Cut
Print
LoadCsvFile
SaveCsvFile
|