Page 1 of 2

linkToItem in Related Items don´t work

Posted: 12 May 2017
by gaj
Hallo,

If i click on a Link of an Related Itemrow the related Item don´t show up. Only a totaly white messagewindow is shown!!
But if i use the context-menue of the link and use "open in separat window or Register" then related Item is shown correctly!!

What is the Problem?

thx for help.

Re: linkToItem in Related Items don´t work

Posted: 12 May 2017
by Dmitry Kozlov
Hi,
Could you provide both URLs: one from an iframe that is opened when you click a row and another from a separate window?

Re: linkToItem in Related Items don´t work

Posted: 15 May 2017
by gaj
Hi,
the URL which is shown if the mouse is on the "Edit"-Icon of the related Item row:
https://dentalwerk.sharepoint.com/sites ... %7D&ID=130

the final URL which is shown in the browser-URL if i open it in separat window:
https://dentalwerk.sharepoint.com/sites ... 95a805b490

Info:
according to the signed in usergroup and state of the Listitem there is a Redirect to Edit or Display-Form of the list "Versandinfo"

thx for help

Re: linkToItem in Related Items don´t work

Posted: 15 May 2017
by Dmitry Kozlov
What if you paste the URL below into your browser:
https://dentalwerk.sharepoint.com/sites ... %7D&ID=130

Do you get an empty window? Are there any errors in the browser console (press F12 to expand the console)?

Re: linkToItem in Related Items don´t work

Posted: 15 May 2017
by gaj
Hi,
If I paste the URL into the browser everything is OK. Ther is no error ase far as i can say (I´m not a browser Debugging expert!).
Only if i click the "linkToItem" or "Edit-Symbol" I get a smal, White and empty window with "X" to Close.

Re: linkToItem in Related Items don´t work

Posted: 16 May 2017
by gaj
Hi,
we have the following error:
SP_Error.png
SP_Error.png (101.25 KiB) Viewed 2073 times
thx for help.

Re: linkToItem in Related Items don´t work

Posted: 16 May 2017
by Dmitry Kozlov
Have you modified the Edit link via JavaScript? The URL passed into openForm method is corrupted.

Re: linkToItem in Related Items don´t work

Posted: 16 May 2017
by gaj
No

Re: linkToItem in Related Items don´t work

Posted: 17 May 2017
by Dmitry Kozlov
Please, try to comment out all custom JS-code in both parent and child forms. I have tried to reproduce the issue in my environment but with no luck.

I've added a child list and picked a view with the Edit icon. Then opened the parent form and clicked the Edit icon. The child form was opened successfully:
RelatedItemForm.png
RelatedItemForm.png (16.48 KiB) Viewed 2068 times
If it does not help, please, purchase 60 support minutes and provide temporary access to your site and the direct link to the form:
https://spform.com/buy/support-maintenance

Re: linkToItem in Related Items don´t work

Posted: 17 May 2017
by gaj
Hi,

the problem seems to be the redirect-script (according to the logged in user-group as described on your site).

I have one List without redirect where this problem don´t exist!


I have script´s like this for redirect:

<script type="text/javascript">
ExecuteOrDelayUntilScriptLoaded(function () {
fd.openForm('fd_Handelspartner_aca4ff6b-971d-4c79-b874-02c8d2cb2bbd_DisplayForm.aspx');
}, 'plumsail.fd.core.js');
</script>


So how to solve the problem? I have to use the redirect because we have 2 usergroups with different views!
thx.