linkToItem in Related Items don´t work

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
gaj
Posts: 40
Joined: Wed Feb 01, 2017

12 May 2017

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.

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

12 May 2017

Hi,
Could you provide both URLs: one from an iframe that is opened when you click a row and another from a separate window?

gaj
Posts: 40
Joined: Wed Feb 01, 2017

15 May 2017

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

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

15 May 2017

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

gaj
Posts: 40
Joined: Wed Feb 01, 2017

15 May 2017

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.

gaj
Posts: 40
Joined: Wed Feb 01, 2017

16 May 2017

Hi,
we have the following error:
SP_Error.png
SP_Error.png (101.25 KiB) Viewed 2072 times
thx for help.

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

16 May 2017

Have you modified the Edit link via JavaScript? The URL passed into openForm method is corrupted.

gaj
Posts: 40
Joined: Wed Feb 01, 2017

16 May 2017

No

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

17 May 2017

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 2067 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

gaj
Posts: 40
Joined: Wed Feb 01, 2017

17 May 2017

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.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests