How to create a specific window from create table action


I have created a different window for the create action. I thought I could open a different window by specifying the windowType in XML but it does not seem to work. How can I specify that a different window than the standard edit window should be opened?

                <action id="create"
                <action id="edit"/>
                <action id="remove"/>

Regards, Edwin.

1 Like

Sorry, this does work. I somehow had the controller extending AbstractWindow instead of AbstractEditor.

This also works although I prefer the declarative way:

 * Copyright (c) 2016 qms
package com.xl2build.qms.web.organization;

import java.util.Map;

import javax.inject.Named;

import com.haulmont.cuba.gui.components.AbstractLookup;
import com.haulmont.cuba.gui.components.actions.CreateAction;

 * @author Edwin
public class OrganizationBrowse extends AbstractLookup {
	private CreateAction orgCreate;

    public void init(Map<String, Object> params) {

It is possible to define custom windowId in the screen controller.
The code below should work.

    private CreateAction someEntitiesTableCreate;

    public void init(Map<String, Object> params) {

Is it possible to have multiple edit actions, each opening their own screen? All the examples I have seen so far seem to replace the create/edit action.

1 Like