23

I just had this issue the other day (but with height). The key is to use postMessage to set the width of the iframe. This worked for me (put in the .aspx file of app): <body> <div id="dynamicContent"> //App content here </div> <script type="text/javascript"> "use strict"; window.Communica = window.Communica || {}; $(...


6

You need to use one of the following: Content Search Web Part Search Web Part Content Query Web Part The two search web parts are a bit easier to use as far as customizing the queries as there is a designer you can use. You can also change their looks. Content Query Web Part requires some XSLT knowledge to get the most out of it. You will add the ...


5

There's an SP.Guid type in the JavaScript Client Object Model (in sp.runtime.js). To create a new Guid use SP.Guid.newGuid UPDATE: This update is based on further investigation done in response to the comments below. Just like a "normal" web part, each instance of an app part has a web part id (which is unique). You can get the web part id in the code for ...


4

To my knowledge there are typically 2 reasons why you can't create a promoted links app/list. you must enable team collaboration lists feature if you use a custom master page, make sure that the following place holders are being rendered asp:ContentPlaceHolder id="PlaceHolderPageTitleInTitleArea" runat="server" asp:ContentPlaceHolder id="...


3

Edit the page and then edit the web part in question and you can change the view. You can select one of the different views available, or create one that matches what you want!


3

It is very true that apps (App Parts) load in an iFrame. That as you say will affect the SEO of the site. In classic Webparts it is up to you how you render the view (by rendering server side you will have all information on the page for the search engines to find) Regarding SEO and iFrames: Can Content in iframes Help My SEO? The short answer is ...


3

Lists (including "Custom List") are not "real" apps. Your question about "how come it is created in the host web and not in the app web" is spot on. Calling lists apps is a SharePoint "simplification". See this related post for details. As for your other question: an app can create a new list in the host web if it has the proper permissions. See this blog ...


2

Not possible. Source Limitations of tenant-scoped apps The following kinds of apps cannot be batch-installed: Apps that contain a custom action for the ribbon. (Custom actions that are deployed as menu items are allowed.) Apps that contain an app part.


2

I followed this blogpost: http://www.vrdmn.com/2013/03/sharepoint-2013-declaratively-add-app.html The only modification I did was that I had to find the FeatureId by powershell: Get-SPFeature -web <url to your site> | select DisplayName, Id One of the features has a DisplayName and ID that is a guid almost identical to the ProductId. In my case, ...


2

An app part is one way to display information from an App for SharePoint (one of the so-called 'shapes' a SharePoint app can use). An App for SharePoint holds all of the logic, display, and (typically) data associated with a specific piece of functionality someone has built to leverage the SharePoint framework. Apps for SharePoint are created using some ...


2

found the solution to my problem. As Steve pointed out, it is possible that an AppPart posts to its own AppWeb. The 403 was generated because I tried to get the RequestDigest this way: $('#__REQUESTDIGEST').val(). This works perfectly in masterpages, eg default.aspx. In an AppPart Page there is no __REQUESTDIGEST, so I didn´t get the correct value. Know I ...


2

I had this same issue and this worked for me SP.SOD.executeFunc('sp.js', 'SP.ClientContext', myFunction); Make sure you add a reference to init.js script <script type="text/javascript" src="/_layouts/15/init.js"></script> I have not tried the following, but it should work after loading init.js SP.SOD.ExecuteOrDelayUntilScriptLoaded(...


2

If the app part is SharePoint OOTB modal then use below javascript var dlg = SP.UI.ModalDialog.get_childDialog(); if (dlg != null) { dlg.autoSize(); } Hope this helps.


2

The AppPart will be available to that site only which you have given while deploying the AppPart from Visual Studio. It will not be available on Subsite of that site. So if you want that your AppPart should available to subsite then please re-deploy the AppPart with the url of your subsite using Visual Studio. So you must install the app on each individual ...


2

you need to Edit the page and then select and edit the web part (select Web Part in the top menu and then click Web Part Properties). Under Toolbar Type select Show Toolbar and click OK.


2

As I understand it, when you add a web-part or app-part you are creating an embedded version of an existing app rather than a brand new app. So while they are very functional by themselves, in many cases you can't add an web/app-part to a page if that app does not already exist in the same site/sub-site. If you create a Promoted Links list (even if you hide ...


1

I don't know whether this will work for you too or not, but I recently developed an SharePoint Hosted App and that App contains the Client WebPart and multiple pages. I got the same error. I searched and I found this solution. I was too having an App Master Page, but I included following line to each of my *.aspx page. <WebPartPages:AllowFraming ID="...


1

Only own lists and libraries are available in APP Part. You can not add list/library as APP part from other site. The good thing is there are workarounds for this. Check the below link Displaying SharePoint Online 2013 lists to parent or sub-sites


1

Calendar overlays only work from the Calendars themselves not list views (which is what you are adding to your home page). If you want to keep that - then use a link that points to the calendar view where you have configured the overlays.


1

You can. Design Manager > Edit Master Pages > Click your Master Page > Snippets Select the type of web part from the drop down lists at the top and get the snippet code (do any configuration before you copy the snippet). Paste that code snippet into your Master Page layout where you want it.


1

You have a lot of flexibility in this area. If this web application can be rewritten as a JavaScript/HTML/CSS only solution, then create a SharePoint-hosted app (i.e. SP-hosted app does not allow managed code, such as C#). Otherwise, you can create a Provider-hosted app. If you go with the Provider-hosted app, since it looks like your app does not have any ...


1

You need to use querystrings to get the webpart properties, as used in this example: <Content Src="~remoteAppUrl/AppPartContent.html?strProp=_strProp_&amp;intProp=_intProp_&amp;boolProp=_boolProp_&amp;enumProp=_enumProp_" Type="html"/> Then you can get that from your javascript: http://www.joezimjs.com/javascript/3-ways-to-parse-a-...


1

I don't think there is a way to make the app part to be read only. The Drag and drop action is created by a javascript file that SharePoint loads called dragdrop.js which is in the _layouts/15/ directory. A suggestion, although I don't think it is a brilliant one is to load a javascript file just on the homepage after SharePoint dragdrop.js that overwrites ...


1

what I did with this is I created the width first, recreated the height and width to not get the skewered height. Communica.Part = { senderId: '', init: function () { var params = document.URL.split("?")[1].split("&"); for (var i = 0; i < params.length; i = i + 1) { ...


1

An admin needs to go to navigate to the newsfeed root site collection, click on site contents and add you app, then add the part to the page by editing it; the change will apply to ALL my sites.


1

I do not understand your question ~remoteAppUrl is the Token you insert for and the matching will be done in SharePoint with the information you provide on /_layouts/15/appregnew.aspx


1

I also met with the same requirement. But actually we could not modify the SRC attribute. Then, I found a work around for this. Let the AppPart renders on the page. It gets rendered as a iFrame. By using a Javascript, let us modify the SRC attribute of the iFrame dynamically. The sample script would be, $(document).ready(function () { IFrameSRC = ...


Only top voted, non community-wiki answers of a minimum length are eligible