Form datasource refresh through a class:

Hi,
To refresh a form from class,
Use the arguments which are used from form to pass while calling class. and then refresh the form with the below code.

static void record(custtable _custtable)
{
object custtable_ds;
custtable custtable;
;

select custtable
where custtable.recid == _custtable.record;
custtable_ds = custtable.dataSource();
if(custtable_ds)
{
custtable_ds.write();
custtable_ds.refresh();
}
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s