Drop-down sort option based on template is empty

0
In a page, a gallery is implemented with a drop-down sort and the gallery sits inside a data view. The caption of one of the options in the drop-down sort, is based on a template as shown in screenshot below. But when running the app, this option is displayed as empty, see screenshot below. There is a valid (non-empty) PageSetting entity present as $currentObject. And there are no errors in the console.     Does somebody know why the template is not evaluated correctly? Is this probably a bug in the drop-down sort widget?   This example runs in Studio Pro 10.24.2 and the gallery and drop-down sort widgets are from the marketplace module Data Widgets V 3.2.0. This issue also occurs in earlier versions of Studio Pro and the marketplace module Data Widgets.
asked
1 answers
0

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

answered