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

Closed Feature: SPFilterDropDown: Sort Descending [10115]

$
0
0
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

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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