I have to 2 lists inside my sharepoint online team site:-
- Invoice Details. which has a lookup column to the Invoice list.
now i want to show a summary of the Invoice and its details from one page, something as follow:-
**Invoice Info:-** Invoice ID | Invoice Date | Invoice Number | Invoice Per **Invoice Details info:-** Item Number | Item Quantity | Price + Add New item
now to build this view i want to create a SharePoint hosted-app to create the above summary view. where i will follow an appraoch similar to this one https://www.c-sharpcorner.com/article/rest-crud-operations-using-sharepoint-hosted-app-office-365-part-two/ .
But i do not want to build everything from scratch, where the Invoice and Invoice Details lists will still be managed as-is using the built-in lists' forms (Create,Edit & Display). but i am planning to modify my list view, to redirect users to the SP-Hosted App, instead of redirected them to the item display form, when users clicks on the item title (i can do this by adding JS LINK to the web part).. but i am not sure if i can pass the item ID to my SharePoint hosted APP ? so i will pass the Invoice ID, then the SP-Hosted App will retrieve the Invoice item info + the Invoice Details info and render the above page.
so is it possible to pass the Item ID to my SharePoint Hosted App??