I can access an entities association in the label placeholder, but not in the widgets dynamic classes editor?
0
I am trying to create some dynamic breadcrumbs. I am able to access the association chain to fetch the labels of the content to display in the breadcrumbs, which works fine. However, this results in "ghost" icons sine Mendix applies the icons via CSS. To solve this, I attempted using the dynamic classes to only apply the "breadcrumb-item" css class if there was a label to display. Studio Pro does not seem to let me access the same chained associations that I can in the label placeholder editor... I should be able to access the same thing, like seen below for the label placeholder: Is this a limitation of the platform? If so, this needs to be addressed to bring consistency to the editors. You should be able to access the same data from all expression editors on the same widget, since the data is still in scope.
asked
Alex Stump
1 answers
0
Hi Alex Stump,
yes this is a limitation of the platform. Because the dynamic classes are applied client side you only have the context of the objects that were loaded to the client.
To solve your issue you either need to denormalize your data or load the context you want to work with as seperate object (nest data views).