SharePoint 2013 App – Accessing SharePoint List

If you have created a list inside your SharePoint 2013 App project. Right now there is no direct navigation to the list. Only option available is to navigate directly through url of the list. ie.  http://Site Url/App Name/Lists/List Name


Other way to give user access to your list for CRUD operation is by adding XSLT List View Web Part to your page.


In the Defaut.aspx of you App add the below code inside ContentPlaceHolderID="PlaceHolderMain".


 <WebPartPages:WebPartZone runat="server" FrameType="TitleBarOnly" ID="dictionaryWebPartZone">
         <WebPartPages:XsltListViewWebPart ID="companyListView"
             runat="server" ListUrl="Lists/AHI-AcronymsStore" 
             NoDefaultStyle="TRUE" Title="Company Dictionary"
             Default="False"  PageSize="30"