In the lastest version of Jmix (FlowUI) I noticed the menu has following options for sending parameters to listView:
However, I didn’t find any documentation that explains how to use it.
I have the following use case:
I have a list screen hr_EmplLoanEsApp.list
and want to call from two different menus as follows:
- An employee user: I want to send an indication that this is opened by an employee. So that the employee’s profile is populated on the screen beforeShow()
I tried the following way to send the parameter value
<item view="hr_EmplLoanEsApp.list"
title="msg://com.inteacc.hr.view.pr.emplloanesapp/emplLoanEsAppListView.title">
<properties>
<property name="userType" value="employee"/>
</properties>
</item>
- Human resource team user. For this screen it may be as follows:
<item view="hr_EmplLoanEsApp.list"
title="msg://com.inteacc.hr.view.pr.emplloanesapp/emplLoanEsAppListView.title">
<properties>
<property name="userType" value="hr"/>
</properties>
</item>
Questions for FlowUI project:
- Is that the right approach to setting the parameter value?
- How can I get the parameter value in my
"hr_EmplLoanEsApp.list"
screen that was passed in from the menu selected by the user? - Can I get code snipped on the use of “properties”, “Query parameters” and “Route parameters”?