Hide list item menu using CSR

Hi,
      Is it possible to hide specific custom actions from list item menu for an XSLTListView webpart using CSR... The list has some custom actions created through SPD and we wanted to hide the out of the box list item menus. Could
someone please point me to some examples.. and what would be an alternative in case this is not possible.. jquery...?
Thanks
Anisree

In the View Settings under the Filter option check "Show Items only when the following is true:"
Select the Expiry Date column for the "Show the items when column option".
Condition should be "is greater than", or "is greater than or equal to" if they don't expire until the end of the current day.
And for the value put [Today] including the square brackets.

Similar Messages

  • Listing item roles used by menu

    Hello,
    Just now joined forum and have a question about Forms V10.
    I have a menu (mmb- not in database) with a couple hundred menu items. Each item has
    several roles assigned to it. I would like a report report (or preferably an Excel sheet)
    that lists each role used in the menu and the items (with item label) assigned to that role.
    Can this be done?
    Thanks
    Sandy

    Hello Francois,
    I've never heard of this tool. Is this something I may already have because it's part of Oracle, or do I have to download/purchase it?
    And then I'll have to search for instructions on how to use it. Could I mess up the mmb file if I don't use the tool correctly, or is this read-only?
    Thanks
    Sandy

  • Send a list item as a bulk e-mail using SharePoint 2010

    My scenario is to e-mail newsletters to a group of users (running into 1000's) and we were thinking about any pro's and cons of using SharePoint here.
    Preferable if the newsletter were embedded in the e-mail so there is no need to give permission to a user to visit the site (or do we have to anyway?)
    Also, a functionality such that, every list item could have an option such as "E-mail to Group 1" or "Email to Group 2" that would allow the item to be mass e-mailed.
    Group 1 assume to be a group of 500 individuals with only e-mail addresses known...
    If SharePoint seems right, then can anyone suggest me how to go about this? If it is possible with OOTB/designer?

    For you scenario, you could explore ECB Menu action using SharePoint designer.
    The logic would be first fire up SharePoint designer and create an ECB menu to start a workflow ie initiate workflow in SharePoint designer (you need to create two workflows each for Group1 and Group2 to make it simple)
    Next step would be to create a workflow to send an email to the selected group and use item values within the workflow to create the newletter.
    here are some reference on how to -
    http://sharepointyankee.com/2009/12/19/adding-custom-actions-to-the-list-item-menu-in-sharepoint-2010-using-sharepoint-designer-2010/
    http://blog-sharepoint.blogspot.com/2011/10/tutorial-add-custom-list-actions-using.html
    http://office.microsoft.com/en-us/sharepoint-designer-help/send-e-mail-in-a-workflow-HA010239042.aspx
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • Assign Group permission to list item using client object model

    Hi,
       I am trying to add the list item and assign the permission to the list item by using SP 2010 client object model. The problem which i am facing that when i assign the group as a permission to the item, by automatically the limited access permission
    is added to the group. Please find the steps which i have followed,
    Step-1: Break role inheritance.
     foreach (var item in _listItemCollection)
                            if (item["FileLeafRef"].ToString().ToLower() == "xxx")
                                item.BreakRoleInheritance(true, false);
                                _clientContext.Load(item.RoleAssignments);
                                _folderItem = item;
    _clientContext.ExecuteQuery();
    Step 2: Remove all permissions of the list item.
       foreach (var assignment in _folderItem.RoleAssignments)
                        assignment.RoleDefinitionBindings.RemoveAll();
                        assignment.Update();
    _clientContext.ExecuteQuery();
    Step 3:
        Add Group as a permission to the list item.
      var role = _web.RoleDefinitions.GetByType(RoleType.Contributor);
                    var collRdb = new RoleDefinitionBindingCollection(_clientContext) { role };
                    Principal principal = _grp;
                    _folderItem.RoleAssignments.Add(principal, collRdb);
                    _folderItem.Update();
    _clientContext.ExecuteQuery();
        After adding the group successfully to the list item, i checked the group permission and it contains the value as "Contribute,Limited Access" to the site level and "Contribute" to the list item. Please guide me how to avoid to create Contribute,Limited
    Access role.
    Balaji

    Hi Dmitry,
      When I create the group and assign contribute permission, the group has the permission at the site level(to see the permission, click group and click view Group Permission).  I have added the list item and break the role inheritance permission
    and given the unique permission by providing group as a permission to the list item. After providing the permission, the group permission at the site level changed to "Contribute, Limited Access". I dont know how contribute permission changed to contribute,
    limited access.
    I found the workaround to fix this issue. I created the group and create the folder in the shared document library by using client object model. Due to facing some issue by providing the permission using client object model, i have created the event receiver
    to the document library and using server object model, i can able to assign the approprate group permission.
    Balaji

  • Using script to delete list item attachment

    $.ajax({
    url: "/_api/lists/getByTitle('Test')/getItemById(1)/AttachmentFiles/getByFileName('test.txt')",
    method: 'DELETE',
    headers: {
    'X-RequestDigest': $('#__REQUESTDIGEST').val()
    i want to delete list item attachment using script.
    Above code working only in ie
    in firefox and chrome it fails
    Any sugestion clads

    working fine when i degug the script...

  • Copy List Item Attachment for archiving using SharePoint Designer 2013

    hi,
    how to Copy List Item Attachment for archiving using SharePoint Designer 2013

    1. You can use access:
    http://viziblr.com/news/2011/11/5/batch-exporting-sharepoint-2010-list-item-attachments-using.html
    Or you can try below script
    You can loop through each list item, and get each attachment.
    List<SPAttachment> attachments = new List<SPAttachment>();
    SPList list = SPContext.Current.Web.Lists["My List"];
    foreach (SPListItem item in list.Items)
    attachments.AddRange(item.Attachments.Cast<SPAttachment>());
    If this helped you resolve your issue, please mark it Answered

  • Hide toolbar item

    How can I hide toodbar item dynamically using custom.pll
    I am able to hide the menu item.
    For example:
    set_menu_item_property('VIEW.FIND', visible, property_false);
    This will hide the 'Find' menu item under 'View'. But how do I hide the toolbar ikon (the flashlight which is second from left) which also is a shortcut for the 'Find' function.
    Thanks much
    Rajesh

    It working now. but I do like this <style>.ms-list-addnew {display:none;}</style>
    Thanks for you good Advice.
    .ms-list-addnew
    { display:none;

  • Run Procedure From A List Item

    I am using Apex 3.2
    I have created a list of the shared components, which I will be using as a menu on my Home page.
    Is it possible to fire a procedure, once a certain item on the list is clicked. I do not want to put the process on the page that the list directs to, as I only want the procedure to run if they have come from the Home page and not any other page.
    Any ideas appreciated.
    Gus
    Edited by: Gus C on Feb 3, 2011 12:59 AM

    Hi Gus,
    I'm not sure about adding to a list item, but you could create an application item and a couple of application processes that may be able to do that.
    First, create an Application Item called G_LAST_PAGE
    Second, create an Application Process that runs "On Load: Before Header (page template header)" that is a PL/SQL Anonymous Block of whatever your code needs to be. Make this conditional on "Value of Item in Expression 1 = Expression 2" and enter G_LAST_PAGE into Expression 1 and enter 1 into Expressioin 2.
    Then create a second Application Process that has a higher sequence number than the first one. This should run "On Load: ..." and should be a PL/SQL Anonymous Block of:
    BEGIN
    :G_LAST_PAGE := :APP_PAGE_ID;
    END;This should be unconditional
    As the user moves from page to page (using your list item menu or by changing the URL or via links/branches), the value of G_LAST_PAGE gets updated. But before the update happens, the first process checks the value of G_LAST_PAGE - if it is 1 (ie, the user has just left page 1), then the process fires. Otherwise, it just proceeds to update G_LAST_PAGE with the page they are are now on.
    Andy

  • SharePoint 2010 Rest API: How to add attachment to a list item via ListData.svc

    Hi
    I have set up a project using the REST API in c# Visual Studio 2010.
    I have added a service reference to the URL //site/_vti_bin/listdata.svc/
    I can query the list and get back data, but I can't retrieve the attachments.
    I can write data to the list, but I can't add attachments.
    Are there any examples of how to add or retrieve attachments using the REST API services.
    Thanks
    Mike

    Hi,                                                             
    If you want to work with list attachments using REST API, here are some links will show how to do this using Javascript:
    http://msdn.microsoft.com/en-us/library/office/dn292553.aspx#FileAttachments
    http://chuvash.eu/2013/02/20/rest-api-add-a-plain-text-file-as-an-attachment-to-a-list-item/
    http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2013/06/27/how-to-get-list-item-attachments-using-rest-and-javascript-in-sharepoint-2013.aspx
    Best regards
    Patrick Liang
    TechNet Community Support

  • Moving a List Item attachment from one list to another

    Hi,
    What are the best way of coping / moving the List Item attachment using
    jQuery / JavaScript in SharePoint 2013 from one list to another.
    Thanks
    Saroj
    Impossible is nth but good coding :-)

    For your needs better try to code your own solution. See
    SharePoint JavaScript Class Library for details. You can have two possible architectures:
    Make all work from JavaScript. And the first your step will be
    addItem method of SP.List.
    Make processing of selection on client in JavaScript and call your custom server-side component (may be an application page) for items copying (creating copies in new list of already existed items from initial list.). See
    this for example.
    Also be careful with context.load. It's recommended to write all next code in context.executeQueryAsync. Use Firebug in FF and developer tools in Chrome for debugging your code and to find what is wrong.
    Or 
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/1d01a48f-c28b-467b-acd1-22e5fb266670/how-to-retrieve-list-items-and-copy-it-to-other-list-using-javascript-object-model?forum=sharepointdevelopmentprevious
    <script type="text/javascript">
    ExecuteOrDelayUntilScriptLoaded(retrieveListItems, "sp.js");
    var siteUrl = 'Site Url';
    function retrieveListItems() {
    var clientContext = new SP.ClientContext(siteUrl);
    var oList = clientContext.get_web().get_lists().getByTitle('List1');
    var camlQuery = new SP.CamlQuery();
    camlQuery.set_viewXml('<View><Query><Where><Geq><FieldRef Name=\'ID\'/>' +
    '<Value Type=\'Number\'>1</Value></Geq></Where></Query><RowLimit>10</RowLimit></View>');
    this.collListItem = oList.getItems(camlQuery);
    clientContext.load(collListItem);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
    function onQuerySucceeded(sender, args) {
    var listItemInfo = '';
    var listItemEnumerator = collListItem.getEnumerator();
    while (listItemEnumerator.moveNext()) {
    var objListItem = listItemEnumerator.get_current();
    var clientContext = new SP.ClientContext(siteUrl);
    var oList = clientContext.get_web().get_lists().getByTitle('List2');
    var itemCreateInfo = new SP.ListItemCreationInformation();
    this.oListItem = oList.addItem(itemCreateInfo);
    oListItem.set_item('Title', objListItem.get_item('Title'));
    oListItem.update();
    clientContext.load(oListItem);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceededFinal), Function.createDelegate(this, this.onQueryFailed));
    function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    function onQuerySucceededFinal(sender, args) {
    //Do next set of operation if needed
    </script><input name="btnVarIQReject" onclick="retrieveListItems()" type="button" value="Submit"/>
    Please use my above POC code to start. This will copy all the title field value from list1 to list2
    If this helped you resolve your issue, please mark it Answered

  • How to read list item and display Title and on click hyperlink as value by javascript /jquery

    on newform.aspx just above the top of cancel button I want to put 1 hyperlink "Help"
    but I want to do this by script/jquery by reading my configuration list where 1 column is TITLE and other is- URL
    in TITLE column will write "Help" and in URL column  I will write
    http://portal1234/sites/sudha/MyHelppage.aspx
    so script should read Title and display Help--->1st part
    Script should read Value column and on click of help-(display link) the respective url should be open in new window.-->second part
    Please let me know reference code for adding anchor tag dynamically by reading from list
    I can see hyperlink near cancel button-
    $(document).ready(function(){
    var HelpLinkhtml ='<a href="#" text="Help">Help</a>';
    var position =$("input[value='Cancel']").parent("td").addClass('ms-separator').append(HelpLinkhtml);
    now for reading from list I am trying below script-
    $(document).ready(function() {
        GetHelpLinkFromConfigList();
    function GetHelpLinkFromConfigList()
     //The Web Service method we are calling, to read list items we use 'GetListItems'
     var method = "GetListItems";
     //The display name of the list we are reading data from
     var list = "configurationList";
     //We need to identify the fields we want to return. In this instance, we want the Title,Value fields
     //from the Configuration List. You can see here that we are using the internal field names.
     var fieldsToRead = "<ViewFields>"+"<FieldRef Name='Title' />"+"<FieldRef Name='Value' />"+"</ViewFields>";
     //comment
     var query = "<Query>" +
                            "<Where>" +
                                "<Neq>" +
                                    "<FieldRef Name='Title'/><Value Type='Text'>Help</Value>"
    +
                                "</Neq>" +
                            "</Where>" +
                            "<OrderBy>" +
                                "<FieldRef Name='Title'/>" +
                            "</OrderBy>" +
                        "</Query>";
     $().SPServices(
     operation: method,
        async: false,
        listName: list,
        CAMLViewFields: fieldsToRead,
        CAMLQuery: query,
        completefunc: function (xData, Status) {
        $(xData.responseXML).SPFilterNode("z:row").each(function() {
        var displayname = ($(this).attr("ows_Title"));
        var UrlValue = ($(this).attr("ows_Value")).split(",")[0];
        AddRowToSharepointTable(displayname,UrlValue)
    function AddRowToSharepointTable(displayname,UrlValue)
        $("#NDRTable").append("<tr align='Middle'>" +
                                    "<td><a href='" +UrlValue+ "'>+displayname+</a></td>"
    +
                                   "</tr>");
    <table id="NDRTable"></table>
    Thanks :)
    sudhanshu sharma Do good and cast it into river :)

    Hi,
    From your description, you want to add a help link(read data from other list) into new form page.
    The following code for your reference:
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    ExecuteOrDelayUntilScriptLoaded(AddHelpLink, "sp.js");
    function AddHelpLink() {
    var context = new SP.ClientContext.get_current();
    var list= context.get_web().get_lists().getByTitle("configurationList");
    var camlQuery= new SP.CamlQuery();
    camlQuery.set_viewXml("<View><Query><Where><Eq><FieldRef Name='Title'/><Value Type='Text'>Help</Value></Eq></Where></Query></View>");
    this.listItems = list.getItems(camlQuery);
    context.load(this.listItems,'Include(Title,URL)');
    context.executeQueryAsync(function(){
    var ListEnumerator = listItems.getEnumerator();
    while(ListEnumerator.moveNext())
    var currentItem = ListEnumerator.get_current();
    var title=currentItem.get_item("Title");
    var url=currentItem.get_item("URL").get_url();
    var HelpLinkhtml ='<a href="'+url+'">'+title+'</a>';
    $("input[value='Cancel']").parent("td").addClass('ms-separator').append(HelpLinkhtml);
    },function(sender,args){
    alert(args.get_message());
    </script>
    Result:
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Check list field values using LINQ

    I have to check if the CURRENT USER is already in the list USERS by comparing his AccountName to the list field ACCOUNTNAME.
    If the USER is on the list I have to check if the field IsFollower is YES or NO and change it according to some conditions.
    I think LINQ would be the correct way of doing this but I have no clue how to do that.
    Any ideas pls, thanks

    Hi,
    Yes, you can query the list using LINQ.
    You need to get the SPList Object firstly, and then you can query list item value using LINQ.
    More information about how to check list field value using LINQ:
    http://msdn.microsoft.com/en-us/library/office/ee538250(v=office.14).aspx
    http://www.wolfsys.net/query-sharepoint-lists-with-linq/
    http://geekswithblogs.net/TanviBlog/archive/2013/06/06/linq-in-sharepoint-and-querying-list-items.aspx
    More information about how to use Server Object Model in SharePoint lists:
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist.aspx
    http://msdn.microsoft.com/en-us/library/office/ms456030(v=office.14).aspx
    Best regards

  • List item

    dear all
    i'm using form6i and run in c/s
    i'm creating a list item and used as my search in all records in the database..
    but my problem is my code is not working.
    i have a tabular form and display a number of text item into 4.
    in list item , i have list elements A,B, and C.
    when i choose A.. all name like A will appear in my tabular text item
    but this wont work with my code...
    my button is when button pressed and code below:
    declare
    name varchar2(100);
    ncount number;
    begin
    name:=:search;
    :search:=:search||'%';
    select count(*) into ncount
    from emp
    where :emp.name like :search;
    go_Block('emp');
    execute_query;
    end;
    can anyone knows how to do this?
    the search is the name of my list item

    hi Dear,
    If I understood your problem properly then wht u want is
    two block
    1.Search
    having one list box "lst_e" and one button
    list box is having ALL(%), A(A), B(B), C(C), D(D), ....
    (i.e. here bracket is showing values associate with that list item)
    and button with trigger WHEN-BUTTON-PRESSED
    with code:
    go_block('EMP');
    execute_query;
    2. EMP:
    with base table = EMP
    where clause = where ename like nvl(:search.lst_e || '%', '%')
    EMP columns showing details in tabular format
    say one column ENAME with databse column = ename
    and that's all wht u want
    select your desired char from search block's list box and press button
    it will display all appropriate data u want.
    Hope it helps u
    Enjoy Oracle...

  • Getting the version history of a list item

    I am creating a content web part and one the list items is used with versioning. I want to show all the versioning on the page. Is there anyway to do this? maybe using CSOM or something. In Javascript

    Hi,
    According to your post, my understanding is that you want to get the list item version using CSOM or JavaScript.
    There is no directly way to get the list item version using CSOM or REST Api, however, there are alternative options as below.
    We can use the SharePoint List web service
    that exposes Lists.GetVersionCollection Method to return version information for the specified field in a SharePoint list.
    There is a code demo to retrieve the List1 item version, it works like a charm, you can refer to it.
    <script type="text/javascript" src="../Shared Documents/jquery-1.11.0.min.js"></script>
    <script type="text/javascript" src="../Shared Documents/jquery.SPServices-2014.01.min.js"></script>
    <script type="text/javascript">
    $(function(){
    $().SPServices({
    operation: "GetVersionCollection",
    async: false,
    strlistID: "Lists_1",
    strlistItemID: 1,
    strFieldName: "Title",
    completefunc: function (xData, Status) {
    console.log(xData);
    $(xData.responseText).find("Version").each(function(i) {
    console.log("Name: " + $(this).attr("Title") + " Modified: " + $(this).attr("Modified"));
    </script>
    What’s more, we can also get request to Versions.aspx page to get the list item version.
    There is an article about this topic, you can have a look at it.
    http://stackoverflow.com/questions/24423657/sharepoint-2013-get-splistitem-versions-via-rest
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to Hide dropdown context menu (ECB?) for items in a list?

    Hi everyone,
    I don't know the appropriate way to name this thread. I'm sure there is a technical term but I'm not sure what it is. Instead, I will describe.
    In any list, when you hover over an item, a dropdown option appears with options like "View Item" "Edit Item" "Compliance Details", etc.
    I would like to completely hide this context menu from the user as it only confused novice users trying to use a simple discussion board. Any way to do this easily, and ideally without Designer?
    thanks
    david

    David,
    To remove this you need to change the column. By default SharePoint would have this column associated with the view to easily edit the item. 
    Step to remove:
    1) Go to list settings
    2) In list settings navigate to the "All Items" view or the current view you have under the view section.
    3) uncheck the column [Column Name](linked to item with edit menu)
    4) check/select the column [Column Name] (linked to item)

Maybe you are looking for

  • How can i stop reinstalling adobe flash player everytime i boot up?

    I always have to do a fresh reinstallation of adobe flash player if i want to watch a video online,everytime i boot up..iam running windows 7 64 bit, and have the latest version of firefox running on my laptop!

  • Internal Hard Drive Issue

    I'm having an issue that I can't quite understand. After inserting the install disk and rebooting, I select the language, and I go to select the hard drive to install to. Unfortunately, the only drives that show up are the external drives. I don't ha

  • Sapxpg - connection to partner broken (SLD - SolMan)

    Hello, I've problem wtih my RFC-Connection SAPXPG_DBDEST_<host>. To collect data for dba-cockpit, we need a RFC-Connection between SolMan and SLD: RFC Destination     SAPXPG_DBDEST_HBMESA5A Connection Type  T  TCP/IP Connection                 Descri

  • Smart mailbox stopped working

    Smart Mailboxes no longer catching incoming mails that fit the criteria. (the ones that should have been caught/tagged are in the INBOX, but not showing up in the virtual smartmail boxes. And now also, no previously 'caught' emails show up at all if

  • Session Managed Beans + Session Destory

    Hey guys, I have an simple question. How can I destroy an Session in JSF. For Example if I have an Manged Beans in scope Session:         <managed-bean>           <managed-bean-name>User</managed-bean-name>           <managed-bean-class>example.user.