FormDataSource.reread Method [AX 2012]

Rereads the current record from the database.

public void reread()

Run On

Client

Call this method to update the record with the latest changes from the database.

The reread method can be overridden on a form data source. Right-click the Methods node under the data source, point to Override Method, and then click reread.

The following example uses the reread method as part of a method that is used to update a table.

void doRefresh() 
{ 
    salesTable_ds.reread(); 
    salesTable_ds.refresh(); 
  
    salesLine_ds.reread(); 
    salesLine_ds.refresh(); 
  
    interCompanyPurchSalesReference_ds.executeQuery(); 
}

Community Additions

ADD
Show: