Hi-
Most of the SPServices functions uses multiple lists in your examples. What I have is a single document library called 'Contracts', with a lookup called 'Contract Parent Title' (internal name ContractParentTitle) that self references the Contracts document library and displays the Title.
I'm also storing two other variables that the user selects, a lookup called 'Vendor Name' and a yes/no field called 'Subcontract'. I'd like to filter down the results that display in the 'Contract Parent Title' lookup based on the selections made to 'VendorName' and 'IsSubcontract' using CAML.
Is it possible to self reference the Contracts library using SPFilterDropdown?
I've tried the following bit of javascript in attempt to get it to run but it always results in an error:
Most of the SPServices functions uses multiple lists in your examples. What I have is a single document library called 'Contracts', with a lookup called 'Contract Parent Title' (internal name ContractParentTitle) that self references the Contracts document library and displays the Title.
I'm also storing two other variables that the user selects, a lookup called 'Vendor Name' and a yes/no field called 'Subcontract'. I'd like to filter down the results that display in the 'Contract Parent Title' lookup based on the selections made to 'VendorName' and 'IsSubcontract' using CAML.
Is it possible to self reference the Contracts library using SPFilterDropdown?
I've tried the following bit of javascript in attempt to get it to run but it always results in an error:
$().SPServices.SPFilterDropdown({
relationshipList: "Contracts",
relationshipListColumn: "Title",
columnName: "ContractParentTitle",
CAMLQuery: "<Where><And><Eq><FieldRef Name='IsSubcontract' /><Value Type='Text'>False</Value></Eq><Eq><FieldRef Name='VendorName' /><Value Type='Text'>"+ vendorName +"</Value></Eq></And></Where>",
completefunc: null,
debug: true
});
Any thoughts?