Hi,
Where can I change the Parts display to directly show all items, without click Search? Thanks.
Hi,
Where can I change the Parts display to directly show all items, without click Search? Thanks.
Hello roy yao,
If you want to sort certain item, you can define it's order in the "Order by" column in the ItemType.
It will be sorted in Ascending order on the search grid.
For example, we have three custom properties in the following ItemType. City, Name and No. of Students. We have configured it so that the items will be sorted by City first, then Name and No. of Students at last.
Here are the search results after sorting:
Assuming you want to sort the data according to the values in columns.
how can I change to sorted in Descending order?
One way is to change the sorting manually directly from the search grid by clicking on the Arrow in particular column
Another way is by writing a server side method OnBeforeGet that adds the orderBy attribute to the request, like this:
this.setAttribute("orderBy","item_number DESC");
return this;
The search results are after sorting on the property "Part Number" in the descending order are:
added this server side method, but seems doesn't work.
Copyright © 2024 Aras. All rights reserved.