Re: can a .NET app get access to a shared doc in SPS?
From: Nick Malik (nickmalik_at_hotmail.nospam.com)
Date: 09/09/04
- Next message: Karsten Grombach: "Re: Retrieve all users of a user group"
- Previous message: Nick Malik: "Re: Request for the permission of type System.Net.WebPermission ... failed"
- Next in thread: jason shohet: "Re: can a .NET app get access to a shared doc in SPS?"
- Reply: jason shohet: "Re: can a .NET app get access to a shared doc in SPS?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 09 Sep 2004 10:45:52 GMT
A shared document in WSS is available by clicking a link. The link contains
the URL of the document. I'm not sure why this would be difficult to do.
I would suggest that you provide an ASP.NET app that allows the user to look
up their record in Oracle. When they find it, they upload a document to the
asp.net site which will catch the upload, open WSS, and store the document
using the primary key from Oracle into a document library in Sharepoint
(e.g. the user isn't aware that they are using sharepoint at all). Since
your ASP.NET app would impersonate a domain account that has write access to
that document library, WSS would allow the user to upload the document via
the ASP.NET app, but not directly.
Then, when your app shows data from Oracle, provide the link directly to the
Sharepoint library using the primary key value from Oracle.
Note: you may want to put in code to check to make sure that a document
exists for the particular user before showing the link. Easy enough. See
the SPFile object.
Does this help?
--- Nick
"Jason Shohet" <__ash477@yahoo.com> wrote in message
news:ezDGL9bkEHA.3632@TK2MSFTNGP09.phx.gbl...
> 1. Lets say a user uploads a shared document, MJohnson.pdf in
Sharepoint.
> 2. Then the user goes into an external ASP.NET app (or perhaps a SP web
> part)
>
> 3. This app could *somehow* allow the user to associate MJohnson.pdf
with
> the record for the employee "Mike Johnson" -- which is in an external
Oracle
> database, not part of Sharepoint.
>
> 4. A user using that ASP.NET app could then bring up Mike Johnson's
detail
> info from Oracle
> 5. The user will see a link that when clicked, opens MJohnson.pdf!
(stored
> in Sharepoint)
>
> IOTW, can Sharepoint be used for document management somehow, and
integrate
> with another enterprise application in this manner? I'm trying to avoid
> doing the old "have web application hit a db field which contains the
> location of a file on the server". I'm looking for a way to leverage
> sharepoint here, and I'm probably not using Sharepoint in the way it was
> intended... Thanks for any insights
>
> Jason Shohet
>
>
- Next message: Karsten Grombach: "Re: Retrieve all users of a user group"
- Previous message: Nick Malik: "Re: Request for the permission of type System.Net.WebPermission ... failed"
- Next in thread: jason shohet: "Re: can a .NET app get access to a shared doc in SPS?"
- Reply: jason shohet: "Re: can a .NET app get access to a shared doc in SPS?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|