ucEditAutoAttachFdf

Purpose

This method determines if you should attach an Adobe FDF format field to an issue, and performs the attachment if needed.

Applies To

Adobe Fdf screen

Signature

public boolean ucEditAutoAttachFdf (
      SesameSession session, 	// Session object
      Map params, 		// parameters
      Connection dbconn)	// database connection
          throws Exception 

Notes

The FdfFile class is a light wrapper around Adobe's fdf toolkit object

Example

public boolean ucEditAutoAttachFdf(SesameSession session,
            Map values,
            Connection con)
throws Exception
{
    boolean status = false;
    Z.log.writeToLog(Z.log.DEBUG, "autoAttachFdf params " + values);
    
    if (session.getAttribute("GENERATE_PDF") != null && values.get("ID") != null)
    {
        String v = (String) session.getAttribute("GENERATE_PDF");
        session.removeAttribute("GENERATE_PDF");
        
        if ("Y".equals(v)) {
            FdfFile fdf = fdf(session, values);
            status = attachFdf(con, fdf, (String) values.get("ID"), values);
        }
    }
    
    return status;
}