0
votes
1answer
253 views

How can I get the ID/Name of the selected DocumentLibrary using JavaScript in MasterPage?

I want to get the ID/Name of the DocumentLibrary when I Click/Select on any library from List of libraries from the Left Panel of MasterPage. Can I call the function from MasterPage or where ? How ? ...
2
votes
1answer
460 views

Calling Upload Dialog with javascript, can I pass value through to the edit form that follows?

I have a button that opens the upload dialog from a page using the below approach: function openUploadNewDocumentDialog(passingID) { var dialogOptions = SP.UI.$create_DialogOptions(); ...
0
votes
0answers
47 views

How to show the library items based on the lookup of contacts column in another list using ecma script?

I have a document library which contains multiple documents. and i have a list which contains two columns DocumentName and Contacts. My scenario is, I want to show the library item which is created ...
0
votes
1answer
247 views

javascript/jquery to create a document set

i have seen several SOM examples online for programmatically creating a document set, but I would need to accomplish this with javascript/jquery if possible. Is this possible, and if so how is it done ...
1
vote
4answers
514 views

How do I display HTML on a Sharepoint List?

I am trying to inject HTML into a Custom List schema. Essentially I am injecting a button that would go next to every document in a document library. Is this possible to do without having to build a ...
0
votes
1answer
308 views

AllItems View of Query String: can I group using value in query string?

Can I somehow how a query string to show a group of documents within a given library. Not one single item, but the AllItems like view. So within the library I have a grouping type of id value in a ...
0
votes
0answers
55 views

How to extent the logout time when doc is opened for edit/view sharepoint site?

I have custom javascript to logout the sharepoint page after 30 minutes. Now the problem is, if i have opened any document from shared document to edit/view. then also sharepoint site got logged out ...
0
votes
1answer
528 views

Is it possible to run a workflow on all items using either workflow or plain javascript code?

Let say I have a forms library with a workflow (let's call it 'A') that is attached to it. I have configure that the workflow can be manually run. So, is it possible to create another workflow (let's ...
0
votes
0answers
378 views

Retrieving Document Library item URL from ID

How can I retrieve the URL of an item/document in a (generic) document library when the only thing I have is the ID, obtained through: SP.ListOperation.Selection.getSelectedItems(); My intention is ...
0
votes
0answers
68 views

Document library navresize does not work on first load

Sharepoint 2010 is running on our DEV Server. We have branded the SharePoint solution and therefore are running it as publishing site. The document library has a customised master page. In the DEV ...
2
votes
1answer
304 views

How to print document library item from ribbon button

I'm creating some custom features to add functionality to the ribbon. I have created a button to print the page you are viewing very easily like that: SPItem containing elements.xml: <?xml ...
0
votes
0answers
383 views

Want document library Name or Title hyperlink field to open up as a modal dialog when clicked like in a custom list

I have created a document library. However, i want that each time i click on the document name or title, instead of the document opening up as it does by default, i would rather prefer that a new ...
0
votes
1answer
151 views

Where to find a complete list of document action functions in JS

I'm tasked with taking an inventory of all document action functions in core.js Is there a list somewhere online that provides a list of all user options from a document list menu? [If I can get it ...
1
vote
2answers
330 views

Using javascript to create InfoPath form in a SharePoint library

Are there javascript / javascript framework that allows developer to create InfoPath Form in a SharePoint Library? Suppose there is a SharePoint Library called 'Finance Application'. When a user ...
1
vote
0answers
276 views

Get Permissions with client object model

i want to add a permission on a folder who's inside a document library with javascript/jquery/client object model. The problem i have is, its a custom permission level created when some feature is ...
5
votes
2answers
651 views

Javascript Client object model, rename folder

Hey am trying to rename a folder inside a Document library, right now i get my item and everything is good but when i try to rename it using set_item('title', 'NewFolderName') it crashes and unwinds ...
0
votes
1answer
267 views

Javascript, cannot complete this action

i am currently running some code on a sharepoint front end and am getting this error "Microsoft.SharePoint.SPException" "Cannot complete this action.\n\nPlease try again." So i looked into this and ...
0
votes
1answer
162 views

How to I hide a SharePoint Document view based on certain variable in a Javascript code?

I have a SharePoint Document view that allow people to upload file. However, I have a Javascript variable that will control when can the people upload file. If the javascript variable is being ...
7
votes
1answer
722 views

Create a Document Library Item base on a ContentType with JavaScript Object Model (JSOM)

I'm trying to create a new item in my Entreprise Wiki Pages Document Library. It's associated with a News Content type. I was able to retrieve the SP.List object (myList), the SP.ContentType object ...
1
vote
1answer
667 views

How to check if current folder in document library has child items via JavaScript client object model?

I have a custom button on ribbon, which performs some action with current folder (download folder content as zip package). I want to disable this button in case if current folder doesn't contain any ...