Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Implementing file opening logic in client-side code

  Asked By: Holly Rivera         Date: Jul 18, 2006      Category: Sharepoint      Views: 280
 

I have made much progress on "fixing" WSS to always open a doc lib file for
edit in <application> instead of read-only. I've done this mainly by
altering client-side scripts and through web part link construction. There
is a feature I'd like to try to do in the client-side.

The basic logic in the client script would be:

if (current user = checked out user) then
open file in edit mode
else
open file via HTMLViewer (i.e. truely 'view-only')
end if

I can see where in the client-side scripts where to do this, but I am at a
loss on how. 3 questions:

1) How do I get the user name who has the document checked out in client
side code?
2) How do I open the file (in most cases am office document word, excel etc)
in the HTMLViewer from client-side code.
3) How do I get the current user name in the client-side script?


Do you know someone who can help? Share a link to this thread on twitter, or facebook.

Tagged:                

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Implementing file opening logic in client-side code Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].