0
votes
0answers
53 views

How to copy document from library to list attachment with SP Services?

I need to attach a document that is stored inside a document library to a list item on the same webpage. All needs to be done with javascript / jquery / spservices. Can you please help me and show ...
1
vote
2answers
331 views

SharePoint 2010 - Create link to document library content type

Have a document library with multiple content types, each using a template. Example, user click on 'New Document' > 'Content A' and a Excel form will open. I'm trying to create links (buttons to be ...
1
vote
2answers
76 views

version control scripts in document libraries to TFS

How can I version control in Microsoft cloud TFS the html and js files which are stored in document libraries? I have these kind of questions: How could I "publish new versions of the solution" ...
2
votes
3answers
536 views

Get file names in sharepoint 2013 document library

What is the best way to get a list of all the file names in a sharepoint document library with javascript?
1
vote
4answers
287 views

“Injecting” status icons in SharePoint list

I have a list that have a date column called 'Expired' and must somehow represent the status as an icon (example in image) The solution must be deployable on farm level since the expires column may ...
5
votes
4answers
745 views

How can I disable the Document Library drag and drop function?

Before I start - I'm new to this SharePoint development lark and am slowly familiarising myself with it. We're using SharePoint online and I have amended the SharePoint out-of-the-box document ...
0
votes
2answers
974 views

How to get document URL of a Document Library item given Item ID and URL - using javascript?

I have access to a document library item URL. E.g. /Documents/Forms/DispForm.aspx?ID=585 Based on this information, I would like to get the URL of the document associated with this item. E.g. ...
0
votes
0answers
305 views

Modal dialog for document library

First of all, my question. How do I make a working modal dialog popup for a document library, that shows details about that document upon clicking the document name in the library list? Please note ...
3
votes
1answer
106 views

SP2010 possible to create a text file in document library and fill with data from list using JSOM JavaScript/jquery

Is it possible to create a new item in a library and default that to a txt file or XML and using JavaScript or jquery insert data from a list into that file? For example from a page click a button ...
3
votes
1answer
1k views

SP2010 JSOM Client Object Model: How to get all documents in libraries including all folders recursively

I have seen a lot of examples and questions about this out there but nothing I have found has helped me accomplish this. I need to be able to grab all the names of the documents within a given ...
2
votes
2answers
224 views

SP2010: Get all library names within a site using javascript client object model?

How do I get the names of all libraries within a given site using jquery/javascript? the only way i know of is using getByTitle('listtitle'), but I would like all names of libraries (hopefully there ...
0
votes
0answers
103 views

Possible to read values from file (.doc, .ppt. .msg) in library using javascript/jquery

Is is possible to read values from .msg file using javascript/jquery (or some other mechanism like workflows, etc) that are in library in SP2010? I know I can read values from a xml file, curious if ...
0
votes
1answer
94 views

Delete selected file in Document Library with Javascript

I have a Document Library, when I select some files from it the ribbon appears and I can choose "Delete Document". I need to make a button on the page (.aspx view of the Library) that calls a ...
0
votes
1answer
652 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
969 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
1answer
368 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
1k 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
439 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
61 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
773 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 ...
2
votes
1answer
403 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
1answer
177 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
408 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
397 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
970 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 ...
1
vote
1answer
424 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
229 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
1k 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
894 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 ...