Hi, Is there a way to read an excel file with spaces in column names

Hi,

Is there a way to read an excel file with spaces in column names (ex: EMPLOYEE NAME) and write to a DB Table? It is known to me that spaces are not accepted in CDT, so is there any other way how I can read these columns with spaces and map it to be written on their respective columns on the DB Table?

Thanks!

OriginalPostID-194503

OriginalPostID-194503

  Discussion posts and replies are publicly visible

Parents
  • @sheenajenp Hi, 'readExcelColumn' function in the above mentioned plugin should do the work for you when the header names differ from the field names in CDT. The column in the spreadsheet might have any name, but readExcelColumn reads the data based on sheet number.

    Also bear in mind that readExcelColumn reads the first cell in the column, which could be typically the column header. If the first cell in the column is header, make sure that the first row is removed after building the cdt array from the results of parsed columns.

    As far as the plugin implementation is considered, having the header names same as the field names in CDT will help you in keeping the implementation simple and clean as per my knowledge.
Reply
  • @sheenajenp Hi, 'readExcelColumn' function in the above mentioned plugin should do the work for you when the header names differ from the field names in CDT. The column in the spreadsheet might have any name, but readExcelColumn reads the data based on sheet number.

    Also bear in mind that readExcelColumn reads the first cell in the column, which could be typically the column header. If the first cell in the column is header, make sure that the first row is removed after building the cdt array from the results of parsed columns.

    As far as the plugin implementation is considered, having the header names same as the field names in CDT will help you in keeping the implementation simple and clean as per my knowledge.
Children
No Data