tford wroteTo create a new instance, very similar to the one above:
CREATE ObjectB WITH ObjectB.Doc=ObjectA.Doc
Thanks Kingsley and Tom.
Let me explain the whole process
1) App_A is used by guest logon. Here they upload all the files they want.
2) App_B is use by the registered users.
The way App_B reads App_A data is by defining the Business Objects of App_A as an external database.
App_A has a BO called FileUploads with attribute:
FileSize (Number)
FileUploaded (Document)
App_B has the following BO's
ValidFileUploads (internal awareim)
FileSize (Number)
ValidFile (Document)
DateChecked (Date)
ext_FileUploads (this BO is from App_A)
EXT_ID
EXT_BASVERSION
EXT_BASTIMESTAMP
FIleUploaded_DOCDATA (binary data)
FileUploaded_DOCTYPE (plain text)
FileSize
Using CREATE ValidFileUploads WITH ValidFileUploads.ValidFile=ext_FileUploads.FileUploaded_DOCDATA doesn't work, it just creates a record but the document is not created.