Page 1 of 3

Redirect on internal list after related item deletion

Posted: 30 May 2016
by Alexey Babin
Related items list is not in quick edit mode.

When I open related item in edit form and delete it (by pressing cross on ribbon), I'm redirected to page, containing related list itself, and all my changes of parent item are lost.

Re: Redirect on internal list after related item deletion

Posted: 31 May 2016
by rostislav
What version of Forms Designer are you using? It can be seen in the bottom right corner.

Re: Redirect on internal list after related item deletion

Posted: 31 May 2016
by Alexey Babin
3.0.8

Re: Redirect on internal list after related item deletion

Posted: 31 May 2016
by rostislav
This problem has been fixed in the version of Forms Designer you're using. Try this: deactivate and then activate the Forms Designer feature in site settings, clear your browser's cache. If it still doesn't work, check the console for errors (press F12, reload the form page and perform the sequence of actions that are giving you problems.). If there are any errors in the console, paste them here.

Re: Redirect on internal list after related item deletion

Posted: 31 May 2016
by Alexey Babin
Reactivation of feature and cleaning the browser cache does not help - still redirecting to list. There are no errors in console, but there are some warnings/info:

DOM7011: Код на этой странице запрещает кэширование вперед и назад. Дополнительные сведения см. по адресу http://go.microsoft.com/fwlink/?LinkID=291337
Файл: fd_%D0%97%D0%B0%D1%8F%D0%B2%D0%BA%D0%B0%20%D0%BD%D0%B0%20%D0%BA%D0%BE%D0%BC%D0%B0%D0%BD%D0%B4%D0%B8%D1%80%D0%BE%D0%B2%D0%BA%D1%83_New.aspx

HTML1300: Произошел переход.
Файл: BizTripTransport

HTML1202: http://portal:8080/Apps/BizTrip/Lists/BizTripTransport выполняется в режиме совместимости, так как установлен флажок "Отображать сайты интрасети в режиме совместимости".
Файл: BizTripTransport

DOM7011: Код на этой странице запрещает кэширование вперед и назад. Дополнительные сведения см. по адресу http://go.microsoft.com/fwlink/?LinkID=291337
Файл: fd_%D0%97%D0%B0%D1%8F%D0%B2%D0%BA%D0%B0%20%D0%BD%D0%B0%20%D0%BA%D0%BE%D0%BC%D0%B0%D0%BD%D0%B4%D0%B8%D1%80%D0%BE%D0%B2%D0%BA%D1%83_New.aspx

HTML1504: Непредвиденный закрывающий тег.
Файл: AllItems.aspx, строка: 99, столбец: 137

(<link id="ctl00_ctl06_CssJQueryUI" rel="stylesheet" type="text/css" href="/_layouts/15/DeskWork/jquery/styles/smoothness/jquery-ui.css"></link>)



SEC7115: Стили :visited и :link могут отличаться только по цвету. Некоторые стили не были применены к стилю :visited.
Файл: AllItems.aspx

Re: Redirect on internal list after related item deletion

Posted: 31 May 2016
by rostislav
Please provide the full URL of the popup iframe (i.e. when the popup is opened, depending on the browser, you'll need to right click anywhere on the popup and find a way to display its URL)

Re: Redirect on internal list after related item deletion

Posted: 31 May 2016
by Alexey Babin
Here is url of parent form:

http://portal:8080/Apps/BizTrip/Lists/B ... e6711198f5

Here is url when internal window is open (it is the same):

http://portal:8080/Apps/BizTrip/Lists/B ... e6711198f5

Here is link to edit related item:

http://portal:8080/Apps/BizTrip/_layout ... 3%7D&ID=68

Re: Redirect on internal list after related item deletion

Posted: 31 May 2016
by Alexey Babin
And here is iFrame code:

<iframe class="ms-dlgFrame" id="DlgFrame1f8fe3fa-85f7-4bd5-a682-113b9f5491b8" src="http://portal:8080/Apps/BizTrip/_layout ... mp;IsDlg=1" frameborder="0" style="width: 608px; height: 517px;"></iframe>

Re: Redirect on internal list after related item deletion

Posted: 31 May 2016
by rostislav
Did you customize the view via the JSLink attribute?

Please provide the value of the onclick attribute of a link that's used to open the edit form popup.

Please type EditLink2 in the console while you're on the parent form. Provide the result of this expression.

Re: Redirect on internal list after related item deletion

Posted: 31 May 2016
by Alexey Babin
No, I do not use any CSR customizations. JSLink of view is clienttemplates.js (as it was by default in View attribute).

Here is HTML code of link to edit form.

<a href="http://portal:8080/Apps/BizTrip/_layout ... &amp;ID=64" onclick="EditItemWithCheckoutAlert(event, 'http://portal:8080/Apps/BizTrip/_layout ... &amp;ID=64', '', '', 'undefined', 'http://portal:8080/Apps/BizTrip', '', '1');return false;" target="_self" dragid="0" draggable="true" class=" ms-draggable"><img border="0" alt="изменить" src="/_layouts/15/images/edititem.gif?rev=23"></a>


here is value of EditLink2 object from console:

(t,i){var u=window["ctx"+String(i)],r;Boolean(u.fd_relateditems)?(r=GetSource,GetSource=function(){return encodeURIComponent(window.location.href.split("#")[0])},n(t,i),GetSource=r):n(t,i)}