Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
+1
person also asked this
people also asked this
Replies
4 replies
Subscribers
5 subscribers
Views
4099 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Hi, Is there a way to read an excel file with spaces in column names
sheenajenp
over 9 years ago
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
0
sikhivahans
over 9 years ago
@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.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
sikhivahans
over 9 years ago
@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.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data