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)
Worksite Asp.Net
System
Morning,
Let me firstly say that i am a newbie to worksite. I am looking to be able to select a file from worksite via asp.net and save it to the local pc or even just get the nrl of the document. The reason for this is to add as an attachment to a helpdesk call if needed. I am guessing i would have to be able to search for the document.
I am not sure where to begin with this one and any help would be greatly appreciated.
Thanks in advance.
Find more posts tagged with
Comments
dabird
If you have WorkSite Web 8.1, we expose a dialog called "Enhanced Browse Dialog" (herein referred to as "EBD") that handles all of this for you. This dialog displays a search form and the WorkSite tree, and allows the user to select multiple documents from the result set. There are several reasons for using this dialog as opposed to writing your own code: (1) We do all the work of authenticating the user, searching for the documents and giving you a handle to the selected documents. (2) The only code you have to create is a JavaScript callback for the dialog to call when documents have been selected (more on that later). (3) You will always have a reference in your help desk app to the document in the WorkSite repository. If the file is updated, you'll always get the latest version by using a URL to WorkSite. In the case of attaching the file directly as you suggested, you will only have a snapshot of the document at the time it was attached.
So, how does all this work? In your ASP.NET app, you construct a URL to WorkSite Web's EBD. In the URL, you register your callback function's name with the EBD. You define a JavaScript callback function with specific parameters that the EBD requires. When the EBD's OK button is pressed, the EBD will invoke your custom callback. Inside your callback, you then build URLs to WorkSite Web's ViewDoc.aspx and add the URLs to your help desk app. ViewDoc.aspx allows the user to view a document stored in the WorkSite repository in native format or HTML format.
You can find details on this dialog and the ViewDoc.aspx URL in the WorkSite Web Customization Guide. This file is on the WorkSite Web installation CD or on-line in the
IWOV Knowledgebase
.