Redirect on internal list after related item deletion

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
User avatar
Alexey Babin
Posts: 23
Joined: Wed May 11, 2016
Contact:

30 May 2016

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.

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

31 May 2016

What version of Forms Designer are you using? It can be seen in the bottom right corner.


User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

31 May 2016

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.

User avatar
Alexey Babin
Posts: 23
Joined: Wed May 11, 2016
Contact:

31 May 2016

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

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

31 May 2016

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)

User avatar
Alexey Babin
Posts: 23
Joined: Wed May 11, 2016
Contact:

31 May 2016

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

User avatar
Alexey Babin
Posts: 23
Joined: Wed May 11, 2016
Contact:

31 May 2016

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>

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

31 May 2016

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.

User avatar
Alexey Babin
Posts: 23
Joined: Wed May 11, 2016
Contact:

31 May 2016

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)}

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 18 guests