Re: Help! Have array of EOs. Need convert to CSV (selected key paths)

2014-12-14 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi Robert, Maybe this helps: 1. create a ordinary WOComponent, e.g. MyCSVComponent.wo In the HTML part, you don't write HTML (skip the whole htmlbody ... /body/html stuff), but the CSV content you need: wo:repeat list=$myList item=$myItem wo:string value=$myItem.property1 /, wo:string

Re: Help! Have array of EOs. Need convert to CSV (selected key paths)

2014-12-14 Thread Robert B. Hanviriyapunt
That's funny. After I sent my help message I just thought about it some and I ended up doing exactly as you mentioned. I found the headers settings somewhere and follow that as well. I also felt something in wonder to quote values as necessary for excel friendly CSV files. Sometimes I freak

Re: Help! Have array of EOs. Need convert to CSV (selected key paths)

2014-12-14 Thread Robert B. Hanviriyapunt
Just to give a more complete description of what I implemented: wo:str value=$~excelSafeCsvString( eo.fullName )”/ I find Ognl saves me from writing so many wrapper functions in the component class, except maybe the one convenience one that called ERXStringUtilities.excelSafeCsvString(). So: