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

New Post: Filtered lookup - Child Drop-down not filtering

$
0
0
Thanks sympmarc and Geoff for the quick responses.

After testing both options, I now get the Can not find relationshipListParentColumn: AgreementParent or relationshipListChildColumn: Title

message.

I only get this message when the relationshipWebUrl: is set to "http://ai-seb03dev-001:5000" The child column is the default SP list "Title" column unchanged. Here is the new code:
<script language="javascript" type="text/javascript" src="http://ai-seb03dev-001:5000/Shared%20Documents/jquery-1.11.1.js"></script>
<script language="javascript" type="text/javascript" src="http://ai-seb03dev-001:5000/Shared%20Documents/jquery.SPServices-2014.01.min.js"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function() {

$().SPServices.SPComplexToSimpleDropdown({
    columnName: "Parent",
    completefunc: null,
    debug: true
});

var field = $("nobr:contains('Parent')").closest("tr");
var itemParent = $(field).find("select");

$(itemParent).change(function(){ChangeOptions(itemParent)});

function ChangeOptions(keyParent) {
    var parentName =$(keyParent).val();
    var myQuery = "<Eq><FieldRef Name='Parent' /><Value type='Choice'>"+parentName+"</Value></Eq>";
    //alert(parentName);
    $().SPServices.SPCascadeDropdowns({
    relationshipWebURL: "http://ai-seb03dev-001:5000",
    relationshipList: "FundingRecordsLive",
    relationshipListParentColumn: "AgreementParent",
    relationshipListChildColumn: "Title",
    relationshipListSortColumn: "Title",
    parentColumn: "Parent",
    childColumn: "Funding",
    CAMLQuery: myQuery,
    //CAMLQueryOptions: "",
    listName: $().SPServices.SPListNameFromUrl(),
    //simpleChild: false,
    //selectSingleOption: false,
    //matchOnId: false,
    //completefunc: null,
    debug: true
});
}
});
I will dive deeper to figure out why the columns are not being found.

Viewing all articles
Browse latest Browse all 6517

Latest Images

Trending Articles



Latest Images

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