Can we change page (primitive) variables via nanoflows or any non-input widget?
0
I just found out that Mendix 10.21 has provided the great feature of having primitive page variables. However, support seems very limited, as I see no way to alter the variable value with anything other than an input widget (switch, textbox, radiobutton, etc.). Is there a way to alter the value with a nanoflow or something else that can use logic? It would be great to change the UI based on a status value (enum or int) that can be changed without the use of radio buttons. An example here would be a proposal overview with separate views for draft, sent, confirmed. Instead of using a tabs-widget or helper-entity, a page variable would be great. However, I don't want to click on radio buttons to alter the view. That would be ugly. As written in the release notes of this feature, the page primitive variables are a way to eliminate the necessity of PageHelper objects. Let's take this scenario: I've got a list view of comments and I want to have some text and button that say "No comments yet, be the first to leave a message!". Considering I cannot alter the Page variables, I still need a simple helper object with boolean attribute to discern a list view with and without comments. So basically: what methods do we have to alter page variables?