user78u
(user78u)
September 4, 2017, 5:45am
#1
Hi,
I am using declarative creation method.
@Override
public void init(Map<String, Object> params) {
Set<Customer> entities = (Set<Customer>) params.get("customers");
for (Customer entity : entities) {
customersDs.includeItem(entity);
}
customersDs.refresh();
}
Can any one say me what is “customers” used in params.get(“customers”). Because I am getting null value for entities in this example.
krivopustov
(Konstantin Krivopustov)
September 4, 2017, 7:14am
#2
Hi,
I don’t know what example you are talking about, but “customers” here should be a screen parameter passed when the screen is opened. See a working example here in the ProductBrowse screen.
user78u
(user78u)
September 4, 2017, 7:40am
#3
I am talking about the Declarative creation example, please find the below link
https://doc.cuba-platform.com/manual-6.6/datasource_decl_creation.html
Can you say me, Where I can find the screen parameter.