When opened with a right click on a C_BPartner_ID field, the double click close the panel and set selected business partner in the field.
If you open it from main menu or any window and make a double click, the panel just close.
And users are disturbed because this action don't open Business Partner window (what they expected).
They have to click on Zoom button which is not ergonomic.
I've made some test in order to implement this behaviour.
I've added a new constructor in InfoBPartner :
- Code: Select all
public InfoBPartner(Frame frame, boolean modal, int WindowNo,
String value, boolean isSOTrx,
boolean multiSelection, String whereClause, boolean doubleClick)
{
this(frame, modal, WindowNo, value, isSOTrx, multiSelection, whereClause);
p_doubleClickZoom = doubleClic;
}
and a new method :
- Code: Select all
public void mouseClicked(MouseEvent e)
{
if (e.getClickCount() > 1 && p_table.getSelectedRow() != -1)
{
if (p_doubleClickZoom)
zoom();
else
dispose(true);
}
// no right click / Calc
}
I call this constructor from View / Business Partner Info
It works great but, if i open a second panel from a right click on a C_BPartner_ID field, the 'double click' action just close panel.
It seems that every panels share variables.
Have you any idea on how to implement this properly ?
I think this should be done in Info so every panel which extends it could inherit it.
I think this deserves a ticket ; WDYT ?
Regards,
Nicolas