Delete a record from a Related Item View?
Posted by jpeszleny - Nov 18 ’13 at 11:33
Is it possible to delete a list item from a Related Item View?
-
Dmitry KozlovAdminMember for: 8 years 9 months 4 days
Hello,
Sure, you can delete related item from context menu:
-
jpeszlenyMemberMember for: 8 years 7 months 7 days
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?
-
rlmitch01MemberMember for: 8 years 6 months 16 days
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 KozlovAdminMember for: 8 years 9 months 4 days
[#3]: We disabled individual checkboxes in our solution because they cause issues with ribbon. Which group actions would you like to have?
-
rlmitch01MemberMember for: 8 years 6 months 16 days
-
Dmitry KozlovAdminMember for: 8 years 9 months 4 days
[#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.
-
arishMemberMember for: 6 years 2 months 4 days
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
-
rostislavModeratorMember for: 7 years 1 month 19 days
[#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(); }
-
arishMemberMember for: 6 years 2 months 4 days
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 KozlovAdminMember for: 8 years 9 months 4 days
[#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; }