IDEMPIERE-4505: Add new criteria after slected record on advanced tab on Lookp Dialog. (#315)
This commit is contained in:
parent
692533fda5
commit
17dd85d34d
|
@ -1039,8 +1039,19 @@ public class FindWindow extends Window implements EventListener<Event>, ValueCha
|
|||
listItem.appendChild(cellQueryTo);
|
||||
listItem.appendChild(cellRightBracket);
|
||||
|
||||
advancedPanel.appendChild(listItem);
|
||||
advancedPanel.setSelectedItem(listItem);
|
||||
int selectedIndex = advancedPanel.getSelectedIndex();
|
||||
if (selectedIndex >= 0)
|
||||
{
|
||||
ListItem item = advancedPanel.getItemAtIndex(selectedIndex + 1);
|
||||
advancedPanel.insertBefore(listItem, item);
|
||||
}
|
||||
else
|
||||
{
|
||||
advancedPanel.appendChild(listItem);
|
||||
}
|
||||
|
||||
advancedPanel.setSelectedItem(listItem);
|
||||
|
||||
|
||||
if (fields != null){
|
||||
// QueryFrom
|
||||
|
|
Loading…
Reference in New Issue