ucEditAttachFdf
Purpose
This is used to save an Adobe format FDF file as an attachment to the issue.
Applies To
Adobe Fdf screen
Signature
public boolean ucEditAttachFdf (
Connection c, // database connection
FdfFile fdf, // the fdf file
String problemId, // the issue number
Map params) // Parameter map
throws Exception
Notes
Example
public boolean ucEditAttachFdf (
Connection c, // database connection
FdfFile fdf, // the fdf file
String problemId, // the issue number
Map params) // Parameter map
throws Exception
{
Map p = new HashMap();
p.put("ID", itemId);
p.put("ATTACH_DESC", "Sample form: " + (String) values.get("SHORT_DESCR"));
p.put("FILE_NAME", "SampleForm.fdf");
Attachment a = new Attachment(con);
File f = new File(fdf.getFileLocation());
w("fileLocation: " + fdf.getFileLocation());
boolean status = a.insert(f, p, "text/plain");
fdf.delete();
return status;
}