Tag Info

New answers tagged

1

You can install a NAPA App on-premises, but (as always in SP, there's a but somewhere in the phrase): Your on-premises environment must be configured for Apps (Application services provisioned, catalog site created, wilcard DNS name registered, maybe IE zone settings set-up, ...). See articles like ...


0

Assuming you've setup the add-in environment in your on premise server and your on premise server is running SP 2013, you should be able to use your NAPA developed add-in on your on premise environment as well.


0

Yes, NAPA developed Add-Ins work in all SP2013 environments, On-Prem and Online. SP2010 (and earlier) do not have any add-in capabilities. Note that using IFRAME technology your end users (administrators) might have blocked external access to your (external) URLs


0

Provided that the target environment is still SharePoint 2013, you should be able to install whatever app you built into the catalogue -- if you used some new feature that is only available in modern releases of SharePoint online you may have a compatability issue, but that would vary based on the specific features you used in your application.


0

If your list is ExternalList and you are trying to query list items via SP.CamlQuery and Sharepoint returns error "The given key was not present in the dictionary" then you have to specify all fields in the ViewFields collection (in SP.CamlQuery). Please see this blog for more details.


4

CSOM and the REST API include the WebProxy for these operations. Query a remote service using the web proxy in SharePoint 2013 Code sample: $.ajax({ url: "../_api/SP.WebProxy.invoke", type: "POST", data: JSON.stringify( { "requestInfo": { "__metadata": { "type": "SP.WebRequestInfo" }, "Url": ...


-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. ...


0

I found a work around but is there any way better ? //fix issues with chrome ctrl $('body').on('click', '.ms-core-menu-root', function () { $(this).attr("href", "javascript:;") });


1

Since search results are just JavaScript and HTML you could create a Control Template and Display Template that presents your results, then add your own feature to Export the data. Look at something like this sample: http://dhtmlx.com/docs/products/dhtmlxGrid/samples/12_initialization_loading/13_pro_load_csv.html Any JavaScript that can serialize the data ...


2

Depending on your specific requirements, the easiest way is probably to use BCS to create external content types that link to your MySQL data. Your SharePoint hosted app can then read/write that data more or less as if it was a standard SharePoint list. The benefit of this approach is that it is quite quick and easy to set up. The downside is that it may be ...


2

Has nothing to do with SharePoint. If you configure the server your MYSQL database runs on to accept Cross Origin requests you can access it from any environment. A https connection is preferred, but not required when you manually instruct your browser to allow mixed content. A REST middle-tier like ArrestDB in your stack simplifies access. You are ...


0

I found the solution: As long as a Package\Package.package is included in the Visual Studio project, an app web will be created. It seems like a bug, but it was not possible to remove or delete the folder with Visual Studio. So I deleted the Package folder using Windows Explorer and removed the specific lines from my .csproj file. Now the package isn't ...


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

You can add the page viewer webpart to the page and link the new form url: URL: http://www.yoursharepoint.com/Lists/surve/NewForm.aspx?Source=http%3A%2F%2Fwww%2Eyoursharepoint%2Ecom


0

This might be problem in Security Token Service.Go to IIS and to SecurityTokenServiceApplication(Web application). Click on test settings and see if same error is displayed.


0

Remove the semi-colon from your jquery definition tag. It should look something like: <script src="//code.jquery.com/jquery-1.11.3.min.js"></script> Text between tags that should reference external scripts will mess things up.


0

You might use JavaScript / jQuery to change the logo on the fly: $(document).ready(function () { ChangeLogo(); }); function ChangeLogo() { $(".ms-siteicon-a img").attr('src', '../Images/logo.jpg'); }


0

You can see the use of ClientId and ClientSecret in the TokenHelper class: https://github.com/OfficeDev/SharePoint-Power-Hour-Code-Samples/blob/master/SP.SiteCreatorWeb/TokenHelper.cs


0

You can enable the view selector for the list view web part: Edit Web Part Expand Miscellaneous Uncheck Disable View Selector Menu Click Apply Save page Note that changing views this way directs to the view page; the user will not remain on the page.


0

In order to change the view on a list that you have added as an app part to a page you would: Edit the page Hover over the upper right hand corner of your app part, click the down arrow that appears and choose "Edit Web Part" A dialog box will appear to the right of all your page content. In this dialog box there is a drop down box under the Selected View ...


1

I don't think there is a way to query Search via app-only permissions. As a workaround you could use stored credentials and execute the Search using that context. But you need to understand that Search relies on a proper user context to function properly. Unless your security implementation is really simplistic you are likely to see issues where users see ...


1

I guess the application pool is running under that user. If you Login to your Site with the same (managed) account the web application is running under, it will identify you as "System Account".


0

You need to change the column format on the list settings to specify the decimal places you'd like.


0

I will try to answer your first question first: The error you are posting is just a generic message that can be displayed because of several causes. Please take a look at your ULS logs and tell us which is your issue in detail. Here the solution to two of them based on ULS information: 1) App Management Shared Service Application Proxy not installed 2) ...


1

If your SharePoint site is using SSL, Have you configured DNS and SSL for SharePoint 2013 Apps? If No, then follow below steps for that. Part 1: DNS Configuration Step 1: You will need to acquire an app domain. It is strongly recommended that this domain is separate from your site’s domain. For example: Example Site = mytestsite.onfpweb.net ...


0

<script type="text/javascript" src="filelink/jquery-1.6.1.min.js"></script> <script type="text/javascript" src="filelink/jquery.SPServices-0.6.2.min.js"></script> <script language="javascript" type="text/javascript"> var getListCalender = document.getElementById('CalenderListDrop').value; var spHostUrl = ...


0

I resolved the issue by upgrading the app using powershell with farm admin account. Farm admin account was able to trust the app and he able to upgrade the hosted app.


0

It is definitely a mess but I figured it out. I decided to just use a app property eventually and make the user enter the url, but here's the answer for the above. var blogUrl = appUrl + "/_api/site/rootWeb/webinfos?$filter=(WebTemplate%20eq%20'BLOG')"; That will get all the blog sub sites and from within that you can iterate through and get all the ...


0

Access Denied error message suggets that you don't have enough permission to do it. I am just speculating but I think you need to grant full control permission on the list and web for the app.


1

The following example demonstrates how to count the number of occurrences of values in column: var counts = {}; items.get_data().forEach(function(item){ var fieldVal = item.get_item('<fieldName>'); counts[fieldVal] = (counts[fieldVal] ? counts[fieldVal] + 1 : 1); }); Complete example ExecuteOrDelayUntilScriptLoaded(renderChart, ...


0

Nevermind, changed var hostWebContext = new SP.ClientContext(PoxtaOnline.Utils.Url.getQueryStringParameter('SPHostUrl')) for var hostWebContext = new SP.AppContextSite(context, PoxtaOnline.Utils.Url.getQueryStringParameter('SPHostUrl')) and changed this hostWebContext.load(asyncObjects.sectionGroup); hostWebContext.load(asyncObjects.sectionList); ...


0

No way of doing it dynamically OOTB as far as I know.. I have a situation where I need to be flexible about SQL table changes and I use editing of existing content type instead of creating ECT again from scratch every time the table changes.. You can edit your existing content type like this: Open external content types in your sp designer Open the ...


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.


1

Apparently the app web is provisioned just like yet another sub web. I.e. it only gets the primary language enabled by default. So after the app has been installed to your site, you need to go to the mui-settings page: <appweb>/_layouts/15/muisetng.aspx and activate your secondary language. After activation SharePoint works as expected: it picks up the ...


2

I have never tried any short cut keys for this but, there is certainly a way to comment a block of code. <# $site = 'http://yoursite' $credentials = Get-Credential $context = New-Object Microsoft.SharePoint.Client.ClientContext($site) #>


2

Mark the lines which you want to comment with Alt+Shift+Up/Down and then press '#'. To uncomment hit 'Backspace'. A nice undocumented feature :) Or use: <# #>


0

Add client app part to sharepoint site page. open site page in sharepoint designer. It will show you feature id ,product id and all other details.


0

You can use ISO 8601 format (YYYY-MM-DD) for dates. The following will work: 2015-08-11 2015-08-11T12:40:16Z If you are in chrome, using a date input (<input type="date" />), then it will always return it in ISO 8601 format. If not, and you're using a JavaScript library to create a datepicker control, then check if they have a format options. ...


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


0

Create an isolated app domain on your development computer Microsoft has provided also some PowerShell command to configure your SharePoint (link). Start the SharePoint 2013 Management Shell. a) net start spadminv4 b) net start sptimerv4 Create your isolated app domain your apps, for example "apps.developement.local". a) Set-SPAppDomain ...


0

To provision artifacts like site columns, content types etc. in host web using provider hosted add-in (previously app), you need to use CSOM/REST approach. Office PnP has few demo on this. Check below links: SharePoint-Add-In-Recipe-site-columns-and-content-types Core.ContentTypesAndFields ECM.DocumentLibraries


0

After lot of searching I came to the conclusion that an App/Add-in can have either permission scoped to the host web(site collection scoped) OR scoped to all site collections(tenant scoped). So it is either all or 1. I had to go with tenant scoped Write permission with CSOM code to do the job (using Remote timer job pattern : ...


0

Can you not start an out of the box approval task and build it into your sequential logic? The other way would be to create some hidden fields to use them as triggers, even just a "flow" variable that works out the point in the business logic that you are currently at and has a final end point. You could then do one of two things, you could create some ...


2

The site collection should be based on "Developer Site" template or you have to enable sideloading feature if it's not, you can check this.


0

What version of SharePoint is the tenant you are having trouble with? You can find this in the response headers on any request (e.g. MicrosoftSharePointTeamServices: 16.0.0.4121)



Top 50 recent answers are included