Each row selection in InfoWindow executes a query for all Related Tabs.I suggest making a query only if 1 row is selected in InfoWindow.
It is necessary to replace the following lines in class InfoWIndow (line 185):replace
contentPanel.addActionListener(new EventListener<Event>() { public void onEvent(Event event) throws Exception { updateSubcontent(); } });
on
contentPanel.addActionListener(new EventListener<Event>() { public void onEvent(Event event) throws Exception { int selectedRecords = getSelectedRowInfo().size(); if (selectedRecords <= 1) updateSubcontent(); embeddedPane.getParent().setVisible(selectedRecords <= 1); } });
Sponsor www.palichmos.ru
Each row selection in InfoWindow executes a query for all Related Tabs.
I suggest making a query only if 1 row is selected in InfoWindow.
It is necessary to replace the following lines in class InfoWIndow (line 185):
replace
contentPanel.addActionListener(new EventListener<Event>() { public void onEvent(Event event) throws Exception { updateSubcontent(); } });
on
contentPanel.addActionListener(new EventListener<Event>() { public void onEvent(Event event) throws Exception { int selectedRecords = getSelectedRowInfo().size(); if (selectedRecords <= 1) updateSubcontent(); embeddedPane.getParent().setVisible(selectedRecords <= 1); } });
Sponsor www.palichmos.ru