Hi everyone is there a way to pass parameters when opening a dialog?
this works when using the ViewNavigator bean, but i am using the DialogWindows bean
You mean this
[FlowUI] Sending parameter to next screen or
Open dialog with parameter ?
Regards
Felix
You may try this:
In list screen controller event
DialogWindow<WorkflowTaskActionDetailView> window =
dialogWindows.detail(this, WorkflowTaskLine.class)
.withViewClass(WorkflowTaskActionDetailView.class)
.editEntity(taskLine)
.withAfterCloseListener(afterCloseEvent -> {
//if (afterCloseEvent.closedWith(StandardOutcome.SAVE)) {
// workflowTaskLinesDl.load();
//}
workflowTaskLinesDl.load();
})
.build();
WorkflowTaskActionDetailView view = window.getView();
view.setActionType("approve");
window.open();
in Detail screen controller:
protected String actionType;
public void setActionType(String aType) {
actionType = aType;
}