Tag Info

New answers tagged

2

You get this error because of the cross site scripting protection. To work around it you have to use sharepoints own library for cross-site access, namely "SP.RequestExecutor.js". Also make sure your app has tenant scope permissions. var scriptbase = $scope.hostweburl + "/_layouts/15/"; $.getScript(scriptbase + "SP.RequestExecutor.js", function(){ var ...


0

I think that is a solid setup. As for the test, I don't know if it's possible, but maybe have testing items on a different hardware system just to be safe! But that's only if it's available. Here's something useful someone told me when I first started: each web application should ideally have its own application pool. That way, if the app pool fails, it ...


0

What would the web app for test be useful for? Could you not use a specific site collection for that? If it is intended for testing different versions of custom solutions etc it will not help to make it a separate web application I'm afraid. Having a separate web application for search is not necessary either, you just have to create a site collection using ...


1

I found out that a user needs read rights on the app catalog to be able to see the app in "Apps from your organization". This also applies to the list item in the app catalog. So I stopped the permission inheritance on the list item for my app in the app catalog, and only gave specific users of my sitecollection read rights on the list item. I still can't ...


1

Welcome to working with SharePoint -- you'll find certain things much easier (no need to re-invent things like authentication and backup) but other things will be very frustrating (why can't I just easily add some custom code here to do x...) Your question is quite vague, but I think what you might be looking for is creating a solution in Visual Studio that ...


1

The XML needs to include the list of columns to retrieve. http://msdn.microsoft.com/en-us/library/office/ms442073%28v=office.15%29.aspx <ViewFields> <FieldRef Name="Title"></FieldRef> <FieldRef Name="FriendlyName"></FieldRef> </ViewFields>


-1

Set your button type to button. By default on the asp page your button is type submit This was my post above


-1

Set your button type to button. By default on the asp page your button is type=submit


1

On the SharePoint side, no. In a Provider-hosted app, it is the responsibility of the remote web to authenticate the user and pass that identity to SharePoint as part of the token. If you have trusted the app to make app-only calls, then you have to trust the app. :)


0

you can try to perform a quick repair the existing office installation. I don't recommend an online installation as it may reset the activation settings. for more understanding, I hope the below link should be useful for you. http://www.errosupport.com/office-2013-or-office-365-installation-error-something-went-wrong-2/


1

You can set it with CSOM by setting the EnableModeration member to true: using (var ctx = new ClientContext(url)) { var list = ctx.Web.Lists.GetByTitle('List Name'); list.EnableModeration = true; // Optional, set approval workflow for content approval list.EnableMinorVersions = true; // Below will throw error if this is not enabled ...


1

http://technet.microsoft.com/en-gb/library/ee428293(v=office.14).aspx#section1 To export a site, list or document library by using Windows PowerShell 1.Verify that you meet the following minimum requirements: See Add-SPShellAdmin. 2.On the Start menu, click All Programs. 3.Click Microsoft SharePoint 2010 Products. 4.Click SharePoint 2010 ...


0

You can use following powershell commands to import/export list: 1: #This is the source web that is hosting the lists to move 2: $sourceWebUrl = "http://server.SharePoint.Com/Sub1" 3: 4: #This is the destination web, where the lists will be copied to 5: $destWebUrl = "http://server.SharePoint.com/Sub1/forums" 6: 7: #Location to store ...


1

A code sample using REST and the SharePoint Javascript cross-domain library to perform basic operations on document libraries and files: http://code.msdn.microsoft.com/officeapps/SharePoint-2013-Perform-ab9c4ae5


1

I got the issue resolved by using view state for the Context Token property public string ContextToken { get { return ViewState["ContextToken"] != null ? Convert.ToString(ViewState["ContextToken"]) : String.Empty; } set { if (value != null) { ...


0

If the feature is "Team Collaboration Lists" shows as "Active" - Toggle it!


0

I used this Javascript to redirect: <script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"> </script> <script language="javascript" type="text/javascript"> function PageOnLoad() { document.getElementById('idHomePageNewDocument-WPQ2').onclick= function() ...


5

Alternative 1 Your App Catalog site can be configured at web application, NOT at site collection level. Since an App Catalog is scoped to a web application, all apps that you want to make available have to be in the App Catalog site for that web application, and eventually to all site collections under it. However, you can have more than one App Catalog ...


1

Goto List Settings > Advanced Settings You will see an radio button Launch forms in a dialog? Click on "NO" and press ok and you are done. Check this link for details


1

you can try and follow this post, its very lenghty in the first link that i provided in my answer but it should setup your app domain properly! How do I turn on SharePoint App store in SharePoint 2013 as noted there is somthing not right with the configuration of your app domain! just follow the guide... its long but with images and in detail!


2

App Part A component of an app for SharePoint that can be embedded on a site page to expose the functionality of the app.With app parts, you can show your app user experience (UX) right in the host web. An app part displays your app content using an IFrame. End users can customize the experience using the custom properties that you can provide for your app ...


1

If I where you I would set up a new Site Collection with the Business Intelligence Center template and start to configure it using the guide Set up a BI Center site in SharePoint Online. Then I would continue to read Business intelligence capabilities in Excel, SharePoint Online, and Power BI for Office 365 to see what my options are. If I need to evaluate ...


1

Try creating a website in Azure and publish the appweb file there. Then make sure that the app file is pointing to that site which will be .azurewebsites.net. Also make sure that the app has the relevent rights and permissions


0

You needed to configure the Azure website with the client id and client secret. As explained to the following blog


0

I'm not sure if these articles would apply in your situation but adding an event handler for the ExecutingWebRequest solved the Forbidden errors I was getting when making CSOM calls. Although most of these articles apply to previous versions of SharePoint I was able to get it working with our 2013 environment. ...


2

Apps in sharepoint are created as a seperate site called "App Web". The List that you are creating will be created in "App Web". However, if you want to create a list in the "Host Web", then you will need to programme a little bit to get the "Context". Also The app has to be given permission on the Site where you want to create the list. Please refere to ...


2

When you create a list instance via an app, it creates it on the app site, not on the host site. If you want to create a list on the host site when the app is added, you'd have to use REST or JSOM (or C# if you use a provider hosted app) when the app is activated.


0

Personally, I would rather my app be in a single place. Your scenario #2 has pages in the App and pages in the external site. Also, a primary consideration is what functionality you will be delivering in your app. If you don't need to consume any SharePoint resources, you could simply use a Page Viewer Web Part to show your external site in a page.


3

The proper syntax for loading SP.List.defaultViewUrl Property: context.load(list,'DefaultViewUrl'); Working example var context = SP.ClientContext.get_current(); var list = context.get_web().get_lists().getByTitle(listTitle); context.load(list,'DefaultViewUrl'); context.executeQueryAsync( function(){ console.log(list.get_defaultViewUrl()); ...


0

The solution turned out to be very simple (and strange). It actually did not have anything to do with the code. Here are the steps I took to regenerate the issue: Create a site collection. Create a sub site in that site collection. Deploy your app to site collection URL (not the sub site's). Browse to the sub site and add the app. Go to the app (which ...


1

300 Fields means you have created 300 columns in the Sharepoint list. That's pretty extreme for a sharepoint list. Especially since data will populate those fields. SOAP errors in infopath are generally a timeout with communicating between Infopath and the Sharepoint server, which means when you click publish it goes through each field in infopath and writes ...


1

Up until April 2014 Cumulative Update for the SharePoint 2013 release only Office 365 and SP Online supported the provisioning of site collections remotely using CSOM extensions (part of the Windows PowerShell for SharePoint Online package). This set of functionalities was not available for on-premises (or Office365-Dedicated). With April 2014 Cumulative ...


1

You could utilize CSOM TimeZone.UTCToLocalTime method to convert the specified date from Coordinated Universal Time (UTC) to local time. Example (function(){ var context = SP.ClientContext.get_current(); var web = context.get_web(); var regionalSettings = web.get_regionalSettings(); var dueDate = new Date(); //set DueDate to [now] var ...


0

In CSOM API Web class exposes Web.RegionalSettings property to get the regional settings that are currently implemented on the website. Example var regionalSettings = ctx.Web.RegionalSettings; ctx.Load(regionalSettings); ctx.ExecuteQuery();


1

Not sure why you're getting the access denied error, but you should be using the cross-domain library, SP.RequestExecutor.js, when trying to SharePoint data from within an app. Try calling myFunction with the following: var scriptbase = hostweburl + "/_layouts/15/"; $.getScript(scriptbase + "SP.Runtime.js", function() { $.getScript(scriptbase + ...


0

Add the following to the app page you want to display in an app part: <WebPartPages:AllowFraming ID="AllowFraming" runat="server" />


0

You can not update user profile properties (except profile pic) using CSOM/JSOM. But UserProfileService.asmx can be used. Check below links for further details. Update User Profile Working with User Profiles


0

Pre-requirements: You need to use the most up-to-date Safari as your browser. To ensure you are using the most updated software check for updates in software updates.Once you’re in software update click “Check Now” and then install any updates that are found. Office for Mac 2011 needs to be installed for the SharePoint plug-in. First time (and hopefully ...


2

You can use GetUserProfileByName operation of SPServices library to query user profile properties of user.Since manager property is "Person" field , you will be able to get ID and name of the manager. Below is a code sample for the same: $().SPServices({ operation: "GetUserProfileByName", async: false, AccountName: "domain\\loginname", completefunc: ...


0

At the time of developing Apps in local development environment, code runs on local machine and IISExpress is used to host web project http://localhost:1234. The challenge here is firewalls block events when debugging with O365 site therefore Visual Studio utilizes Windows Azure Service Bus, to open channel between O365 and local IISExpress to enable ...



Top 50 recent answers are included