Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: .SPDisplayRelatedInfo Problem

$
0
0
I'm trying to use DisplayrelatedInfo, but can't get it to work for some reason.

Here's my code:-

<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
<script language="javascript" type="text/javascript" src="../../Resources/jquery-1.10.0.min.js"></script>
<script language="javascript" type="text/javascript" src="../../Resources/jquery.SPServices-2013.01.min.js"></script>
<script language="javascript" type="text/javascript"> $(document).ready(function() { //alert("jQuery"); alert($().SPServices.SPGetCurrentSite()); $().SPServices.SPDisplayRelatedInfo({ columnName: "FSC", relatedList: "Products", relatedListColumn: "FSC", relatedColumns: ["Description"], displayFormat: "table", debug: true }); </script> FSC is the Display Name of the lookup column in the form, Products is the lookup list and FSC is the Static Name in the Products List.

When I select a value, I get a JavaScript error:-
"Wrong Number Of Arguments Or Invalid Property Assignment."

Can someone help please? Really can't see what I've done wrong.

I'm using jquery-1.10.0.min.js and jquery.SPServices-2013.01.min.js and have confirmed they're both being used.

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>