Uploading documents from iManage into SharePoint 2010 - sharepoint

I have a requirement from my client to upload documents from iManage/FileSite into SharePoint 2010. When they try to upload documents into the document library they would also like to have an option to get the documents from iManage, other than from the filesystem. Please let me know if there is any easy solution to achieve this. Custom coding is also fine with me.
Thanks in advance.

Use the SPSite Class's Files.Add to upload your file from your alternate source.
There's a complete walkthrough of uploading a local file on MSDN.

I have developed a solution for this that uses the IWL protocol, but this would assume the user has WorkSite/DeskSite installed on their computer, and are running WorkSite 8.5 or greater.
iwl:dms={SERVERNAME}&lib={LIBRARY}&num={DocumentID}&ver={DocumentVersion}&command=opencmd
I then developed a insert link option for a user to insert a WorkSite link and they provide the link text, document number and version.
Another alternative is to upload a NRL file, but again this assumes the user has WorkSite/DeskSite installed.

In my case I wanted to have a hyperlink column in the Sharepoint 2013 pointing to a document in my fileSite.
e.g link: iwl:dms=DEV85SERVER&lib=LIVE&num=25210&ver=1
e.g link description: Document test
I tried to create a hyperlink column but SharePoint didn't recognize my DMS link.
So I had to create a calculated column to make the DMS link works.
Create a column called "Document Link" as Single line of text.
Create another column called "Document Description" as Single line of text.
Create a third column called "Link" as a calculated column.
3.1 insert the following formula:
=IF([Document Link]="","To be inserted","<a href='"&[Document Link]&"'>"&[Document Description]&"</a>")
3.2 Change the type returned from this formula to "Number"
Done!
This is just an example. I hope it helps.

Related

Download a document from SharePoint with version number

I need to be able to download a file out of SharePoint (to send externally) that has the version number in the file name.
Is there any way to do this without custom code? If not, how would I code this?
File in SharePoint -> Specifications.doc
Downloaded file -> Specifications V99.doc
I use SharePoint 2007, but I am also interested in a 2010 solution.
Don't think it's possible out of the box. As for manual implementation I see two ways:
1) If you can use some external application (or, for example, webpart or page) to do that, just get sharepoint file as binary stream and save it with the name you want.
2) If you need it to look like standard downloading, add a new custom button to document context menu (Ribbon in SP2010) and again do whatever you want with that document when user clicks the button.
This is about as close as I think we can come at this time:
http://spversionindocs.codeplex.com/
It allows you to have a version number field in your document that is automatically updated with the version number from sharepoint.

How do I know if the user selected a SharePoint file in OpenFileDialog?

In an OpenFileDialog, the user can enter the address of the SharePoint site and select a document in the document library.
I need to provide check-in/check-out integration for SharePoint documents. Is there any way to determine if the file is stored in a SharePoint document library?
Thanks in advance!
After the dialog returns, you can check the value of the selected file. If there's a value, they probably selected a file. You can validate that a file was actually selected by attempting to open the file.
Start here: http://msdn.microsoft.com/en-us/library/system.windows.forms.openfiledialog.aspx

SharePoint 2007: How to upload multiple files to a List Item?

I know that a Document Library in SharePoint 2007 has a multi-file uploader (an ActiveX control that -- and only if you have Office 2003+ installed) but how would I use this same feature with a normal (non-document-library) List item?
Uploading files to a normal List item involves clicking the "upload" link and browsing/uploading files one by one. Is there a better way than this? Surely there must be.
Jake
There is an approach I use, but there is no UI support for it. You may find it a bit tedious for onsey-twosey uploads, but it saved me hours once for serious bulk uploads.
The same WebDAV functionality that we get when using "Open with Windows Explorer" on a document library is available for a list.
Say I have a list at http://myorg.com/sites/Widgets/Lists/MyList.
I can open the list in Windows Explorer by going to the address \\myorg.com\sites\Widgets\Lists\MyList.
Attachments are stored in the sub-folder Attachments, which contains folders with numeric names (1, 2, 3, ... and so on). The numbers correspond to the item ID of the list item. Pick (or create) a folder with the ID corresponding to the item you want to upload to, and it's drag-and-drop from there.
Short of writing your own mulit-file upload web part I think you are going to be stuck with either one at a time (i.e. an attachment to the list item) or switch to a document library. Don't forget that you can customise your library to behave much like a list.
Why is it a problem to use a document library?
I seem to be making a habit of answering my own questions. Not sure if that's a good thing or not.
What I ended up doing was adding an "Upload Multiple Files" button to the toolbar which pointed to a custom ASPX page in the _layouts folder. This page displayed the ActiveX component used by a Document Library and the "post to" URL for it was the ASPX page itself. When posted to it looked for files uploaded and attached them all to the List Item referenced via URL parameters passed to it from the toolbar button.
It's discussed here:
http://weblogs.asp.net/nathanyorke/archive/2007/12/05/uploading-multiple-files-via-the-web.aspx
If I get round to blogging and fuller explanation on my own site I'll try and remember to post a link back here.
Jake

Find the name and size of the uploaded document using Fiddler?

Will I be able to identify the name and size of a document that I am trying to upload into a SharePoint 2007 document library using Fiddler2 tool?
Follow these steps:
With Fiddler running, select the relevant entry for upload.aspx.
Switch to 'Inspectors / Headers'
Have a look at 'Entity / Content-Length'
I just did a test and it roughly corresponds with the length of the file. I am not sure if it is a 100% match or if headers etc are counted towards this length as well.
Open the document library in Explorer View
copy & Paste the document
Fiddler->Inspectors->Entirty->content-length
Fiddlet-> Textview -> will be able to see the Name ofthe file.

SharePoint Designer 2007 - link to a Document Library on a site from another site?

I am trying to create a link to an existing Shared Documents folder on another site. Both sites are on the same server.
Here are the steps I take to create a link to an existing Document Library:
I create a document library web page in Share Point 2007.
I open the document library (AllItems.ASPX) in Share Point Designer.
I delete the existing web part for the list.
In the Data Source Library, I click on "connect to another library" and create a connection to the other site.
I select the document library, click show data, select my rows and click Insert Multiple Item View.
I then configure the look for each field (hyperlinks, etc).
I edit the Filter for this view to show only the files that are for this location.
I click on Data View Properties and select "Enable sorting and filtering on columns (basic table layout only).
Basically I am trying to have a central location for all files for a site and sub sites. I want the sub sites to see the documents for their own location, be able to search through the files, etc.
The problems I am having are:
I am unable to open the links in a new window, even when I set the hyperlink to do so. I would prefer the file be opened in its native application (ie. A Word doc open in Word).
I am unable to show the file icon in the same way it shows up in the original document library.
When I go to the header and click ANY field, I can sort the field ascending or descending but I always get a message stating "This column type cannot be filtered".
Is there an easier way to do this? Or can someone tell me what I am doing wrong? I am new to using Share Point. Thanks for the help!
Some help for problem 1 (unable to open the links in a new window)...
I'm not sure if this will work using the Data View Web Part you have configured. However there is a technique for the List View Web Part. If you add a boolean field called OpenInNewWindow to your document library then documents that have this set to Yes will open in a new window. Try this out - it may work.
If you need to open PDF files in a new window, beware that there is an ActiveX control that will get in the way. Read this question for more information.

Resources