Tagged Questions
0
votes
0answers
100 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 ...
2
votes
0answers
49 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
492 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 ...
1
vote
2answers
80 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
71 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
0answers
62 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
469 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
702 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
49 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
284 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
854 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
352 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
57 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
660 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
343 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
165 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
363 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
325 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
820 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
343 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
198 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
892 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
795 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 ...