SPDisplayRelatedInfo is not working

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
praveen
Posts: 9
Joined: Mon Nov 27, 2017

27 Nov 2017

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

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

27 Nov 2017

Hello, praveen!
Where are you trying to access it from? From the console or from the form? Somewhere else?
Cheers

praveen
Posts: 9
Joined: Mon Nov 27, 2017

27 Nov 2017

We are trying it from form

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

27 Nov 2017

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.
Cheers

praveen
Posts: 9
Joined: Mon Nov 27, 2017

28 Nov 2017

I am already using

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

No impact however

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

29 Nov 2017

Read more about using SPServices here - viewtopic.php?f=4&t=150
Hopefully, this information should help you configure JQuery libraries to function correctly.
Cheers

praveen
Posts: 9
Joined: Mon Nov 27, 2017

12 Dec 2017

It started working after using jQuery.noConflict(true)

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 17 guests