Tag Info

New answers tagged

0

You have to pass the query string manually. There isn't an easy/build in way.


0

I found the solution to this and I am posting this in-case someone else faces the same problem. Basically once you call the service the response comes in something like d/Invoke/Body. What I did was to first parse this value into a dynamic values and then extract the properties, this way I got it working.


0

You can try document.URL.split("?")[1] to get the tokens and append it to redirect page url.


0

How comfortable are you with JavaScript, REST, Asynchronous processing? The information you want is not available with one call, you have to recursively process Webs and Lists Starting points: Retrieve folders and sub folders from document library by REST call Get all Files and Folders in one call


0

There is a project on Github designed to smooth over the authentication flow, it is called azure-activedirectory-library-for-js, https://github.com/AzureAD/azure-activedirectory-library-for-js/tree/master/lib. It does have a clear cache option that would clear the session state.


0

Try changing the master page. Open the page in Google Chrome. Right click on any element and inspect in Browser Toolbar. See if you get a CSS File named oslo.css (while using oslo as master page) or Correv.css (Seattle master page) Delete all CSS. Check if your UI is what you expect it to be. IF yes then the UI distortion is due to your style and ...


0

I am answering my own question in case it helps someone else. I found the link below which explains "However there is the possibility of two different purchasers buying the same app and assigning a seat to the same user, in that case the call would return multiple licenses. The API is designed to return the most "relevant" license first so in general ...


1

On 2013 CSR and the OnPreRender function is one, and maybe even the best way of skinning this cat. You will have to read the whole list and then not display the Form but a message. But you can do without CSR and make SharePoint do half the work for you. A quick and easy ductape patch from the olden days is to hide the NewForm contents. On the ...


1

I finally found a solution which is satisfying for me. Even though I wrote, that postMessage is not what I want to do - this has now become the solution. I always knew that I can solve this problem with postMessage (refer to @Rafael Dabrowski post for details). What I didn't like about it, was always that I thought I would have to edit every single page ...


0

You can do this with JavaScript as well. You can add business logic and return false if number of records is exceeded in your Presaveaction.


1

You can crate Before Event Handler to achive this. You can add business logic for checking the number of allowed records in the method itemAdding


0

The purpose off the app web is to store data used by your code logic. Lists created here are not intended to be seen by end-users. End-users will however interact with these data through App part you developed that use JSOM to get/set data into these lists. You can still consult them for debug purposes by browsing their direct URLs or by PowerShell on your ...


0

If you are working with Asynchronous(ed) events, you need to wait for some time to get the log. Basically the above method expects, client context, product id( id of your app , this you can find in appmanifest) and error message. Follow these steps to monitor your apps Go to SharePoint admin center (_layouts/15/online/tenantadminapps.aspx) --> Select ...


0

Who issued the certificate you are using on the external service? It sounds like it was issued by someone trusted by your browser, but not by Microsoft. I don't know if they publish a list of what certificate authorities they trust (I searched and couldn't find one), but I guess a good starting point would be the IE default list.


0

Use this function that allows fetching a cached script: jQuery.cachedScript = function( url, options ) { // Allow user to set any option except for dataType, cache, and url options = $.extend( options || {}, { dataType: "script", cache: true, url: url }); // Use $.ajax() since it is more flexible than $.getScript // Return the jqXHR ...


3

You can check the Template type of a web object. If it is APP#0 you don't need to add it to List. The example here shows how to get the web template. http://stackoverflow.com/questions/19382310/using-client-object-model-how-to-fetch-the-web-template-name-and-web-templat


0

Access Services does not have this capability, but the BCS service is designed for this. Power User walkthrough: http://blog.karstein-consulting.com/2011/02/23/walkthrough-create-a-simple-bcs-connection-with-sharepoint-designer-2010/ Developer docs: https://msdn.microsoft.com/en-us/library/office/jj163782.aspx


0

Please create a method success in your JS file. This arises when JS is not able to find the the specified method. ctx.executeQueryAsync( Function.createDelegate(this, success), Function.createDelegate(this, fail) ); function success(){ // executable lines } function fail(sender,args){ //executable lines }


0

Is this a "SharePoint hosted" app (has an App Web), a Provider hosted app (has a "Remote Web" which you setup on a separate server), or a hybrid? According to Sahil Malik, a SharePoint MVP, FBA does not work with with SharePoint Hosted apps (or hybrids), see http://blah.winsmarts.com/2013-6-SharePoint_hosted_apps,_are_terrible.aspx If you are not using a ...


1

I'll use the "new" term "add-in" below (instead of "app") 1, 2, 4 All of your concerns regarding Javascript is easily avoided by using a provider hosted add-in, where the logic lives in for example a .Net application in an IIS (just like it does in a farm solution but without it being an integrated part of SharePoint) 3, Still not quite sure what you ...


1

I found the answer, it is in the app manifest package, check Enterprise Authentication in the capabilities tab.


0

Look at this: http://www.sharepointnutsandbolts.com/2014/07/remote-event-receivers-on-host-web-ClientContext.html I think Chris is describing there exactly your issue.


0

There's no need to buy a domain. Just ask your IT admin to configure it internally. Have a look at this article : Setup app environment


0

One reason why the Client Secret and Client Id should be protected is in cases where the application has been granted the ability to make calls using the application principal (aka AllowAppOnlyPolicy="true"). In this case, an application can obtain an access token and call into SharePoint using only the Client Secret and the Client Id. If ...


0

The following resources have the information you need to do what you want to do: Lists and list items REST API reference Files and folders REST API reference Uploading Files in SharePoint 2013 using CSOM and REST


0

I found solution by myself. The App has only Write permission to web and it requires at least Manage.


0

You're including a WebPartManager in your app part, and presumably there's already one on the page you're adding it to. These load various bits of JavaScript, and if I recall correctly having more than one per page causes problems. You might see JavaScript errors if you open your browser's developer tools. You could try removing the the WebPartManager from ...


2

A prerequisite of the AppOnlyContext is the setting in AppManifest: <AppPermissionRequests AllowAppOnlyPolicy="true"> ...snip... </AppPermissionRequests> However, there is a special permission request designed for your scenario. So you may not need AppOnly. <AppPermissionRequest Scope="http://sharepoint/search" ...


0

After lots pf research found Artical SharePoint App accessing data from host web Its Working For Me SharePoint App accessing data from host web The SharePoint app can access the host web by using the standard provided SharePoint web services. When the App first launches, SharePoint provides three values in the query string named: SPHostUrl, SPAppWebUrl and ...


0

Check out this guys web page. http://www.fabiangwilliams.com/2013/09/03/more-on-sharepoint-2013-rest-api-with-fiddler-and-spd/ it got me started. What I ened up doing was using his example to create REST Calls using the HttpSend activity.



Top 50 recent answers are included