Tagged Questions
2
votes
1answer
22 views
Updating contents in a custom webpart in a Discussion Board topic page
I have made a custom Visual Webpart. I'm wanting to periodically update a label in the webpart without refreshing the whole page. I've got the label to update, however it is also updating the replies ...
1
vote
0answers
14 views
How to create object of type SP.ListItemFormUpdateValue
How can i instantiate object of type SP.ListItemFormUpdateValue and initialize it to a List field so i can read the field values on client side?
If this is not posible, how can i read a value in a ...
1
vote
1answer
80 views
Default Sharepoint 2013 client-side people picker to current user
I'd like to be able to default the client side people picker for SharePoint 2013 to the current (or any) user.
I've read the "How to" MSDN document here:
...
0
votes
1answer
17 views
Add javascript to Discussion Board Topic page
I'd like to add javascript to discussion board topic pages. Thatis, the page that consists of a single Topic, and lists all the replies to that topic.
From google, I've learnt that I can add a ...
1
vote
1answer
50 views
ODataContentTypeException : Content Type 'application/json;odata=verbose'
I'm trying to create items in a SharePoint lists through the SharePoint REST API in Javascript (with an AJAX call using jQuery), all that in a SharePoint2013-hosted App.
But I get this error when I ...
0
votes
1answer
48 views
Programatically update profile field(s)
I have a requirement to update user profile fields. I'm able to query the fields, of course, using the CSOM API in Javascript.
But, as per here - ...
0
votes
1answer
79 views
SharePoint 2013 - Error “init.js failed to load”
I am new to SharePoint 2013 server and SharePoint designer 2013. When I browse SharePoint site in IE, I am getting the below error.
"init.js failed to load"
But when I browse SharePoint site in ...
2
votes
3answers
428 views
Analog of SP.UI.ModalDialog.showModalDialog function, but render to specific div
How to make the analog of SP.UI.ModalDialog.showModalDialog function, but render to specific div?
I need to render EditForm to div on page and set callback function. Something like ...
0
votes
1answer
72 views
SP2013 “_spUserId” is undefined
As we migrated our solutions and scripts from SP2010 to SP2013 my script ran into some weird error where I could not fetch the current logged in user with "_spUserId" anymore.
var user = _spUserId
...
0
votes
1answer
85 views
How to get URL of a document if I have the documents item ID (JavaScript)?
I am trying to create a Ribbon Custom Action in SharePoint 2013 that will e-mail links of selected documents in a document library. I can get the Item ID's of selected items, but how can I use these ...
3
votes
1answer
92 views
Updating a Property w/ 2013 REST Api
I have a sharepoint hosted app that is succesfully able to add Read and Create files on the Host site (using the REST Api and SP.RequestExecutor). Now I am trying to figure out how to update ...
0
votes
3answers
215 views
SharePoint-hosted app don't get my lists
I'm developing a SharePoint-hosted app for SharePoint 2013 (in Office365), but I've a problem accessing lists within a SharePoint-hosted app.
My code is well printing the lists, but it only show me ...
1
vote
1answer
45 views
Set TaskOutcome using JavaScript
I created custom task display form and need to add 2 buttons to allow user approve and reject task in display mode.
How can I set TaskOutcome value using JS?
My code is the following:
<td ...
0
votes
2answers
74 views
Changing “New Item” Text
I want to change the "New Item" text into "Yeni Ekle". I viewed the source of the list from browser. Here is the part of the New Item;
<a id="idHomePageNewItem" ...........>
<span ...>
...
3
votes
1answer
122 views
ScriptResx.ashx Not Working
I'm trying to use ScriptResx.ashx in an Application Page I'm building (just to test out the functionality) and every time I try to grab a resource from what should be a JavaScript object, SharePoint ...
0
votes
1answer
198 views
inserting multiple user /group to a list item of type spfieldUserValue
I have used following code to add users and groups to a list item of type SpFieldUserValue. it works if there is one single user or group in my client side people picker but if there is more than one ...
2
votes
0answers
118 views
Bug: JSLink on field/column breaks callout menu in Chrome, Firefox
I am trying to use JSLink+JavaScript to customize the rendering of a field. My very simple JavaScript code looks like this:
;(function () {
'use strict';
console.log('EmployeeFieldCSR ...
0
votes
0answers
140 views
current user is always is administrator on a SharePoint App
I have tried following solution to check the current user's permissions on the current host web in a SharePoint hosted app, however the user is always administrator.
function sharePointReady() {
...
1
vote
3answers
463 views
Modal popup error in sharepoint 2013
var options =
{
url: "http://siteUrl/_layouts/Page.aspx?ID=6",
width: 800,
height: 600,
title: 'Attach File',
};
...
2
votes
3answers
460 views
Can't upload a non-text file to SharePoint App via REST API
I am using the following REST code to add a file as an attachment to a SharePoint 2013 list item.
<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
<SharePoint:ScriptLink ...
1
vote
1answer
279 views
What is the purpose of SharePoint 2013 Site Content Type - “JavaScript Display Template”?
Under SharePoint 2013 Site Content Type - JavaScript Display Template Content Type is present, what is the purpose of the content type and how we use it?
2
votes
1answer
144 views
“500: Internal Server Error” when trying to add a simple text file as an attachment via SharePoint 2013 REST API
Using SharePoint 2013 REST API, I am trying to attach a simple text file to a list's item.
jQuery.ajax({
url: web.get_url() + ...
0
votes
1answer
132 views
Javascript in SharePoint:MenuItemTemplate
I have Created one aspx page and write in Main Content. I want to call SharePoint Modal Popup script on click event in sharepoint:MenuItemTemplate.
How can i call javascript for modal popup in in ...
1
vote
0answers
251 views
How to add the standard sharepoint list item context menu?
we have written a webpart that outputs titles of list items. We now want to add to each of those items the standard flyout menu (see the picture) below, but don't know how so far.
Can you help us out ...
1
vote
5answers
381 views
How do I Inherit the CSS Theme Color in my Sharepoint 2013 App?
I am building a Sharepoint 2013 App in Javascript / HTML / CSS and I want to implement / inherit the color / class / css used by the theme.
How do I do this?
I want to ensure consistency through ...
2
votes
1answer
112 views
Why is SP.js is not registering for Anonymous Users?
In SharePoint 2013 I tried:
ExecuteOrDelayUntilScriptLoaded(function () { alert("Hi"); }, 'SP.js');
But SP.js is not registering for anonymous users.
0
votes
0answers
175 views
Error while Updating Sharepoint 2013 List from Apps [closed]
How to update SharePoint Site list from SharePoint 2013 Apps ?? When we access list from app which is already create on site, Its giving error like access denied ?
4
votes
3answers
1k views
How to access list in SharePoint Hosted App?
I want to create an Sharepoint hosted app but how to access list in these App ??
4
votes
2answers
757 views
sharepoint 2013 rest api upload image
I want to upload image or create image in Sharepoint 2013 document library using rest api (Javascript)
my code to get bite array from input type file element is
var reader = new FileReader();
...
3
votes
2answers
264 views
calling click event on dynamic controls
What I have is fairly standard code for using JavaScript with SharePoint 2013. Inside the sharePointReady function, I have a few dynamic controls that are added to the page.
The problem is that when ...
1
vote
2answers
945 views
Sharepoint 2013. Add JS to NewForm.aspx of a list
how to place JS-code to NewForm.aspx of a list in SharePoint 2013 APP.
In sharepoint 2010 we can use this list definition to add JS:
<List ...>
<MetaData>
...
<Form ...
2
votes
2answers
893 views
How to access the documents in using javascript in SharePoint 2013 Preview?
I try to get familiar with with the Javascript API of SharePoint 2013 (Preview). Therefore I started a SharePoint-hosted app using VS2012. The default app works just great after deploying to my local ...
