In Cuba 7 it is possible, to inject the CreateAction in the browsing-Controller, but what is the way to pass a parameter to the called StandardEditor ?
In the manual of Cuba 7 found an hint for passing paramters for programmatic created screens 3.5.3.4.4. Using Screen Parameters in Loaders
But what is the way, when the EditAction/CreateAction … are used ?
for (Screen s: screens.getOpenedScreens().getActiveScreens()) {
In CUBA 7, the standard actions are thin wrappers around screen builders. So instead of injecting/overriding/parameterizing standard actions, just create a custom handler and use the ScreenBuilders API as described in the documentation, for example:
When you create the CustomerEdit class, you add setters and getters for the parameters you wish to pass into the screen. In the example above, the class will have getters and setters for the someParameter field:
class CustomerEdit extends StandardEditor<Customer> {
private String someParameter;
public void setSomeParameter(String param) {
this.someParameter = param
}
public String getSomeParameter() {
return someParameter;
}
}
If you look at the example, you call edit.setSomeParameter(…) just before you call edit.show() which will set the parameter in your screen before it appears.
Is it possible to pass parameters from a 7.x controller StandardEditor to an old 6.x AbstractEditor?
I need to pass parameters to the 6.x collectionDatasource editor screen