sharepoint-2013

SharePoint 2013 Document Library by using OpenBinaryDirect method I got remote server 401 unauthorized error?

依然范特西╮ 提交于 2019-12-13 08:38:25
问题 When I am retrieving the file from SharePoint 2013 Document Library by using OpenBinaryDirect method I got remote server 401 unauthorized error? Could you please help me how to rectify the problum 回答1: Provide online-credentials by using SharePointOnlineCredentials(username,password) class in your code Code: string username="xxx"; string password="xx"; SecureString ss=new SecureString(); foreach(char c in password) ss.AppendChar(c) clientcontext.credentials = SharePointOnlineCredentials

How to login in Office 365 from VBScript and browse through sharepoint with pascal script(?)

不想你离开。 提交于 2019-12-13 07:27:17
问题 I'm packing an Access application, This is connecting with a Sharepoint site. I'm using Inno Setup (With Pascal Scripts) for create an install package. So, I found this code for do something similar to that I want, when I run the code seems work fine: Open the browser, goes to Office 365, puts information (account and password), but just in the moment when open the cmd and after few seconds, all closes without finish the process. On Error Resume Next Const PAGE_LOADED = 4 Set objIE =

SharePoint 2013 - display the detail from a list item in a branded page, NOT the default SharePoint details page

我的梦境 提交于 2019-12-13 06:49:42
问题 I am a COMPLETE beginner when it comes to SharePoint! So, forgive my lack of knowledge. I'm sure the answer to this question is probably in a million different places on the internet somewhere. I trust StackOverflow for the best answer...! I have a SharePoint site collection that will eventually be an internet site. It is custom branded using HTML master pages and page layouts. So, I want to create a list and use that as an Announcement list. The title will be a link that, when clicked, goes

SharePoint JavaScript CSOM: Best way to deal with Lookup fields?

天大地大妈咪最大 提交于 2019-12-13 06:41:25
问题 I'm new to CSOM (I've used SPServices up to this point), and I'm trying to learn the basics to getting list items. I have a list with lots of columns, several of which are lookups to other lists. When I try to get and print out one of the lookup columns, it comes out as [Object object]. I'm guessing that the lookup fields are getting returned as objects that contain the whole entry from the lookup list. Is that correct? If so, what's the best way to get the fields that I want to display from

How to move list item into folder in Sharepoint online

妖精的绣舞 提交于 2019-12-13 05:25:11
问题 I created a folder and have some item in this list. So now how can I move list item into folder using JSOM. I know user can drag/drop, but I want when user create a list is always move to folder automatically. 回答1: The following example demonstrates how to move a list item into folder via SharePoint JSOM API: var listTitle = "Requests"; //list title var itemId = 1; //list item id var targetFolderUrl = "/Lists/Requests/Archive"; //target folder server relative url var ctx = SP.ClientContext

Read content of SP.File object as text using JSOM

天涯浪子 提交于 2019-12-13 04:33:30
问题 as the title suggests, I am trying to read the contents of a simple text file using JSOM. I am using a Sharepoint-hosted addin for this, the file I am trying to read resides on the host web in a document library. Here's my JS code: function printAllListNamesFromHostWeb() { context = new SP.ClientContext(appweburl); factory = new SP.ProxyWebRequestExecutorFactory(appweburl); context.set_webRequestExecutorFactory(factory); appContextSite = new SP.AppContextSite(context, hostweburl); this.web =

SP.Web.getFileByServerRelativeUrl(fileUrl) not working

落花浮王杯 提交于 2019-12-13 02:48:34
问题 I am using SP.Web.getFileByServerRelativeUrl(fileurl) function of sp.js library. My site hierarchy is like this Host Web App1 Web DocumentLibrary1 App2 Web wher App1 Web is a web created by my sharepoint 2013 app 1, and App2 Web is a web created by my sharepoint 2013 app 2. In app2 i try to get a file from App1 Web->DocumentLibrary1. here is my code var ctx = SP.ClientContext.get_current(); var appctx = new SP.AppContextSite(ctx, 'hostweburl/app1'); var file = appctx.get_web()

Table text gets extra spacing after running through word automation services

不打扰是莪最后的温柔 提交于 2019-12-13 02:38:14
问题 I'm generating a document from a bunch of template documents and in addition I'm adding some tables as html altChunk s (because it's a lot easier than trying to create a table with OpenXML). This all worked fine and gave me the result I wanted. But, because of some deficiencies with the way altChunk were being processed by some versions of Word (especially on the Mac) and the inability to automatically update the TOC, we decided to set it up to run our reports through word automation services

Missing “Deploy”-Button Visual Studio 2012

坚强是说给别人听的谎言 提交于 2019-12-12 18:24:14
问题 Yesterday I have installed Visual Studio 2012 Premium on my SharePoint 2013 Development Machine. I also installed the Office Developer Tools to get the SP2013 Project templates. Opening my SP 2010 Solution File and converting to 2013 was successful. My problem : There is no "Deploy"-Button in the Project-Context-Menu anymore. Everything is there: Build, Rebuild, Retract etc. But no Deploy . Asked this in the SharePoint Forum too 回答1: I had the same problem. I started by creating some

Error deploying visual web part to SharePoint 2013 (Activate Features)

你说的曾经没有我的故事 提交于 2019-12-12 14:01:45
问题 I'm trying to deploy a simple web part to SharePoint 2013 using Visual Studio 2013 and I am getting the following error: Error occurred in deployment step 'Activate Features': Feature with Id '....' is not installed in this farm, and cannot be added to this scope. Spent a long time trying to find a solution to this. Several blogs and forums talking about it and giving different solutions (none worked for me). Feature scope is set to site, and solution is not set to sandbox. Deployment works