IDEMPIERE-5935 - Fixes non-updatable product info window subtabs to auto-select first record functionality (#2114)

This commit is contained in:
Marcos Gabriel de Oliveira Favaretto 2023-11-22 23:23:11 -03:00 committed by GitHub
parent 83abb13877
commit bd41a5d8e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -33,10 +33,12 @@ import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.Iterator; import java.util.Iterator;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Map.Entry; import java.util.Map.Entry;
import java.util.Objects; import java.util.Objects;
import java.util.Set;
import java.util.Vector; import java.util.Vector;
import java.util.logging.Level; import java.util.logging.Level;
@ -3548,6 +3550,11 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
((HtmlBasedComponent)contentPanel.getSelectedItem()).focus(); ((HtmlBasedComponent)contentPanel.getSelectedItem()).focus();
contentPanel.getSelectedItem().setSelected(true); contentPanel.getSelectedItem().setSelected(true);
Set<Listitem> selectionList = new LinkedHashSet<>();
selectionList.add(contentPanel.getSelectedItem());
Events.postEvent(new SelectEvent<>(Events.ON_SELECT, contentPanel, selectionList));
} }
setStatusSelected (); setStatusSelected ();