header in csv output

39 views
Skip to first unread message

Marian Florence

unread,
Oct 22, 2021, 4:19:32 AM10/22/21
to Bots Open Source EDI Translator
hello team 
has anyone created a sample csv that has header?  
basically iim able to get the output however it does not have the title header. 

example. 

Name, EAN, Description   <-----------------------i need this in the output. how? 
TEST,012,Sample ProductName <---------------------my output starts here. 

sample structure:

structure=    [
    {ID:'HEA',MIN:1,MAX:10000}
    ]

recorddefs = {
    'HEA':[
            ['BOTSID','C',3,'A'],
            ['Name', 'C', 255, 'AN'],
            [' EAN  ', 'C', 255, 'AN'],
            [' Description     ', 'C', 255, 'AN'],

Eppye Bots

unread,
Oct 22, 2021, 4:27:28 AM10/22/21
to 'Chuck Turco' via Bots Open Source EDI Translator
in grammar of csv:
syntax = {
    'envelope':'csvheader',              # include header line with field names
}


kind regards, Henk-Jan Ebbers


--
You received this message because you are subscribed to the Google Groups "Bots Open Source EDI Translator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to botsmail+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/botsmail/c558e73e-bcfe-4e22-a727-0caa772ce98an%40googlegroups.com.

Marian Florence

unread,
Oct 22, 2021, 4:48:32 AM10/22/21
to bots...@googlegroups.com
works like charm! thank you very much. 

Reply all
Reply to author
Forward
0 new messages