Redirect on internal list after related item deletion
- Alexey Babin
- Posts: 23
- Joined: Wed May 11, 2016
- Contact:
Hi, Dmitry,
I reprodused the issue and can give more detailed info when problem take place. Everything is actual wnen I do not have "Title" field, containing "..." for edit/open and so on. I have only small icon for edit - it called "Изменить - (ссылка на изменение элемента)" in view design page. When I add to view field "Title" with link to related item, the behaviour of forms is such as it is supposed to be. So the problem is right there - in the icon link.
According to another ptoblem, the case is I need to add new child item(s) from parent's edit form. So when I do everything as you described in both posts about NEW and EDIT form - the confusion is in the JavaScript for New form of children - find it below:
$('#_fd_parent_temp > input').val(window.top.fd._tempParentId()); //This part for create new item from NEW parent
//this code for create new child for existing item via EDIT form.
var parentID = fd.getSourceID();
if (parentID) {
fd.field('ParentId').control().value(parentID);
}
And when new children is created for existing parent from EDIT form, exact this item appears in the related-list for new parent.
I reprodused the issue and can give more detailed info when problem take place. Everything is actual wnen I do not have "Title" field, containing "..." for edit/open and so on. I have only small icon for edit - it called "Изменить - (ссылка на изменение элемента)" in view design page. When I add to view field "Title" with link to related item, the behaviour of forms is such as it is supposed to be. So the problem is right there - in the icon link.
According to another ptoblem, the case is I need to add new child item(s) from parent's edit form. So when I do everything as you described in both posts about NEW and EDIT form - the confusion is in the JavaScript for New form of children - find it below:
$('#_fd_parent_temp > input').val(window.top.fd._tempParentId()); //This part for create new item from NEW parent
//this code for create new child for existing item via EDIT form.
var parentID = fd.getSourceID();
if (parentID) {
fd.field('ParentId').control().value(parentID);
}
And when new children is created for existing parent from EDIT form, exact this item appears in the related-list for new parent.
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Thanks, Alex. We've fixed the issue. If you're using sp on-premises, download the latest version from our website. If it's sp online, just clear the browser cache.
- Alexey Babin
- Posts: 23
- Joined: Wed May 11, 2016
- Contact:
Hi, Dmitry. It's a great news, and now item deletion works well. Thank you!
According second problem I'll create another tread.
According second problem I'll create another tread.
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Unfortunately, for now the only way is using the quick-edit mode that does not cause refreshing a page after deleting.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 24 guests