KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Saving a 4D Write document into a BLOB field with SAVE RECORD
PRODUCT: 4D | VERSION: 6.5 | PLATFORM: Mac & Win
Published On: August 10, 2001
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

Using the SAVE RECORD command to save a 4D Write document into a BLOB field (e.g. "WriteArea_") does not automatically save the record the way the ACCEPT command does. The reason is because the SAVE RECORD command doesn't honor the automatic relation between the TABLE]WriteArea_ field and the WriteArea area the way the ACCEPT command does. You need to procedurally assign the content of the Area to the field before executing the SAVE RECORD command.

[TABLE]WriteArea_:=WR AREA TO BLOB(WriteArea;1)
SAVE RECORD([TABLE])