Delete a record from a Related Item View?

rss

Posted by jpeszleny - Nov 18 ’13 at 11:33

Is it possible to delete a list item from a Related Item View?

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 22 days
    #1 by Dmitry Kozlov Nov 19 ’13 at 07:05

    Hello,

    Sure, you can delete related item from context menu:

    Delete Related item from SharePoint

  • jpeszleny
    Member
    Member for: 6 years 23 days
    #2 by jpeszleny Nov 19 ’13 at 02:23

    Thanks for your replay. You answer works however it only works if you are showing the "Title" column in the related list. Is there any way of doing this without showing the "Title" column?

  • rlmitch01
    Member
    Member for: 6 years 1 day
    #3 by rlmitch01 Dec 17 ’13 at 03:54

    Hi,

    In native SharePoint views, a user can select an item using the individual item checkbox if the title field is not present.  These checkboxes do not appear in the SP Forms releated item view.  Is this a feature that can or plans to be supported in SP Forms?

    Thank you!

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 22 days
    #4 by Dmitry Kozlov Dec 18 ’13 at 01:23

    [#3]: We disabled individual checkboxes in our solution because they cause issues with ribbon. Which group actions would you like to have?

  • rlmitch01
    Member
    Member for: 6 years 1 day
    #5 by rlmitch01 Dec 19 ’13 at 10:34

    [#4]:

    [#4]: We would like to select multiple documents by checking them and then either delete them or select a 3rd party add-on that converts them to .pdf and emails them.  If this is not feasible, do you have any thoughts on how we could accomplish whis while still using your product?  Thanks!

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 22 days
    #6 by Dmitry Kozlov Dec 23 ’13 at 05:23

    [#5]: You can open the designed form in SharePoint Designer and change TabularView property of required view to TRUE. You will see checkboxes near the list items, but you have to add your own Delete and Convert to PDF links into your form and handle clicks by custom JavaScript.

  • arish
    Member
    Member for: 3 years 7 months 19 days
    #7 by arish Apr 23 ’16 at 04:19

    hi i am also using related items in spform and having issue with Delete . . . so i checked this forum and add title field but i dont want to show all the menuitems in ECB so can you please explain how we can only show  Edit and Delete items in (menu ECB) and hide Workflows, Advance and share. . . I am using javacript and jquery CSS which is not working fine i-e it shows full menu items first and  after 2 3 seconds then it hides and shows only Delete and Edit. . . but if you have any solution better please let me know

     

    PS : Main issue is Delete is available on Ribbon Toolbar in related items and when we delete using this button then it will redirect to related list not current spform

    Thanks

  • rostislav
    rostislav
    Moderator
    Member for: 4 years 7 months 6 days
    #8 by rostislav Apr 25 ’16 at 05:25

    [#7]:

    To hide the Delete button from the ribbon add the following code to the display form:

     if (window.top !== window.self) {
    	$('[id^="Ribbon.ListForm.Display.Manage.DeleteItem"]').parents('.ms-cui-row').eq(0).hide();
    }
  • arish
    Member
    Member for: 3 years 7 months 19 days
    #9 by arish Apr 29 ’16 at 06:51

    if i hide this delete button from ribbon then there is one option left to delete which you described by using Title field  Menu Item and if this is the only solution then how can i show only delete option in menu Item. . (not remaining which is like Workflow, Advance, Share, View Item etc.) . . . .

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 22 days
    #10 by Dmitry Kozlov May 2 ’16 at 12:19

    [#9]: Hi,

    Please, insert the following code into CSS-editor of Forms Designer:

    .ms-MenuUIULItem[text='View Item'],
    .ms-MenuUIULItem[text='Compliance Details'],
    .ms-MenuUIULItem[text='Manage Permissions'] {
    	display: none;
    }
    
Displaying 1 to 10 of 10 messages