Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Force upload to server
EvDev
Hello,
We have [HKEY_LOCAL_MACHINE\SOFTWARE\Interwoven\WorkSite\8.0\Integration\Options] "AlwaysUploadNewDocuments"=dword:00000000 which means that when I document is saved it is not sent up to the server until it is closed. We want to keep this feature in tact, but when our "publish to portal" is executed we need to temporarily override this setting. What would be the best way to on demand be able to have a document be saved up to the server.
Thanks
Find more posts tagged with
Comments
jny
It sounds like "Publish to portal" is a custom functionality. You would need to add SDK code inside the custom piece to import the document to the server. This implies you would need to make the approriate calls (exposed by the WorkSite Object Model) to create a document object, set the minimum requried fields -- author, operator, type, class, and subclass if required by class -- then checkin the document with the physical file. The physical file needs to be available for upload.
EvDev
Exactly, "Publish to Portal" is a custom function. I am trying to figure out what the SDK code to add is.
The document needs to be left open and checked out, but physical file needs to be uploaded to the worksite server.
jny
You cannot leave the file open while uploading it to the server; the file handle needs to be released first. You would need to use a the API's from the imanext.dll, imanext2.dll (if this is for EAI mode), imanage.dll, and WOM to save the physical file, close it, then import it to WorkSite, then reopen it.
It would be quite involved but you should be able to get some code examples from Devsupport if you own the SDK.
EvDev
Thanks, I'm contacting DevSupport.
Your are correct, it looks like I will have to close the document.