Questions tagged [sharepoint-hosted-app]

A SharePoint-hosted app may provision basic resources into its app web such as HTML/CSS/JS files, site column/content type/list definitions, etc. Under no circumstances can server-side code run within a SharePoint-hosted app.

Filter by
Sorted by
Tagged with
4
votes
1answer
508 views

Call Javascript code in Custom Ribbon Action for office 365

I want to call my javascript code in custom ribbon action in SharePoint online. I tried this code. <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas....
2
votes
1answer
267 views

How to debug the sharepoint web proxy

I am using the sharepoint web proxy to call the AAD token endpoint web service in Azure. When I do the call, the response calls my error callback with a jqXHR object that contains the following: { ...
0
votes
2answers
287 views

Error occurred in deployment step. Cannot connect to the SharePoint site:

While creating a new App For Sharepoint, in Sharepoint Site URL Validation Form. When we click the Validate Button the following error is shown: Cannot connect to the SharePoint site:'http://...
3
votes
0answers
135 views

How to create custom action using SharePoint hosted app

Is it possible to create "custom action" under the "Site Action" menu in "HOST WEB" using SharePoint Hosted App.? We do not want to follow the native method of packaging all the necessary files ...
0
votes
1answer
73 views

Does a Sharepoint 2013 Online hosted Add-in have to create an app and app site?

Based on these Guides: https://dev.office.com/docs/add-ins/overview/office-add-ins https://msdn.microsoft.com/en-us/library/office/fp142379.aspx Is it possible to create a SharePoint Online 2013 ...
0
votes
1answer
82 views

Specify a Root Path of hosted app for script links in SharePoint hosted app?

I'm writing script reference in custom master page, and don't want to change the scripts for subfolder pages. Is there a way to make the path relative to the root directory? for example: <link ...
2
votes
1answer
189 views

What is the best way to add JSLink inside form tag

I am trying to add JSLink insided for tag in my SharePoint Hosted App, Here is Form tag code <Form Type="NewForm" Name="{878B105CA-A7O8-7C28-HD7F-5B0DCBA7DSA}" SetupPath="pages\...
1
vote
1answer
469 views

office365- Uncaught TypeError: Cannot read property 'split' of undefined, querystring parameter fails

I created an SharePoint Hosted App in this app I am using Two form for saving data into list. When I click on save button to save data into list data is saved into list and redirect to another page ...
0
votes
1answer
65 views

ListInstance with predefined data in Field tag of Element.xml gives an error

I am trying to add data in Field tag like <Data> <Rows> <Row> <Field Name='Title'>Configuration</Field> <Field Name='JSONData'> { "URL":"https:/...
-1
votes
4answers
6k views

How to add script reference on master page?

I have applied master page using JavaScript in my SharePoint Hosted App. This script reference is added on default.aspx. Now I want to add script reference on master page which I have applied so that ...
0
votes
1answer
65 views

How to remove content editor after first load of any page

Any one knows how to remove content editor after first load. I want to load the page with content editor for the first time but after page refresh the content editor should be removed from the page. ...
0
votes
1answer
2k views

Is it possible to write any c# or server side code in SharePoint hosted app?

I want to render some code dynamically so is it possible to write any C# code in SharePoint hosted app environment? And if not, then what are some alternative approach to achieve such goal?
3
votes
1answer
262 views

JSLink in form tag is not working from schema.xml in my SharePoint hosted app

In the app ,for schema here is my code from schema.xml <Forms> <Form Type="NewForm" Name="{65B105CA-E7D8-4B28-8C9F-5B0DCBA7E0CA}" SetupPath="pages\form.aspx" WebPartZoneID="Main" Url="...
0
votes
1answer
1k views

'Install app for SharePoint': Access denied

We get the following error when trying to deploy a SharePoint hosted app in SharePoint Online. It worked fine till yesterday. Install app for SharePoint: Uploading the app for SharePoint... ...
1
vote
1answer
352 views

How to create custom master page in visual studio for SharePoint hosted app

I want to create master page for my SharePoint hosted app and apply it to all pages. please suggest the help
3
votes
2answers
2k views

Attaching Remote Event Receiver to host web list without using azure ACS connection string in Provider Hosted App SharePoint Online

I am trying to attach an Remote Event receiver in Provider hosted app for SharePoint online.I don't want to use azure account ACS connection string.Somehow i was able to find the solution and i ...
-1
votes
1answer
1k views

Getting list items in SharePoint Hosted App for Office 365

I want the code snippet for Getting the list items and Show it in the App page. I'm creating SharePoint hosted app for Office 365. How do i get the list item values? Thanks in Advance
0
votes
0answers
214 views

403 Forbidden - while updating list items through sharepoint hosted apps

an above snap item updating calls GET Items which need to be updated but got 403 Forbidden error in sharepoint hosted apps. My Apps and list in the same domain. i took reference from this side for ...
0
votes
1answer
40 views

Sharepoint hosted app to replace search center

So I've finally got the search CSOM to give me results back in my sharepoint hosted add-in/app. I can install/deploy it out, I can even add it to our catalog. I can then add the app in the site ...
0
votes
0answers
287 views

Provisioning site collections with SharePoint Hosted App

I referred to the Office Dev PnP code on Github to create Site Collection in my O365 environment. This code uses CSOM to create site collections as a provider hosted app hosted on Azure platform. ...
3
votes
0answers
42 views

SharePoint Hosted app and document

I am creating a SharePoint document center application in which I want to achieve the following: We will use the SharePoint screen and will show the list of documents over the SharePoint site. I ...
0
votes
1answer
380 views

“Page can't be displayed” and Admin must enter credentials for local app domain (DNS is correct I think!)

SharePoint Server is a Windows Server 2012 R2 and contains the Active Directory, SharePoint and SQL Server 2008. Local domain is: test.local SharePoint host name is: sharepoint (in domain sharepoint....
4
votes
2answers
685 views

modify sharepoint hosted app files without having to redeploy app

I have a SharePoint Online hosted app that I'm building that is an angular app. Typically i start the app out by doing all the angular UI stuff just using local development so I am able to easily ...
3
votes
1answer
606 views

How to query data on app web from host web

I need to query a list located inside a SharePoint hosted app, when located on host web, using JavaScript (REST preferably). I control both app and host. It's possible to communicate with an app ...
1
vote
0answers
95 views

SharePoint-hosted SharePoint Add-in Features deployment

I'm digging for a while into SharePoint-hosted SharePoint Add-in Features deployment, but I'm still dealing with some core questions. I can write a UI add-in, consuming the REST API on any hostweb, ...
3
votes
1answer
280 views

Access host web data from a SharePoint add-in

I am writing a SharePoint add-in to add list items to a host web list. I use an AppContextSite object to fetch the list and add an item to it. I then try to do an appSiteContext.load(listItem) call ...
2
votes
0answers
621 views

Rest API calls from provider hosted apps

Here is the scenario. We have a product built on linux systems and the data is available through REST API. The web application which is built on JAVA is also hosted on the same environment. Few of ...
0
votes
1answer
657 views

HTTP 401 'Unauthorized' In SharePoint Hosted app

Can we use Cisco based Custom web service in SharePoint-hosted app on Office 365? My requirement is get items from Cisco based Custom web service and display items in SharePoint Environment (Office ...
1
vote
1answer
48 views

Read subsite list items through Sharepoint HostedApp

In SharePoint Hosted-App, I want to read specific list items from all subsites. I can get into subsites, but when I tried to read specific list items, I couldn't. My code: context = new ...
3
votes
2answers
676 views

Access Subsite list from root site using sharepoint hosted app

I've a SharePoint Hosted App and its deployed to Root site. Using that App, I need to read items of specific list from all sub sites of that root site. My current Code: var hostsuburl = "Subsite URL ...
2
votes
0answers
139 views

How to create context by using URL from list items?

I've a project main site and some sub sites of it. In the Main site I've list which contains URL of all sub sites. I need to create office app to retrieve the list items from all sub sites, do some ...
0
votes
1answer
33 views

App does not load in elements when deployed

I have a strange issue regarding SharePoint apps. I have installed my own Win Server 2013 R2, SQl for dev and SharePoint 2013 SP1 January 2016 CU. I am able to create and run custom solutions ...
0
votes
2answers
707 views

Why is SharePoint hosted App creating a wsp

New to Add-ins i am creating a SharePoint Hosted App in Visual Studio 2015. When i try to publish my app it creates the following structure in the Debug folder looks like this: DEBUG app.publish 1....
1
vote
0answers
137 views

Create custom site template with JSOM?

I understand that I can create subsites on the hostweb of O365 using JSOM and use custom site templates for that. One (out of many) examples for that can be found at Code Project Now my question is: ...
0
votes
1answer
408 views

Sharepoint Hosted App - Get list Item using SPService call gives access denied why

I have created a SharePoint hosted App for Office 365 and am trying to get list items using SPService call but it is not working. There is an Access denied of Forbidden 404 error, why?
1
vote
1answer
125 views

Assembly does not support app authentication - Reputation.js

I'm trying to use the Reputation.js setLike method in a sharepoint hosted app/add-in which in theory is possible with the following snippet: var ctx = new SP.ClientContext(webAppUrl); Microsoft....
0
votes
0answers
201 views

Show dropdown for Client Web Part property

Is it possible to show a drop down list of values in a Client Web Part property (SharePoint hosted App for SPOnline)? I want to read values from somewhere else in site (say items from a list) and want ...
2
votes
0answers
68 views

Is cross-site lookup possible with a provider-hosted app?

I have following problem. I got two projects, one sharepoint-hosted app and another provider hosted app. Both contain a couple of lists. So far so good. Now I need the data from the sharepoint-hosted ...
2
votes
0answers
112 views

Filter Drop-down values based on logged user

I should create a drop down box to display hosted-app part, based on the selected value from drop down box. Also I need to filter the drop down values based on logged user. And this need to be done ...
4
votes
1answer
74 views

Office 365 addin not working on IE7, working on chrome, firefox and IE8

I have a hosted addin that we developed internally. it works on chrome, firefox and IE8+, but for some reasons, the infrastructure made the default rendering for IE to be 7. Is it a limitation in ...
0
votes
1answer
575 views

SPOnline: Adding related items from new List Form

Consider two lists: ListA and ListB with ListB having a lookup to ListA. So multiple items of ListB could be related to items of ListA. Using custom JavaScript (via an App) on the ListA item forms, I ...
1
vote
2answers
1k views

How to programmatically retrieve item version history from SharePoint hosted App?

I want to fetch Note Type field version history from SharePoint Hosted App page. I have tried GetVertinCollection() method /_vti_bin/lists.asmx but unable to fetch item field version history from ...
0
votes
1answer
527 views

Compare two int columns in a Sharepoint list

I´m doing a course catalog app for SharePoint. And I have a list called Courses. In that list I have two columns called: Seats and FreeSeats. When you make a new course the boss decide how many can ...
2
votes
2answers
133 views

Is it possible to retrieve lists with specific template?

Is it possible to retrieve lists with template "Custom List" and display it in a jqxListBox or div?
10
votes
0answers
650 views

Bundle SharePoint JavaScript files inside SharePoint hosted app

We have a SharePoint hosted app. This app require some scripts from SharePoint; MicrosoftAjax.js, init.js, sp.runtime.js, sp.js, sp.taxonomy.js and sp.workflowservices.js. We load all these from /...
0
votes
1answer
88 views

Getting the time difference format on the created column in a list

When extracting items in a custom list is it possible to extract the created column as the time difference format from the time uploaded such as this format '18 hours ago' etc., and if not therefore ...
2
votes
1answer
245 views

In SharePoint App, What permission will be needed to bind taxonomy termstore to column of list?

I have SharePoint hosted app which creates list with Taxonomy Field. I want to bind term store to that column. I tried by editing that column and try to set "Term Set Settings", but that setting ...
1
vote
0answers
284 views

Page in SharePoint hosted app prompting for authentication from ClientWebPart

I have a problem with an .aspx page that I have deployed into the app web of a SharePoint hosted app. I have a SharePoint site hosted at http://contoso.com for example and have configured my dev ...
6
votes
1answer
2k views

SharePoint hosted app - valid app package always NO

While publishing a SharePoint hosted app file to the App catalog site it always shows Valid App Package: No And App Version is always 1.0.0.0. I changed the version in AppManifest.xml from Visual ...
0
votes
1answer
45 views

SharePoint App Custom Web Part without the App?

Not sure if the title is clear, but what I want to achieve is deploy a Custom Web Part using SharePoint Hosted Apps to SharePoint Online. But I don't want the App to appear in "Site Contents". I ...

1
3 4
5
6 7
9