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.  https://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"
             ViewContentTypeId="0x">
         </WebPartPages:XsltListViewWebPart>
     </WebPartPages:WebPartZone>