Tag Info

New answers tagged

0

This post resolved my problem. I have used the jquery plugin jquery.timeago. You can download it from here


0

It is resolved by making a separate page for client app part. When we create a new client app part page and create new query string there, then SharePoint appends those specified query to the client app part page and not on the start page of App.


0

I have found two different approaches for this, depending on what you're trying to see. The list you created in the sharepoint app is in the app web, not the host web, so it makes sense that you can't see it in the host web contents. To view lists, files and folders in your app structure, you can use the sharepoint REST api in the browser. This will return ...


0

I guess the column is not added to the default content type on the list. Make sure it is added because when you click on New Item, it opens the form against the default content type.


0

As you are using Allow Management of content types your are grouping up the columns in a content type, so for each content type separate new form would be appeared . For example I have enabled Allow Management of content type And columns are from two different content type like 1.Item 2.Holiday so now two different set of columns are there , to ...


0

I've received this error whenever I have invalid xml in my custom ribbon. To validate that the error is relating to this ribbon custom action, you can remove it from the app and try and deploy it. Once you have confirmed this, it is a matter of idiot-checking your xml for errors. Your error may be in the CommandAction. If the commandAction Url points to a ...


0

The client context will authenticate as the user executing your code. This may be your local system account, depending on how you are running it. You can use Task Manager to locate the process and see what account identity it has. Whatever identity the code is running under, that account must be added as a User in your site (go to Site Settings-> Users ...


1

SP.Field.title property returns display name of the field based on the language that is used on the current site (SP.Web.language property). So, i believe that your assumption: It looks to me like get_title() returns the Locale DisplayName of the App Web instead of the Host-Web.. is correct. In order to return field display name for specific ...


0

I solved my problem with adding all dll references which are dependent. Owin, Newtonsoft.JSON, Microsoft.ASPNET.SignalR.* like that... It works now


1

Your SharePoint Servers are your "app" servers. You will create a wildcard CNAME record in your app domain that points back to your SharePoint server DNS record. Make sure that the the farm that receives it does not have host headers configured on the webapp that the requests will be delivered too. On production using SSL you will have to extend or ...


2

In case you're doing development on your machine, I guess that's a case where you have a loopback check, you can get around this problem in a couple of ways, please refer to this article. The easiest one for you would be to just disable it since you're only doing development on your local machine.


0

It turned out that the solution was very simple, the Sharepoint Client Dlls, were not set to Copy Local True, it was false. Changing this flag fixed my problem. ...


1

According to Reflector SPClientCallableSettings.RequestUsageExecutionTimeThreshold property set or gets time threshold value in milliseconds. If CSOM request time execution exceeds this value, then additional information is saved into ULS logs


1

this is a property from Microsoft.Sharepoint.Administration you can check these links for more information https://technet.microsoft.com/en-us/office/microsoft.sharepoint.administration.spclientcallablesettings.requestusageexecutiontimethreshold https://technet.microsoft.com/en-us/office/microsoft.sharepoint.administration


1

Since SharePoint JSOM is async by its nature, i would recommend you to consider the following approaches. Callback approach The following example demonstrates how to perform a chained requests for loading of list items using JSOM: function getListItems(listTitle,success,error) { var ctx = SP.ClientContext.get_current(); var list = ...


0

Just add German localization in a Visual Studio for your app. Double click on AppMinifest.xml. Add localization tab. New Resource file will be created. You can leave it empty. Then re-add your app. And now all should work fine.


1

I resolved this problem by installing Window Foundation Identity. You can download this from here and download only x64 msu.


1

Sounds like you need promises which are in many ways the JavaScript equivalent of the Task class in .NET Using jQuery promises your getList code would look something like this. function getList(listName) { var def = new jQuery.Deferred(); var hostUrl = decodeURIComponent(getQueryStringParameter("SPHostUrl")); var currentcontext = new ...


4

They are not in the 15 hive. Any files needed by a SharePoint hosted app would be provisioned to that app's app web, which means they would ultimately be stored in a content database, not in the 15 hive. Here are a couple MSDN articles on the app model and the difference between host webs and app webs. Here also is a very helpful series of blog posts by ...


0

Solved the problem by setting the view names to something like "{View1}","{View2}" etc. and changed them to proper, localized names using CSOM on first app launch.


0

I found out. In this case, I had a custom service application connection setup for the web application. The App Management service application was not created before the web application, so the web application was not connected to the app management service. I edited the service application connections, and then everything was good.


0

Direct path not exists, but you can use the JavaScript function window.postMessage(...). It works as follows: (ex. add new SP item from app part) Child window (on APP) send messege - some serialized JSON object with properties e Parent window (on SP) dispatch message and open dialog using client api Catch dialog result on parent window (on SP) and send ...


0

I think the problem you are facing is related to the throttling rules of SP2013. I think you need to modify the and configure Request Management of the servers in the farm. I think this is a good article for and will hopefully resolve your problem http://www.harbar.net/articles/sp2013rm2.aspx Cheers.


0

I often get this message and find I can solve the issue temporarily by going to my internet explorer Settings via the menu options - Tools / Internet Options / Connections / LAN Settings / deselect the Automatically Detect Settings option box and click okay. My system auto reverts my change every so often thus requiring me to redo the option change. ...


0

Solved it. We can achieve it by injecting a static HTML (which we can get from an already rendered Quicklaunch) into the "sideNavBox" div using jQuery.


0

With the help of Microsoft I found that on postback the function GetContextTokenFromRequest(HttpRequestBase request) cannot find any value in request.Form neither in request.QueryString for "AppContext", "AppContextToken", "AccessToken", "SPAppToken" We temporary solved this issue inserting an HiddenField and then inserting a value in the Page.Load: ...


-1

Problem resolved, I just needed to install the English language.


-1

This is actually a question about AD. Although I do not know the exact API, what you are looking for is how to do user maintenance in WAAD. MSoft just released a bunch of new O365 Apis and I am sure WAAD apis were included. Once you find and test that Api, you should be able to call it from a SP Provider-Hosted app (assuming a credential with appropriate ...


1

REST /_api/Web/SiteUsers JSOM var ctx = SP.ClientContext.get_current(); var users = ctx.get_web().get_siteUsers(); ctx.load(users); ctx.executeQueryAsync(function() { var userArray = []; var e = users.getEnumerator(); while (e.moveNext()) { userArray.push(e.get_current()); } console.log(userArray); });


0

In this case list = listCollection.getByTitle(LIST_NAME); would become list = listCollection.getByTitle("UserInformationList"); or list = listCollection.getByTitle("User Information List");. That is the underlying list where the users are stored.


0

If you are in an app you can use the following use this code to get hostweburl and appweb url var hostweburl = decodeURIComponent(getQueryStringParameter("SPHostUrl")); var appweburl = decodeURIComponent(getQueryStringParameter("SPAppWebUrl")); function getQueryStringParameter(paramName) { var params = document.URL.split("?")[1].split("&"); ...


0

I have seen the RedirectionStatus.CanNotRedirect pop up when the app fails to set up the SharePoint client context correctly. This can happen when the query strings are not set properly (or at all). Your app part requires some info, such as the SPHostUrl, that are passed to your app part from SharePoint via the query string. It looks something like this: ...


0

Only creating a new package with version 1.0.0.2 and update again is OK. Downgrade is only possible by using a script when you will need to go through all the sites and remove the app (1.0.0.1) and re-add 1.0.0.0 (crazy)


0

You need to use SPSiteDataQuery instead of SPQuery. MSDN link However, The CSOM does not provide a mechanism for querying data across multiple lists that are not associated by a lookup field. In other words, there is no client-side functional equivalent of the SPSiteDataQuery class. If you need to perform a cross-list query from client-side code, ...


0

The reason this is happening is because the property "Display this site on the top link bar of the parent site?" has been set to true when creating a sub site. If this property of the sub sites is set to false, they won't appear in the top navigation bar of the parent site.


2

Please check Service Bus connection type. At the moment there are two types of connection: SAS and ACS. To debug remote event receivers you should use ACS connection type. You can check connection type in Azure Portal. Unfortunately, you can't create ACS connection within Azure Portal. You can create ACS connection with Azure Powershell. ...


1

From msdn: Important: You cannot change the app type using the update system. For example, you cannot change an app from SharePoint-hosted to provider-hosted with an update.


1

You cannot change the app type using the update system. For example, you cannot change an app from SharePoint-hosted to provider-hosted with an update. - msdn


1

If you really want to know that your event receiver was not triggered, then you can create workflow, that will request your "special" service (url) to ask it about latest triggered information.Yes, it may sounds stupid :) but it should work. But I think that you should find reason, why your trigger was not fired. I wrote two full step-by-step articles (with ...


2

You can use Virto Social Aggregator Web Part. It's web part for aggregating and effective displaying posts Twitter and Facebook.


2

If you want to have js and css files copied to SharePoint after editing the ts and less files then you can use the Visual Studio Extension SPFastDeploy to do that. https://visualstudiogallery.msdn.microsoft.com/9e03d0f5-f931-4125-a5d1-7c1529554fbd


2

I think you are mixing up a few things in there. In SharePoint there is not an out of the box method for scheduling workflows. You can for sure get creative with multiple lists and looping actions - but this set's you up for trouble in managing that type of solution. You will either need to consider a custom solution - or look to a 3rd party tool, such as ...


1

Provider-hosted apps Provider-hosted apps for SharePoint include components that are deployed and hosted outside the SharePoint farm. They are installed to the host web, but their remote components are hosted on another server. Choose patterns for developing and hosting your app for SharePoint


1

Here's some links that might help you understand better and get started: https://msdn.microsoft.com/en-us/library/office/fp142381.aspx and https://msdn.microsoft.com/EN-US/library/office/fp179923.aspx And to better answer the question, provider hosted apps are applications that run in a server that is external to SharePoint's. It has its own infrastructure ...


0

First the reason why you are not getting the data in jsonObject.d.results is because you are explicitly asking for only one file. It is send only when a collection is requested like list items. Second change the REST endpoint URL not to have ListItemAllFields. You will be able to access the Name property also along with title. Your endpoint should look like ...


1

I found the solution I was looking for: Instead of modifying the Url's inside the Forms element you can add a FormUrls element inside the ContentType element. Here you can specify the three Url's relative to this content type <ContentType ... <XmlDocuments> <XmlDocument ...


0

I don't think you're facing a SharePoint issue since this is happening as you try to publish. Nothing related to SharePoint at this point. You might have more success tagging this with Azure.


0

You should have more success setting the DisplayForm, EditForm, and NewForm urls if you set them on a custom content type. When you use the OOTB forms, it will redirect the user to the appropriate form for the content type. You can set it using SharePoint designer or PowerShell.


0

Yes it is possible to create provider hosted apps in a VM which already has SharePoint installed. If you target the on premise SharePoint, this type of app is called High trust app. A high trust provider-hosted app can establish trust with SharePoint by using digital certificates. For more information see this: ...


0

Yes you can create and run a provider hosted on the same machine as the SharePoint installation. This kind of provider hosted app where SharePoint and app will be on premise and you will be calling server-to-server is termed as a high-trust app. There are a few steps you need to carry out in order to get this working eg. setting up trust between the app and ...



Top 50 recent answers are included