I'm trying to add paging on an external list and so far it does not work 100%. The best references I could find (that actually... kinda... work) are these:
Paging and sorting in sharepoint BCS
I've done like in the posts (I have a .Net Assembly Type Lob System instead of WCF) and all works if I set constant values for the filters in the view. But if I use name placeholders (like {dvt_sortdir}
) I get errors that the value {dvt_sortdir}
can't be converted to System.Int32.
<View ...>
<Method Name="GetEmployeesPaged">
<Filter Name="FilterRowNum" Value="{dvt_firstrow}"/>
<Filter Name="FilterPageCount" Value="30"/>
<Filter Name="FilterSortColumn" Value="{dvt_sortfield}"/>
<Filter Name="FilterSortDir" Value="{dvt_sortdir}"/>
</Method>
...
</View>
In the second post I noticed it's {$dvt_sortdir}
but again it does not work (recreating the list is still no joy).
I've tried all sorts of combinations in SP Designer but nothing works, just plain number. But I don't need constant numbers, I need values at runtime.
I've read a lot and tried a lot and I'm starting to doubt that paging is possible on an external list. So is it possible or not? What's missing from those posts to make it work?