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

Never tried before but what about an array of Map?
Map[] atts…
table.setRows(atts);

on September 27, 2016.
Add Comment
1 Answer(s)

Did you find resolution on this?  Can you share how if ‘yes’ please.

Agile Angel Answered on December 7, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.