Developer forum

Forum » Ecommerce - Standard features » Missing sort info in QueryResultViewModel

Missing sort info in QueryResultViewModel

Jesper Holm Damgaard
Reply

Hi guys

I am implementing a QueryPublisher template in DW10 and i need to make a dropdown where the user can see the current SortBy field and/or select another. The problem is that QueryResultViewModel does not contain any props with info on how the results are sorted. 

Does anyone know if it is possible to get the sort info?

All the best, Jesper


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Jesper

Yes, they are missing. Just made a pull request adding that information the same way they exist on product list viewmodel.

https://doc.dynamicweb.dev/documentation/fundamentals/dw10release/releasenotes/workItemInfo.html?workitemid=26092

BR Nicolai

Votes for this answer: 1

 

You must be logged in to post in the forum