angularjs - 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 build/debug/test and not worry about deploying anything. Once i get to the point that I'm ready to actually start wiring up the data side of things, i've packaged it up as a SharePoint hosted app. When i encounter an issue, i'm finding it very difficult/time consuming to have to modify the files, repackage/deploy the app, just to see a small change....Read more

Get top navigation of Host Web in SharePoint Hosted app

I need to render the global navigation (top navigation) of host site (Site collection) in SharePoint Hosted App. Since I am using SharePoint Hosted App, can only use ECMA Script. I have tried both REST API and JSOM as below.REST API:: error$.ajax({ url: "<host site url>" + "/_api/web/navigation/TopNavigation", method: "GET", headers: { "Accept": "application/json; odata=verbose" }, success: function (data) { success(data.d.results); }, error: function (data) { alert(data.statusText); }});JSOM: Unexpected...Read more

SharePoint hosted app part cross domain error

I'm trying to build a SharePoint app part to include in a SharePoint online page allong with other web parts.I'm using SharePoint online developer to deploy the solution I'm developing in visual studio community 2017.The app works in its custom link, but when I insert the app part in a page, is doesn't work, I'm getting a JavaScript error saying it can't load content from external domain...I already included allowframing tag in the master page without success, is this because I'm In the developer SharePoint or is it another problem?Thank you...Read more

boot strap - glyphicons-halflings-regular - 404 (NOT FOUND) in Sharepoint Hosted Add-in

I have developed one SharePoint hosted add-in where in I've used offline bootstrap CSS and glyphicons font. But when I try to load the page it is giving me an error in the browser as below: Failed to load resource: the server responded with a status of 404 (NOT FOUND) on glyphicons-halflings-regular.woff2, glyphicons-halflings-regular.woff and glyphicons-halflings-regular.ttf.Link of glyphicons-halflings-regular.woff2 found to be like http://apps-d438d5193fcfcb.kblapps.co.in:6415/costingportal/CostingPortalReports/fonts/glyphicons-halfli...Read more

SharePoint 2013 APP Deployment Error: on-Premise hosted APP

Today I have start working on SharePoint Hosted APP.I have done with prerequisite Setting up on-premises environment for app development After That I have created New Project. When first time I have click on F5 button, it shows error below Error 1 Error occurred in deployment step 'Install app for SharePoint': The System Account cannot perform this action.Then one more time I have click on F5 button, this time it shows different error Error occurred in deployment step 'Install app for SharePoint': The provided App differs from another App w...Read more

sharepoint hosted app - 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 that have another form to save data into list but facing the error on that page- Uncaught TypeError: Cannot read property 'split' of undefined dut to fail querystring parameterI am using the following code to access appweburl and hostweburl-hostweburl = decodeURIComponent(getQueryStringParameter("SPHostUrl"));appweburl = decodeURIComponent(getQu...Read more

sharepoint hosted app - The success callback of querySP.ClientContext.executeQueryAsync method

I have a SharePoint 2013 hosted app and use CSOM queries to create multiple list items. My question is related to the parameters of the callback method. After executing my query using clientContext.executeQueryAsync(onQuerySucceeded, onQueryFailed); I want to retrieve the ID's of the newly created items without additional queries. I am assuming they are already in the args parameter of onQuerySucceeded(sender, args) function. So can someone give me a simple example of extracting the ID's of the created items from inside the onQuerySucceeded fun...Read more

angularjs - Angular and SharePoint: missing references?

Assume: I am new to Angular, still don't know what I am doing.I am trying to create a SharePoint-hosted app that will pull some data from lists deployed with that app. I don't want to use Default.aspx page, but index.html with some Bootstrap.Andrew Connel's tutorial on Pluralsight is giving me some errors, all SharePoint code stops executing the moment I use .html. Probably I am doing something wrong. This tutorial (simplest one I've found) works perfect with Default.aspx :<%-- The following 4 lines are ASP.NET directives needed when using S...Read more

New form in hosted app

I am creating a hosted app in Visual Studio 2017 for use in SharePoint 2016 On-Premises. I have added a list to this project and would like to change the new item form for this list. I am attempting to follow this tutorial, but when I select Add -> New Item, I don't have any item called Page. Is this something I'm missing or is there a different way to do this?...Read more

token - Alternative for ADAL in SharePoint hosted app

Is there any alternative for ADAL. I have created SharePoint hosted app. For every new build app deployed with new url with new Id like https://mysite-a08081eeabb935.sharepoint.com/sites/test/myAppFor the authentication token I need to go to the application in Azure Active Directory and have to add the reply url. It is ok but for every new build i have to change the reply url. I want to publish app in office store, If client install app in their environment then app url will change then How can I fetch url from their environment. Finally I ha...Read more