私はComponent
がComponentPresentation
とKeywords
の財産であるODataの子のある属性に従ってオブジェクトを順序付けるにはどうすればよいですか?
localhost:82/odata.svc/ComponentPresentations?$filter=TemplateId eq 2894 and publicationId eq 10&$expand=Component/Keywords?$orderby=Title desc
がComponent
の財産であるこのURLを使ってODataの中でいくつかのカスタムソートをやろうとしている、と私はキーワードのTitle
属性に従ってComponentPresentationをソートします。しかし、キーワードやタイトルはコンポーネントプレゼンテーションのプロパティです
Kewordのタイトルの属性に従って結果を並べ替える方法はありますか? ComponentPresentationの子コンポーネントのコンポーネントの子はどれですか?
と同じくらい簡単ですが、私はどちらか動作するとは思いません。私はそれを試して、Order_DetailsのselectステートメントにQuantityを追加しました:http://services.odata.org/V4/Northwind/Northwind.svc/Orders?$select=OrderID&$expand=Order_Details($select=UnitPrice,Quantity ; $ orderby = Quantity)Order_DetailsがQuantityでソートされているようには見えません。 –