Hi Tien-Loong,
The Drop-down sort widget in Mendix (Data Widgets
module) does not evaluate expressions in captions. Captions in the "Sort on" drop-down are always treated as static text or simple attribute labels.
This is a limitation/bug in the Data Widgets module. It affects Mendix versions 9.x through 10.x with Data Widgets v3.x.
Unfortunately, you can’t make the drop-down sort caption dynamic. But you can work around it. For example, instead of trying to dynamically say "Name = TRUE"
or "Name = FALSE"
, just define two attributes and label them accordingly
This issue has been fixed in the latest version of the Data Widgets module v3.6.0, which was released on 1 October 2025. The release notes mention this bug as follows: