In v6, we can refresh the data source as follows -
plantsDs.setQuery("select e from erp$Plant e where e IN (select p.warehouse from erp$RealEstateProject p where p.id = :custom$projId)");
plantsDs.refresh(ParamsMap.of("projId", getItem().getRealEstateProject().getId()));
What will be the equivalent for Data Containers?
artamonov
(Yuriy Artamonov)
May 6, 2019, 6:48am
#2
Hi,
Just trigger the corresponding data loader instead:
plantsDl.setQuery("select e from sample_Customer e");
plantsDl.load();
1 Like
neutrino36
(neutrino neutrino)
August 9, 2019, 11:45am
#4
Unfortunately doesn’t work.
@Subscribe("refreshBtn")
private void onRefreshBtnClick(Button.ClickEvent event) {
plantsDl.setQuery("select e from sample_Customer e");
plantsDl.load();
}
Can you please be more specific?
subbotin
(Andrey Subbotin)
August 9, 2019, 1:56pm
#5
Could you provide a sample project?
neutrino36
(neutrino neutrino)
August 9, 2019, 3:29pm
#6
Inital
Click Search
Click Refresh nothing happens
neutrino36
(neutrino neutrino)
August 9, 2019, 3:34pm
#7
@Subscribe("refreshBtn")
private void onRefreshBtnClick(Button.ClickEvent event) {
resourcesDl.setQuery("select e from crm$Resource e");
resourcesDl.load();
}