How to use map to create multiple attachments on Attachments Table
Hi,
There is a method ITable.createRows() to create multiple rows on Attachments table. But how do we pass map array to this method to create multiple rows.
I know, it accepts File[] too, but i wanted to create a row with file description which means we have to use Map params to create rows.
param.put(CommonConstants.ATT_ATTACHMENTS_FILE_NAME,”Testing1″);
param.put(CommonConstants.ATT_ATTACHMENTS_CONTENT, inputstream);
param.put(CommonConstants.ATT_ATTACHMENTS_FILE_DESCRIPTION,”1″);
Any idea on this?
Thanks,
Anand
Antonio
Never tried before but what about an array of Map?
Map[] atts…
table.setRows(atts);