3

Is it somehow possible to use the XsltListViewWebPart in the SharePoint-Hosted App to view and manipulate a List of the Hostweb?

 <WebPartPages:WebPartZone runat="server" FrameType="TitleBarOnly" ID="full" Title="loc:full">
                            <WebPartPages:XsltListViewWebPart runat="server"
                                ListUrl="Lists/Listname" <--- Relative URL! Only AppWeb? Or also HostWeb?
                                IsIncluded="True"
                                JsLink="clientTemplate.js"
                                NoDefaultStyle="TRUE"
                                PageType="PAGE_NORMALVIEW"
                                Default="False"
                                ViewContentTypeId="0x">
                            </WebPartPages:XsltListViewWebPart>
                        </WebPartPages:WebPartZone>
-1

Yes you can use the above to display the list OTB but i have found it quite limiting. But OTB you can add items, select views (that you've created in VS2012) etc.

I've only done this on lists that the APP creates, does your lists exist in the parent web?

  • 1
    The question clearly states that the list is in the Host web, not the app web – Robert Lindgren Jan 30 '14 at 12:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.