#g4ppinv_setAttachmentValue

 *//////////////////////////////////////////////////////////////*
 * #g4ppinv_setAttachmentValue - Set Value of Attachment        *
 *                                                              *
 * Input:                                                       *
 *   in_parameter (required) - The parameter name.              *
 *   in_value (required) - The value of the parameter.          *
 *   in_index (optional) - The index of the Attachment Record   *
 *     to update.                                               *
 *                                                              *
 * Output:                                                      *
 *   out_errMsg - The error message (if error exists).          *
 *                                                              *
 * Returns:                                                     *
 *   -1 for error, 0 for no error.                              *
 *                                                              *
 * Settable Variables ([r]=required)                            *
 *   name - Attachment Name                                     *
 *   url - Attachment URL                                       *
 *                                                              *
 *//////////////////////////////////////////////////////////////*
D #g4ppinv_setAttachmentValue...
D                 PR            10i 0
D  in_parameter                256    Varying Value
D  in_value                  65535    Varying Value
D  in_index                     10i 0 Options(*NOPASS)
D  out_errMsg                  256    Options(*NOPASS)

#g4pp_setAttachmentValue is used to set specific Attachment Record information for the current Attachment Index. You must call #g4ppinv_createAttachment prior to setting any attachment values.

Returns: 0 for success, -1 for error.

Required Parameters:

  • Parameter Name (input)
  • Parameter Value (input)

Optional Parameters:

  • Attachment Record Index (input) - Pass in an optional index to update a specific attachment record. Default is to update the current attachment record.
  • Error Message (output) - Error message

Settable Variables:

  • name - Attachment Name
  • url - Attachment URL