Page 1 of 1

SPDisplayRelatedInfo is not working

Posted: 27 Nov 2017
by praveen
SPDisplayRelatedInfo is not working as expected. While troubleshooting we tested SPServices GetListItems and we are getting error on SPFilterNode

When we changed $(xData.responseXML).SPFilterNode to window.$(xData.responseXML).SPFilterNode , it started working

It seems like SPDisplayRelatedInfo in turn might be calling SPFilterNode which we are not sure. We are not getting any error on browser console while calling SPDisplayRelatedInfo

Please help

Re: SPDisplayRelatedInfo is not working

Posted: 27 Nov 2017
by Nikita Kurguzov
Hello, praveen!
Where are you trying to access it from? From the console or from the form? Somewhere else?

Re: SPDisplayRelatedInfo is not working

Posted: 27 Nov 2017
by praveen
We are trying it from form

Re: SPDisplayRelatedInfo is not working

Posted: 27 Nov 2017
by Nikita Kurguzov
I think that the problem is that there are two JQuery libraries on your site, one comes with Forms Designer and another one is used to work with SPServices. Since our JQuery is limited to the form, it doesn't affect the work of the other JQuery library, but some methods might be unavailable if you try to access them from the form.

So, you must likely just need to use:

Code: Select all

window.$(xData.responseXML).SPFilterNode
and you should be good.

Re: SPDisplayRelatedInfo is not working

Posted: 28 Nov 2017
by praveen
I am already using

window.$().SPServices.SPDisplayRelatedInfo({
columnName: "col",
relatedList: "test list",
relatedListColumn: "Title",
relatedColumns: "col1",
displayFormat: "list"
});

No impact however

Re: SPDisplayRelatedInfo is not working

Posted: 29 Nov 2017
by Nikita Kurguzov
Read more about using SPServices here - viewtopic.php?f=4&t=150
Hopefully, this information should help you configure JQuery libraries to function correctly.

Re: SPDisplayRelatedInfo is not working

Posted: 12 Dec 2017
by praveen
It started working after using jQuery.noConflict(true)