SPFilterDropdown CAMLQuery issue
See original GitHub issueHi,
I am working in SP-Online and tried to use the SPFilterDropdown function. The caml below seems to be OK as it is working in other tools. But for same reason it is not working with SPServices.
Environment:
- I have a Library called “Docs” with DocumentSets. I have added a Lookup field pointing to another List called “Processes”
2.) Within the List Processes I have created a LookUp field to “Docs” using the auto generated field “Related Process (Count Related)” and named it “RelatedDocSetCount”.
The Dropdown should only show entries where the column “RelatedDocSetCount” is 0. So used the code below but now my dropdown is empty. Any ideas?
$().SPServices.SPFilterDropdown({ relationshipList: "Processes", relationshipListColumn: "Title", columnName: "RelatedProcess", CAMLQuery: "<Eq><FieldRef Name='RelatedDocSetCount'/><Value Type='Lookup'>0</Value></Eq>", completefunc: null, debug: true });
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Thanks @sympmarc. I might try that. I was trying this on our test server which also couldn’t run workflows. When I tried to perform a workflow on our production site I got it to work, so I have a workflow setup to copy over the value in that lookup (count related) field to another field which I can then use in a calculated field to filter down my drop-down to just Departments with one or more measures.
I can’t tell you how much I appreciate you getting back to me.
If the Measures column is multi-select, I’m not sure the filter you’re using will work. I think what might be returned in that case would be “”. It’s been a while since I used these functions. 😃 What version of SharePoint?