Показать сообщение отдельно
Старый 18.03.2013, 10:21   #26  
DmitryK is offline
DmitryK
Участник
 
179 / 76 (3) ++++
Регистрация: 22.12.2011
Если Вам поможет приведу наше решение:
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 уважением, Дмитрий.

Последний раз редактировалось DmitryK; 18.03.2013 в 10:25.
За это сообщение автора поблагодарили: IvanS (1).