Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Current List view in SharePoint 2013 custom action / {Source} parameter

$
0
0

 am trying to create a custom list action for SharePoint (Office 365) and I need to get current list view. However if I add ribbon custom user action I have some problems to find currently selected list view. My trials:

a) It would be the best to have some url tokent (like {View}) with current view ID, however it looks like such does not exist.

b) I had an idea to find selected view from the source url, however if I add Source={Source} parameter to the custom action, I get Source resolved to : Source=https://mysite.sharepoint.com/_layouts/15/commandui.ashx?ver=%2D1037522208&lcid=1033&qt=commandhandlers (while I'd expect something like https://mysite.sharepoint.com/_layouts/15/start.aspx#/Lists/My%20List/AllItems.aspx?InitialTabId=Ribbon%2EList&VisibilityContext=WSSTabPersistence )

c) .. ?

Any ideas how to get currently selected list view?


Do not press -> http://www.sharepointdrive.com


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>