Hi,
I used the event hander onClicked button to select all the records of lines in datasources
public static void Demo_DeleteButton_OnClicked(FormControl sender, FormControlEventArgs e)
{
FormButtonControl callerButton = sender as FormButtonControl;
FormRun form = callerButton.formRun();
FormDataSource forecastSales_ds = form.dataSource(formdatasourcestr(Demo, ForecastSales)) as FormDataSource;
ForecastSales forecastSalesExpand;
ttsBegin;
for(forecastSalesExpand = forecastSales_ds.getFirst(true) ? forecastSales_ds.getFirst(true) : forecastSales_ds.cursor();
forecastSalesExpand;
forecastSalesExpand = forecastSales_ds.getNext())
{
//Perform your operation in forecastSalesExpand;
}
forecastSales_ds.executeQuery();
ttsCommit;
}
Regards,