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,9 +1039,20 @@ public class FindWindow extends Window implements EventListener<Event>, ValueCha
|
|||
listItem.appendChild(cellQueryTo);
|
||||
listItem.appendChild(cellRightBracket);
|
||||
|
||||
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
|
||||
String columnName = listColumn.getSelectedItem().getValue().toString();
|
||||
|
|
Loading…
Reference in New Issue