Page 1 of 1

No data in related item - look up

Posted: 22 Jun 2015
by RMIC
Hello,


I have two lists and those in the Related Items (in two tabs).

I click the Related Items column title (default assigned by SharePoint) I receive related data in the NEW-form.

But when i click in a other column (type look up), which is from another list, I get no data in the Related Items displayed. It appears an error: "This Web Part can not be displayed ...."

I do not understand why?

Re: No data in related item - look up

Posted: 24 Jun 2015
by Dmitry Kozlov
Hi,

Please, compare URLs of forms: opened directly from a list, and another one opened from the related items. Most likely, the second one contains RootFolder parameter. You can get rid of it by placing an HTML-control on top of the child's Edit and Display forms with the following content:

Code: Select all

<script type="text/javascript">
if (GetUrlKeyValue('RootFolder') == '*') {

     window.location = fd.setUrlParam(window.location.href, 'RootFolder', '');

}
</script>

Re: No data in related item - look up

Posted: 26 Jun 2015
by RMIC
This works, thanks!!!