Collect! Credit and Collection Software™

  Page Table of Contents Related 'How To' Tutorials

How To Edit Note Blobs Using @EDIT

Collect!'s report writer can modify or delete contents of the various blob files. This includes, but is not limited to, Client and Debtor Notes and Letter Metafiles.

The report writer uses @EDIT to modify blobs. Since a blob is not a normal field or record but a file stream, there are three variations to the @EDIT command that may be used to manipulate them.

The three @EDIT commands for blob fields are:

Delete Blob

.bldel = 1
This command DELETES the contents of the blob. BUT it does NOT shrink the size of the blob file.

EXAMPLE:

@EDITde.no.bldel = 1
This command DELETES the Debtor Notes blob. The assignment is necessary for @EDIT to work.

Top of page.

Replace Blob

.blrep = {value}
This command REPLACES the contents of the blob with {value}.

EXAMPLES:

@EDITde.no.blrep = "STUFF"
This command REPLACES the existing Debtor Notes blob with the text "STUFF".

@EDITcl.no.blrep = "Notes removed for auditing purposes."

Top of page.

Append To Blob

.bladd = {value}
This command ADDS {value} to the blob. If you are adding to the contents of Notes, this command will prepend a valid date stamp to {value}.

EXAMPLES:

@EDITde.no.bladd = "MORE STUFF"
This command APPENDS the text "MORE STUFF" to the end of the existing Debtor Notes blob with a valid date stamp.

@EDITde.no.bladd = It's a great day!

Top of page.

Editing Contact Data

Only blrep and bldel are enabled on contacts.

Useful Note Adding new lines to contact blobs using @EDITco.bl.bladd = "MORE STUFF" is currently disabled because contact blobs can contain binary stuff in them.

@EDITco.bl.bldel = 1
The number doesn't have to be "1" but you have to assign the bldel to a value and 1 works fine.

Top of page.

Remove Metafiles From Contacts

@cl no total where ( @cl.cl = 104 .. 115 ) @cl.de no total @de.con where ( @co.ty = Letter ) where ( @co.dda = 01/01/2028 .. 12/31/2028 ) @EDITco.bl.bldel = 1 @EDITco.da = " " // This deletes the word "[METAFILE]" @de.con @cl.de @cl

Top of page.

Was this page helpful? Do you have any comments on this document? Can we make it better? If so how may we improve this page.

Please click this link to send us your comments: helpinfo@collect.org