Wednesday, June 9, 2010

Refreshing form data but staying on the current record

if you want to refresh a form, but want to stay on the current record you are on, use this code:


void refreshForm()
{
    FormTable current;
    ;

    if (FormTableDataSource.RecId)
    {
        FormTableDataSource_ds.write();
        current.data(FormTableDataSource);
        FormTableDataSource_ds.research();
        FormTableDataSource_ds.setRecord(current);
    }

No comments:

Post a Comment