Do not use find method for this, it works so slow with big tables. This's the way which Axapta uses with it's own forms:
element.args().lookupField(fieldnum(SMAServiceOrderTable, ServiceOrderId));
element.args().lookupValue(_myServiceOrderId);
SMAServiceOrderTable_ds.executeQuery();
fast etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
fast etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
14 Kasım 2013 Perşembe
4 Temmuz 2013 Perşembe
AXAPTA - Set cursor to a record fast with grid
Findrecord and findvalue methods are so slow for set a record for current.
Instead of these filter method can be use but with filter just filtered records can be view. If you want see all records and set cursor to a specific record can use this way which I found at a blog uses from Axapta with also original lookup forms:
element.args().lookupField(fieldnum(SMAServiceOrderTable, ServiceOrderId));
element.args().lookupValue(_order.ServiceOrderId);
SMAServiceOrderTable_ds.executeQuery();
It's so fast but don't forget to use indexed field for search.
element.args().lookupField(fieldnum(SMAServiceOrderTable, ServiceOrderId));
element.args().lookupValue(_order.ServiceOrderId);
SMAServiceOrderTable_ds.executeQuery();
It's so fast but don't forget to use indexed field for search.
Kaydol:
Kayıtlar (Atom)