Get Free Trial

Order by a hidden field

Answered
talha asked on September 21, 2022

Hello,
 
Is it possible to order the report according to a value that is hidden but it exists at fields?

2 answers

Public
Maksym Diachenko Maksym Diachenko Flexmonster September 22, 2022

Hello,

Thank you for raising a ticket.

If we understand correctly, you would like to sort the grid based on a hidden field. Although Flexmonster does not provide sorting by a hidden field, there are two ways how you can sort the grid based on a custom sorting rule: 

1. Define a sorting function (see more details):
You can provide your own sorting logic with the sortingMethod API call. This way, you could specify a function that will define the sort order for a certain hierarchy (similar to the Array.sort() method).

2. Define a custom sort order using an array (only for JSON and CSV data sources) (see more details):
You can also specify how Flexmonster should order a field by providing an array of members. On the grid, the field’s members will be displayed in the same order as in the array.

Is this something you are looking for? If your case is different, could you please provide more details on the desired functionality? Are you using the flat or compact/classic grid layout?
Looking forward to your reply.

Best Regards,
Maksym

Public
Maksym Diachenko Maksym Diachenko Flexmonster 6 days ago

Hello,

Hope you are doing well.
Our team is wondering if you had time to check the provided methods for the implementation of custom sorting by a hidden field.
Looking forward to hearing from you.

Best Regards,
Maksym

Please login or Register to Submit Answer