How do I get the full folder path of a selected list via the Ribbon and Client Side Script?

  • How do I get the full folder path of a selected list via the Ribbon and Client Side Script? anchorPoint

    What I want to achieve is something similar to this OOB method:


    But this method only returns the GUID of the selected list. I would like to get the path, so if the user has browsed to a subfolder of the list I want to retrieve the current list/folder path.

    How can this be done?

javascript ribbon client-object-model
Related questions and answers
  • I want to retrieve only the documents that are present inside a specific folder of a document library using GetListItemsAsync method. Here is how i call it: sc.GetListItemsAsync("MyDocLib", null, null, null, null, XElement.Parse(@"<QueryOptions><Folder>MyFolder</Folder></QueryOptions>"), null); The call is returning all the documents inside "MyDocLib" and not only those that are in "MyFolder". How can I do that?

  • /my_site list - Pages Folder - News ItemB - Article ItemA - Contents The site is easy enough to connect to, with that I can get the list, Folder and ItemA's and output them so I can see what lives there. What I would like is to be able to view all the ItemB's (and there may be lots of them) under each Folder, there are about 10 Folders in the List with each Folder containing lots...I am trying to iterate over a List and view properties on some items that live within that list, and down one or two levels; this is on a SharePoint 2010 server. So far I have been able to connect

  • run MOSS and profiles are synced, I get 1000's of changes that are occuring in the user information list. So right now since the GetChanges method only pulls items in chunks of 1000, i have to use the lastchangetoken and call getchanges several times and then sort through 1000's of items just to get at the one's I want. First question: Does anyone know how to exclude hidden lists or certain... x items modified from each list and then I would put all of them into a List and sort, then taking the bottom x items. This code was really slow (sometimes taking 20-30 seconds) so I decided to go

  • to be listed under the custom group. Any ideas on how I can debug this? Any constructive advice is greatly appreciated. Home elements.xml <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="" > <Module Name="Home" List="113" Url="_catalogs/wp"> <File Path="Home\Home.webpart" Url="Home.webpart" Type="GhostableInLibrary" > <...://" > <Module Name="IdeaEditor" List="113" Url="_catalogs/wp"> <File Path="IdeaEditor\IdeaEditor.webpart" Url="IdeaEditor.webpart" Type

  • , and then as part of that activation, drop web parts onto some specific pages. In my case I want to be able to drop it onto the "AllItems.aspx" page of a list, but I'm equally having trouble adding... Module: I think this is the most likely path forward, however it seems to always want to provision a file to the site. For example, if I want to add a web part to the home page (default.aspx), then there doesn't seem to be a way to just get a reference to the page, it always wants to overwrite it with a new file. But I dont want to do that, I just want to add a Web Part to the existing page. See my

  • I'm using the following code: protected void TraverseFolder(SPList list, SPFolder folder) { SPQuery qry = new SPQuery() { Folder = folder }; SPListItemCollection listFolderItems = list.GetItems(qry); foreach (SPListItem item in listFolderItems) { // Do stuff. } } If the items in the list inherit their permissions from the parent folder then they appear in the collection, if I break inheritance, but keep the same permissions, they don't appear. What's going on? Stuart. UPDATE: If I ensure that the user has View Only permissions on another folder (at the same

  • I have a list with an URL-field. Nothing special, just the OOTB Hyperlink-field. I want to execute a CAML-query that selects items with a certain value in the description part of the URL-field. CAML <Query> <Where> <Contains> <FieldRef Name="URL" /> <Value Type="URL">text</Value> </Contains> </Where> </Query> Result Only items with 'text' in de url part are selected, if a item has 'text' in the description part it is not selected. How do i select items based the description of the URL?

  • deactivate it it doesn't remove it but i get error: Failed to instantiate file "myStoreComms.webpart" from module "WebPartPopulation": Source path "myStoreComms.webpart" not found. Any ideas.. .what... does activate the webpart but i also want to remove it when deactivating it.(So i know i need to add something to the FeatureDeactivating So i created a Feature With Reciever template and added...) { SPList list = web.Lists["Web Part Gallery"]; // go through the items in reverse //for (int i = list.ItemCount – 1; i >= 0; i–) for(int i=list.ItemCount-1; i >=0

  • I developed a custom event receiver class that overrides the ItemAdded method after the list item is added I want to make some checks and based on a certain condition I want to delete the added item. I was able to delete the item but i want to display an error message so I used properties.Cancel = true; properties.ErrorMessage = "Can't insert this item"; when I debugged I found no errors but the user is not directed to the error page. is there any workaround for this ? thanks

Data information