Tag Info

New answers tagged

0

Please check below. Make Sure the Root Certificate Added into trusted Root Chain. Make Sure the internet access to the Store feature ACTIVATED Make sure your app domain works fine. Make sure App Management Service and Microsoft SharePoint Foundation Subscription Settings Service is started on your server. Make sure App Management Service Application and ...


0

Add ContentTypeId to your select. In an on premise SP 2013 environment I found this is an important key. To return the ContentType Name, it is not enough to expand the content type. You also have to include ContentTypeId in the select. In other words, this will not achieve the desired result: ?$select=Id,ContentType/Name&$expand=ContentType However, ...


0

You can develop the apps in the SharePoint Foundation 2013 but with Limitation. Even MSFT mentioned all the below features avaiable in foundation but limitation. They put 1 with it. 1 Means: Certain app authoring features require user profiles, which aren’t available in SharePoint Foundation 2013. Conclusion : Yes you can build the apps but not fully ...


1

Yes, you can run SharePoint 2013 apps in SharePoint Foundation 2013, but with some limitation, as Some apps may be written to leverage client side code that will only work in SharePoint Server. Those Apps won't work in Foundation. For example, an app that interacts with the User Profile Service wouldn't work in Foundation since the User Profile ...


0

User profile service is not available in the foundation version. You need to have SharePoint Standard or SharePoint Enterprise. SharePoint Server 2013 Features – Foundation vs Standard vs Enterprise Edit I see now that Microsoft states that you can develop apps in SharePoint Foundation. However, i can't see how you can follow the article for setting up a ...


0

I don't think these parameters are picked up from the QueryString. They are related to current selected item. https://msdn.microsoft.com/en-us/library/ms473643(v=office.12).aspx. Your best bet would be to write some javascript in the handler as described over here https://msdn.microsoft.com/en-us/library/office/ff458385.aspx Within the javascript ...


3

You can, however it'll require adding code to the parent page and utilizing window.postMessage(). You will have to add an event listener on the parent page to listen for the message, and then open the dialog: window.addEventListener("message", receiveMessage, false); var receiveMessage = function(event) { if (event.origin !== "your app") return; ...


0

Display Column settings are deprecated in the SharePoint 2013. Their is workaround suggest by one of MSFT support guy try it. create a page name p2 in Pages library, and check it in, then publish it. And try the powershell script below: $web = get-spweb http://sp/sites/retu $webpub = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($web) ...


0

Thank you, Ransher. Now it works by using your tip: function GetCurrentDisplayedMonth() { var date = new Date($('#myCalendar').fullCalendar('getDate')); var month_int = date.getMonth(); return month_int; } --Added code block


0

It is not recommended, but it can be done. I think there is a plethora of reasons why you don't want to do it: performance, security, etc. The whole point of it being a provider-hosted app is that it is provider-hosted, vs. SP hosted. There isn't any reason it can't be on the same server, but best practices are to separate those provider-hosted apps from ...


0

Sorry, but: NO In the end libraries are lists too, just "better ones" which Support files, but in the end they have the same functionality (Columns, Rights, ...). No way to remove their permission to add a document libray (at least in Office 365). All you could do is to hide the button using JavaScript (as mentioned above), but after all, the user is still ...


0

Since its SharePoint Online we don't have much option. Ideal solution is to update the Site Templates and remove it from there. To tackle this you can add following JavaScript code into <script type="text/javascript"> function AlterStorefront() { if (SP.Storefront != undefined) { var listedApps = ...


0

had got the solution of that.. changed "PublicToken" to "PublicKeyToken"


0

[EDIT: I see you want a coded solution, mine below is for OOTB with SPD but may help you? Not sure] This is typically done via calendar overlay, where a view exists for each type you want to color code differently. But this requires two lists, one is the "list where the data is" the other is the calendar. I am accomplishing this task by using a workflow to ...


0

There is not unless you build your own custom server side code with a REST endpoint exposure. The only front-end way to do it out of the box is through the workflow page for the list item and clicking 'End Workflow'.


0

I believe fixing below function can get you title function OnSuccessdoSomething() { var ListEnumerator = listItems.getEnumerator(); while (ListEnumerator.moveNext()) { var currentItem = ListEnumerator.get_current(); var Description = currentItem.get_item('Title'); $("#divDescription").html(Description); break; } ...


0

You can get he ID by: var ID = currentItem.get_id();


0

Refer this url for complete steps to achieve OAuth to a SharePoint Online Site. http://spshell.blogspot.in/2015/03/sharepoint-online-o365-oauth.html All the steps are explained in a simple way.


2

You're creating a Provider Hosted app, e.i. you're creating an app where the functionality is running outside SharePoint. The two options for which Visual Studio has build-in template support are ASP.NET Web Form and ASP.NET MVC, so it ask you to chose one of these. Visual studio then creates a solution with two projects, one for the App and one for the ...


0

If you're writing Apps, CSOM and REST are the APIs you'll have to use... Apps cannot interact with your SharePoint installation using the Server Side Object Model. In fact, if you're going with the SharePoint Hosted App model your only choice is to use the JavaScript flavor of the CSOM. It is not possible to directly use the solution framework to load XML ...


1

We have done this with multiple solutions without any problems. Create a new web application for the provider hosted app. Do additional configurations (https://msdn.microsoft.com/en-us/library/office/fp179901.aspx) and you are good to go.


1

I do things a little differently with my JSOM code. I have a generic function and use deferred variables. Here is a working example that I used CDNS for. You should be able to drop this into a page and it will show a fullcal(although not with some of the other functions you defined) <script ...


1

Lars gives a great answer above, but keep in mind that if your developer (or you yourself) create a "Provider Hosted" app, and then later decide to add a list or page or whatever to your app manifest, you will automatically end up with a hybrid between "provider hosted" and "Sharepoint hosted", and you will in fact have both an "app web" and a "remote web". ...


1

Get-SPAppInstance cmdlet along with another cmdlets are supported in SharePoint On-Premises only, they are not supported in Office 365. The following script demonstrates how uninstall App in SharePoint Online: Prerequisites: SharePoint Online Client Components SDK [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client") ...


1

Yes, it will access everything under neath it.If an app is granted permission to one of the scopes, the permission applies to all children of the scope. For example, if an app is granted permission to a website, the app is also granted permission to each list that is contained in the website, and all list items that are in each list. Only way when ...


0

The following example demonstrates how to: initialize SP.BasePermissions object from json object determine user roles using SP.BasePermissions.has(perm) Method Example: function getListPermissions(webUrl,listTitle,accountName) { var endpointUrl = webUrl + "/_api/web/lists/getbytitle('" + listTitle + "')/getusereffectivepermissions(@u)?@u='" + ...


2

See http://blogs.msdn.com/b/kaevans/archive/2015/03/23/using-openid-connect-with-sharepoint-apps.aspx where I explain that the app is anonymous by default but a user cannot access content because of the way that TokenHelper checks first for a valid context token. If a context token is passed, you use the context token to obtain an access token. If that ...


1

App Web - Site on which the App is deployed Host Web - Site on which the App is installed App web is in isolated domain but it is still inside the same site collection as host web. That is why your second request returned results. Now if you want to query cross domain data, we need to follow the syntax you have mentioned. Because this call will happen ...


0

I used the info from the same cited above https://msdn.microsoft.com/en-us/library/office/jj713593.aspx to get the full list of User info for the person in our 2013 farm. I was interested in just grabbing one name from the picker so I set schema['AllowMultipleValues'] = false; the reference article uses a function to get the UserID function ...


0

I have been using below function in multiple projects and it works well. private static bool AlterTask(SPListItem task, bool fSynchronous, string param) { int attempts = 5; int millisecondsTimeout = 100; Hashtable htData = new Hashtable(); htData[SPBuiltInFieldId.Completed] = "TRUE"; htData["Completed"] = "TRUE"; ...


0

After some more Research I was able to find an answer. Most of the examples I found online was regarding file upload from local Client, which implies handling of the local file, e.g. by the File API. Since I am Reading the file from a service, I don't need to consider this, and the result turned out to be simpler than I thought. The rough process is as ...


1

As described in Configure an environment for apps for SharePoint (SharePoint 2013) your DNS should be set up to have a wildcard CNAME for *.ContosoApps.com, where ContosoApps.com is the domain configured for apps (which hopefully match the obfuscated part of your image).


1

The following example demonstrates how to add Content Search Web Part using SharePoint 2013/Online CSOM API Prerequisites: SharePoint Online Client Components SDK var pageUrl = "/Pages/SearchResults.aspx"; var webPartSchemaXml = @"<?xml version='1.0' encoding='utf-8'?> <webParts> <webPart ...


0

One help in the above method you have used local hard drive ,can we pick .app file from app catalog or any other alternat not a hard drive or i am thinking of uploading the .app file to doc library of some other site collection and pick it up from there and install it to our site collection.


0

If you want to create a single page application (SPA) app usually you have to choose a client side framework. Here is very short review of common SPA frameworks: JavaScript SPA-Frameworks Technically Knockoutjs is not a SPA framework, but MVVM two way data binding technique for your UI, Durandal JS is a SPA frame work that is built on Knockout JS base. If ...


1

If I have understood your question correctly, Add the web part under edit page and also add the required js using the JS link. Now go to list settings -> Save list as template. The list will be now be saved as a template and it can be added under existing apps section.


2

For SharePoint-Hosted apps you'll indeed need one domain per farm! Otherwise you cannot setup your DNS to direct traffic to the respective WFE servers in different farms. You could go for domains like mydomainapps1.com and mydomainapps2.com - they do not need to be descriptive. See Technet for details: ...


0

Your code is attempting to read the list from the host web, not from the other site collection. You need to create another ClientContext for the other site collection, and use it to get the list object. var site2Ctx = new ClientContext("http://localsite:1234/site2"); try { var list = site2Ctx.Web.Lists.GetByTitle("list display name"); // do ...


0

Try to specify principal type for search Utility.SearchPrincipals(context, context.Web, "user name", PrincipalType.User, PrincipalSource.All, null, short.MaxValue);


0

You can follow a different approach .Rather than specifying list id or name in ELement.xml you can specify same thing in the code public override void ItemDeleting(SPItemEventProperties properties) { if(properties.ListItem.Title="Name of your list") { using (SPWeb web = properties.OpenWeb()) { try { ...


0

There are many reasons why an EventReceiver would not fire. According to my experience, one of the sneakiest reasons is that you are using a dll from another project, but, from the same solution. And if you didn't add the assembly for when the solution is deployed the EventReceiver using it would not fire because the dll would not load. If you haven't tried ...


1

TypeInitializationException is thrown when a static constructor throws an exception or when you try to access a class where the static constructor threw an exception. Look into it's InnerException property as that holds the details on the actual exception that is thrown.


3

Package a WSP Right click your project in the right column. Then click "Publish". A dialog will open, where you will get to choose where to place the resulting .wsp file. After clicking "Publish" your project will be build and then packaged in the selected location. Make sure to have the Solution configuration set to Release when building for production. ...


1

You have a controller function somewhere correct? Although you can use ng-init to create some data on Angular's $scope object, it is easier to reason about inside a controller function, and you can take advantage of Angular's two way data-binding when new data comes in through your getProperties function. <!-- html --> <div ...


0

You need to deactivate the app feature. You can remove the app from the site collection manually or with the powershell command. follow this link and also from the Recycle bins. You can Delete the app solution from App catalog and all the recycle bins i.e from site collection and administrators Recycle bin Then try to app again. There is no need to ...


0

Once I had the same issue. So I am glad to share my solution on this. This type of error can occur when Uninstall is not done properly. So you might find the app solution on the server which has the GUID (i.e. - 7e45bf41-75a6-4197-816f-8a43b03f338d). When you try to install that app on the server it shows as the installed app on the server. I don't know ...


0

You can't. SharePoint apps are not designed to be able to "talk together". Apps can share the same data source however. So you can update data in one app and the changes will appear in the second app. It's the same logic for AppParts. They cannot connect, but they can share the same data source.


1

That code will only run with credentials provided for a tenant administrator. It will not work against App-only policy. There is a User Profiles scope in the app permissions manifest, but, like the Taxonomy permission scope, it does not seem to actually do anything (in an Office 365 context, anyway). ...


0

You can write some code to dinamically change the view using SPView, for instance: SPList list = oWebsite.Lists["mylist"]; SPView view = list.Views["myview"]; view.ViewFields.Add("somefield"); if (view.ViewFields.Exists("otherfield")) view.ViewFields.Delete("otherfield"); view.ViewFields.MoveFieldTo("somefield", 6); view.Update();


0

View fields are Static. Means you can't change it dynamically. You can try couple of options Create a view and include all fields. Now use jQuery/JavaScript/JSLink to dynamically hide unwanted fields. Create a custom webpart - Use GridView control and select data source with dynamic fields. Here you will loose out of the box feature like Custom Actions ...



Top 50 recent answers are included