mardi 18 septembre 2012

Refreshing a Form with Multiple Root Data Sources


public void closeOk()
{
FormRun formRun;
List dsList;
ListEnumerator dsListEnumerator;
FormDataSource formDS;

super();

// Get an instance of the calling form.
formRun = element.args().caller();

// If the caller is a form, find and refresh the specified root data source.
if(formRun)
{
dsList = formRun.rootFormDataSources();

if(dsList && dsList.elements() > 0)
{
dsListEnumerator = dsList.getEnumerator();

while(dsListEnumerator.moveNext())
{
formDS = dsListEnumerator.current();
if(formDS.table() == tableNum(Table1))
{
formDS.research(true);
break;
}
}
}
}
}

Aucun commentaire:

Enregistrer un commentaire