Hi,
How do I transfer a document type from one BO (app_A) to another BO (app_B)?
Basically, the user uploads the document in app_A and I have a scheduled process that grabs all the uploaded files in app_A then copies the document in app_B
transferring document
transferring document
Thanks in advance!
Cris
MSSQL 2008R2, Aware 7 b2146, IE11, , Firefox 35.0.1, Windows 8 Bootstrap theme
Cris
MSSQL 2008R2, Aware 7 b2146, IE11, , Firefox 35.0.1, Windows 8 Bootstrap theme
Re: transferring document
Are you creating a new instance of app_B or do you need to find a particular instance of app_B to copy the doc to?
Tom - V8.8 build 3137 - MySql / PostGres
Re: transferring document
Hi Tom,tford wrote:Are you creating a new instance of app_B or do you need to find a particular instance of app_B to copy the doc to?
creating a new instance on App_B
Thanks in advance!
Cris
MSSQL 2008R2, Aware 7 b2146, IE11, , Firefox 35.0.1, Windows 8 Bootstrap theme
Cris
MSSQL 2008R2, Aware 7 b2146, IE11, , Firefox 35.0.1, Windows 8 Bootstrap theme
Re: transferring document
To create a new instance, very similar to the one above:
CREATE ObjectB WITH ObjectB.Doc=ObjectA.Doc
CREATE ObjectB WITH ObjectB.Doc=ObjectA.Doc
Tom - V8.8 build 3137 - MySql / PostGres
Re: transferring document
Thanks Kingsley and Tom.tford wrote:To create a new instance, very similar to the one above:
CREATE ObjectB WITH ObjectB.Doc=ObjectA.Doc
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_ID
EXT_BASVERSION
EXT_BASTIMESTAMP
FIleUploaded_DOCDATA (binary data)
FileUploaded_DOCTYPE (plain text)
FileSize
Thanks in advance!
Cris
MSSQL 2008R2, Aware 7 b2146, IE11, , Firefox 35.0.1, Windows 8 Bootstrap theme
Cris
MSSQL 2008R2, Aware 7 b2146, IE11, , Firefox 35.0.1, Windows 8 Bootstrap theme
Re: transferring document
I assume "doesn't work" means that no data is entered into the doc attribute. I recommend you try any process to copy the blob from one database to the other. I'm out of my depth in any difference between MSSQL and MySQL blob data, but it could be a factor. I don't know if MSSQL has more than one blob type either. But I suggest Googling on the the differences between the databases as far as blobs go.
V8.8
MySQL, AWS EC2, S3
PDFtk Toolkit
MySQL, AWS EC2, S3
PDFtk Toolkit
Re: transferring document
Hi Kingsley,kklosson wrote:I assume "doesn't work" means that no data is entered into the doc attribute. I recommend you try any process to copy the blob from one database to the other. I'm out of my depth in any difference between MSSQL and MySQL blob data, but it could be a factor. I don't know if MSSQL has more than one blob type either. But I suggest Googling on the the differences between the databases as far as blobs go.
looks like you're right, transferring binary data in MSSQL (using SP) is not as simple as it seems but doable. And how to do it in Aware is another thing.
Thanks in advance!
Cris
MSSQL 2008R2, Aware 7 b2146, IE11, , Firefox 35.0.1, Windows 8 Bootstrap theme
Cris
MSSQL 2008R2, Aware 7 b2146, IE11, , Firefox 35.0.1, Windows 8 Bootstrap theme
Re: transferring document
Hey Chris, don't store it as a blob, put it in a file directory (or export it there), pass the file location/path and then create and reference it or import it.
Rod. Aware 8.6 (latest build), Developer Edition, on OS Linux (Ubuntu) using GUI hosted on AWS EC2, MYSQL on AWS RDS
Re: transferring document
Hi Rod,RLJB wrote:Hey Chris, don't store it as a blob, put it in a file directory (or export it there), pass the file location/path and then create and reference it or import it.
I wish I could but this is more of a 'unsecure location' to a 'secure location' transfer. I cannot have any of the files sitting in the server at all.
Thanks for the idea though ...
Thanks in advance!
Cris
MSSQL 2008R2, Aware 7 b2146, IE11, , Firefox 35.0.1, Windows 8 Bootstrap theme
Cris
MSSQL 2008R2, Aware 7 b2146, IE11, , Firefox 35.0.1, Windows 8 Bootstrap theme
-
- Posts: 2405
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
Re: transferring document
Do as Rod said ..... Import it and then delete it off the server
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Re: transferring document
Mark,eagles9999 wrote:Do as Rod said ..... Import it and then delete it off the server
let me explain the scenario
users will be accessing app_A, uploading the documents as needed, the physical files gets deleted after its been imported into its respective BO.
now App_B has a scheduled process (every 15 minutes) to read what's been entered into App_A.
App_B is accessing App_A database. App_A's table is defined as external database (objects) in App_B.
I agree that Rod's solution will work, but not in this case.
Thanks in advance!
Cris
MSSQL 2008R2, Aware 7 b2146, IE11, , Firefox 35.0.1, Windows 8 Bootstrap theme
Cris
MSSQL 2008R2, Aware 7 b2146, IE11, , Firefox 35.0.1, Windows 8 Bootstrap theme