IDEMPIERE-4505: Add new criteria after slected record on advanced tab on Lookp Dialog. (#315)

This commit is contained in:
Deepak Pansheriya 2020-10-26 08:51:07 +05:30 committed by GitHub
parent 692533fda5
commit 17dd85d34d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 2 deletions

View File

@ -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