I am developing a Ribbon action sharepoint hosted app where user selects any number of items and clicks the ribbon action to Print the list items.
In the SharePoint hosted app page I want to retrieve the list items. Now, the ribbon action app can be used on any Custom List, so the fields to be retrieved from the list items is not definite always.
I want to retireve and print values for only those columns which are visible in the current view where the user selects list items and clicks on the app. I know that the current list view details can be obtained from SP.ListOperation but that will not work here as I am redirecting to an app. Any suggestions how can I pass the current list view name (by query string parameter ? )