Если Вам поможет приведу наше решение:
ClassDeclaration PurcheTable form добавим
X++:
boolean bf5Pressed; // FIX F5 refresh
executeQuery PurchLine
X++:
public void executeQuery()
{
int pos;
;
// FIX F5 refresh
if (bf5Pressed)
{
pos = purchLine_ds.getPosition();
super();
bf5Pressed = false;
purchLine_ds.setPosition(pos);
}
else
{
super();
}
}
task
X++:
public int task(int _taskId)
{
int ret;
int rowposition;
#task
;
if(_taskId == #taskFormRefreshMenu ||_taskId == #taskFormRefresh_F5 )
{
// rowposition = this.objectSet().getPosition(); // FIX F5 refresh
ret = super(_taskId);
bf5Pressed = true;
// this.objectSet().setPosition(rowposition);
}
else
ret = super(_taskId);
return ret;
}
purchTable
X++:
public void executeQuery()
{
// FIX F5 refresh
bf5Pressed = false;
super();
}
C уважением, Дмитрий.