Tag Info

New answers tagged

0

As state here. I used it and it worked for me! $(document).ready(function(){ var scriptbase = _spPageContextInfo.webServerRelativeUrl + "_layouts/15/"; $.getScript(scriptbase + "SP.Runtime.js", function () { $.getScript(scriptbase + "SP.js", function(){ $.getScript(scriptbase + ...


-1

The ASP.NET AJAX UpdatePanel control must change the page’s postback behavior to enable support for asynchronous post backs and partial rendering. However, in a SharePoint application, these modifications cause a JavaScript error. This is because SharePoint attempts to make a similar change. The SafeScriptManager control corrects the JavaScript problem. ...


1

To get terms with parents just set IsIncludePathData property to true, once you changed it to true you will get parents terms guid(s), remember only Guid(s) e.g. Label1|Guid1|Guid2(Level2)|Guid(Level1).


0

If you just want to view the methods and test against it, you can use SOAPUI. http://sourceforge.net/projects/soapui/


0

Programmatically, you can: Stick Visual Studio at it, it will create a method proxy with all the methods generated for you. Remember to select the option for "old style" web service. As a power user, you can: Stick InfoPath at it, InfoPath will show wizards and give you methods you can call. If you have Nintex Workflow, you can: Stick Nintex Call Web ...


1

In order to work with Oracle, You need to make sure following things. Oracle Client Installed on all SharePoint Server 64 Bit of oracle client installed make sure IIS also using the 64Bit. check this one


1

As per MSDN TitleResource is the source for Title property. Usually, setting Title property sets the value for the current culture. To set the Title value for multiple culture we need to use TitleResource.


0

I am having the same issue, and so far, the only resolution I've found is to enable anonymous authentication on the WCF service. It seems that SharePoint just won't do NTLM / windows authentication when calling the remote event receiver service.


1

The promoted links default size is 150x150 pixel. But you can always have bigger/smaller pictures and then manipulate the CSS for the promoted links if you want bigger/smaller tiles. Change the default tile size in Sharepoint 2013 Edit Add this to the bottom of the CSS before closing the style tag. .ms-tileview-tile-content img { ...


0

Goto your Visual Studio Solution Properties --> Set the Platform target as AnyCPU for Build option. It will fix the issue.


1

I recommend you start with this book, "Inside Microsoft SharePoint 2010". The first 4 chapters can be read online at MSDN this link: Book landing page: Inside Microsoft SharePoint 2010


0

siteURL = Main URl of the sharepoint (eg) "http://10.0.0.14:48487/"; documentListName = any of the folders in shrepoint (eg) Shared Documents documentName = name of the file (eg)sampleword.docx , readme.txt etc documentStream = the byte format of the file which we going to upload. (eg)byte[] bytefile = System.IO.File.ReadAllBytes(filepath+filename); ...


1

You can use: string value = (new SPFieldLookupValue(item["FieldName"] as String)).LookupValue


3

First one is wrong, because you can have only one Value child in Eq element. Second one is wrong, because you put your desired values in Type attribute. You've used correct syntax in first one: <Value Type='Text'>Ordered</Value> So the correct query is: <View><Query><Where><In><FieldRef ...


0

Yes, you can upload your file. Basically, for this kind of approach, .Net Managed Client Side Object Model (CSOM) is used. For that you need to manually add the Microsoft.SharePoint.Client.dll & Microsoft.SharePoint.Client.Runtime.dll reference in your project, so that you can use the ClientContext object of SharePoint which will allow you to upload the ...


1

There are few things we need to check. Is Outlook installed on your SharePoint 2013 server? If yes then, have you referenced it? Ways to reference the dll which is to be used in Application Page or else where Best Practice: If you are making a deployment .wsp for your project then place this dll in your package. Open up your SharePoint Project in ...


4

Set your CAML Query like this: ViewXml = @"<View><Query><Where><Eq><FieldRef Name=""Status""></FieldRef><Value Type=""Text"">Approved</Value></Eq></Where></Query></View>"


0

well, just try to adding View Scope='RecursiveAll'. have a look <View Scope='RecursiveAll'><Query><Where><And><Geq><FieldRef Name=\"ows_Created\" /><Value IncludeTimeValue=\"TRUE\" Type=\"DateTime\">2013-01-01T15:55:52Z</Value></Geq><Leq><FieldRef Name=\"ows_Created\" /><Value ...


0

Each WebPart should have its own ID, and you can iterate over all WebParts in the manager (I don't do backend, but conceptually the same as front-end) As for best pratice; don't mess with styles. Transfer all your display logic to CSS classes, and only set those Classes in your code. That way your presentation is a lot more loosly coupled with your backend ...


0

I found the solution for this problem myself. In Central Administration, Setup MySites, you have to enable the Enable SharePoint 2010 activity migration setting in the Newsfeed section in order to support SP1010 legacy activities in SP2013.


0

The In elements primary function is to find IDs or text values in e.g. Lookup, Managed Metadata, User, and Choice fields. You can not use it like you're trying to. For what you are trying to do, using an Or operator together with Eq would be adequate and preferred. <Or> <Eq> <FieldRef Name="Created" /> <Value ...


0

The order of the fields in the new/edit forms is determined by the order of the field links in the content type definition for the content type of the list. Here is the MSDN documentation on the JS SP.ContentType object. You can use JSOM to get the content type from the list, and it will have a property called fieldLinks that will give you a ...


1

You can grab the code from the FBA Pack: https://sharepoint2013fba.codeplex.com/SourceControl/latest#Visigo.Sharepoint.FormsBasedAuthentication/Visigo.Sharepoint.FormsBasedAuthentication/Layouts/FBA/MANAGEMENT/UserNew.aspx.cs


2

Why don´t you use "OpenBinary" Methode of SPFile, hold the stream in Memory and save it to the ftp-Server?


0

Hopefully you do LinqToSharepoint in the correct way. However, I guess, you have a List where the requests itself are contained My Question is: Why don´t you activate Attachments for that list? That way you have all the necessary files attached to the corresponding request-Item and do not have to make an separate Request


0

You can use Lists.asmx web service to get the data. Lists.GetVersionCollection returns the XmlNode for a field. You'll have to add the web service as a web reference to your VS project after which you'll be able to use it. See: MSDN Source


0

spChoiceField.Choices.Add(value); Solved by changing above line by following spChoiceField.AddChoice(value);


0

I had the same question. Maybe it helps. I hope it works on-premises the same way as in Office 365: Add document preview to Document library form


2

Multiple instances of the same App in SharePoint is not possible in same site. You can add multiple instances of an app part on a single page and in order to do that you have to follow the steps as you follow for adding a web part in a page.


0

I wouldn't recommend changing the ID, see this thread: List item with specific ID value As for the Modified and CreationDate and even Author, you may look to this blog: Pasted code excerpt from blog: #Add the SharePoint snapin Add-PSSnapin Microsoft.SharePoint.Powershell -ea SilentlyContinue #set the web url and the list name to work upon $url = ...


0

OOB properties are updated in a different way. The way you're trying is for updating custom properties. Use userProfile[PropertyConstants.PreferredName] and then try updating. See https://msdn.microsoft.com/EN-US/library/office/microsoft.office.server.userprofiles.propertyconstants_fields.aspx Update: Checking "allow user to edit property" for the user ...


2

This error occurs if you access quicklaunch while site is being created.Below code causes the feature activated code to wait until the site collection has been created before executing. using System.Threading; public override void FeatureActivated(SPFeatureReceiverProperties properties) { //Queues changes until after site exists. For use ...


0

Just want to describe how I solved this issue. I registered the app under AppRegNew.aspx and always get app token as null (web hosted in azure). Later I found that while registering your app you need to provide domain without "www", i.e. myapp.azurewebsites.net instead of www.myapp.azurewebsites.net. hph


2

you need to perform spWeb.update() for changes to be visible.


1

I figured out that there properties are disabled by design (really? lol). The values in the MachineIP column and in the MachineName column appear as NULL because of privacy concerns. By design, Windows SharePoint Services 3.0 works in this manner. I think is it possible to trace these information looking into IIS Logs. Auditing for a site collection in ...


1

Replace <Where> <IsNotNull> <FieldRef Name='CheckoutUser' /> </IsNotNull> </Where> with <Where> <Geq> <FieldRef Name="CheckoutUser" LookupId="TRUE" /> <Value Type="int">0</Value> </Geq> </Where>


1

Version 14 is for use with SharePoint 2010, Version 15 is for use against SharePoint 2013 instances (as SharePoint-Online is).


0

OK, some digging around. It would appear that the new Onedrive API is available under v2 on SharePoint Online, so the "classic" API is now on V1. This library doesn't seem to be aware of this and so doesn't append v1.0 for the URL. The following code snippet should sort it for you (as it has for me): var url = dcr.ServiceEndPointUri; const string version = ...


0

Answered here. used Microsoft.SharePoint.Client.File.SaveBinaryDirect http://stackoverflow.com/questions/17057074/how-to-download-upload-files-from-to-sharepoint-2013-using-csom


0

I found the below link very helpful. Try it. http://fixingsharepoint.blogspot.com/2014/07/how-to-move-sharepoint-list-items-to.html


0

You need to pass stream of Bytes or Byte array which you are supposed to save to the file.



Top 50 recent answers are included