From http://spservices.codeplex.com/discussions/429797
As a newbie, I assume I'm doing something wrong. I got SPFilterDropDown to work using column SortOrder from the parent list. However I need the list in descending order. But when i traced through the code, I could not see a way for <OrderBy>
in the camlQuery to get an "Ascending='FALSE'".
I can tweak the SPFilterDropDown and make it work using a new arguement (e.g. relationshipListSortAscending), but I'd rather not.
Thanks,Tom
<script type="text/javascript">
$(document).ready(function() {
$().SPServices.SPFilterDropdown({
relationshipWebURL: "/",
relationshipList: "Plan Dates",
relationshipListColumn: "Title",
relationshipListSortColumn: "SortOrder",
columnName: "Plan Date",
listName: $().SPServices.SPListNameFromUrl(),
CAMLQuery: "<IsNotNull><FieldRef Name='Title' /></IsNotNull>",
debug: true
});
});
</script>
Comments: Implemented in 2013.01
As a newbie, I assume I'm doing something wrong. I got SPFilterDropDown to work using column SortOrder from the parent list. However I need the list in descending order. But when i traced through the code, I could not see a way for <OrderBy>
in the camlQuery to get an "Ascending='FALSE'".
I can tweak the SPFilterDropDown and make it work using a new arguement (e.g. relationshipListSortAscending), but I'd rather not.
Thanks,Tom
<script type="text/javascript">
$(document).ready(function() {
$().SPServices.SPFilterDropdown({
relationshipWebURL: "/",
relationshipList: "Plan Dates",
relationshipListColumn: "Title",
relationshipListSortColumn: "SortOrder",
columnName: "Plan Date",
listName: $().SPServices.SPListNameFromUrl(),
CAMLQuery: "<IsNotNull><FieldRef Name='Title' /></IsNotNull>",
debug: true
});
});
</script>
Comments: Implemented in 2013.01