Hello
There is a form named store transaction, this form by default opens with default date range.
Now I created a new button through the extension, this button will add a new range to dataSource
internal final class RetailTransactionTable_handler
{
[FormControlEventHandler(formControlStr(RetailTransactionTable, ShowEReceipt), FormControlEventType::Clicked)]
public static void ShowER_OnClicked(FormControl sender, FormControlEventArgs e)
{
QueryBuildRange qbrDate,status;
FormDataSource fds = sender.formRun().dataSource(formDataSourceStr(RetailTransactionTable,TransactionTable));
//fds.query().dataSourceNo(1).addRange(fieldNum(RetailTransactionTable,TransDate)).
// value(queryRange(fromDate,today()));
fds.query().dataSourceNo(1).addRange(fieldNum(RetailTransactionTable,entryStatus)).
value(strfmt("%1,%2",enum2str(RetailEntryStatus::Posted),enum2str(RetailEntryStatus::None)));
fds.query().dataSourceNo(1).addRange(fieldNum(RetailTransactionTable,Type)).
value(strfmt("%1",enum2str(RetailTransactionType::Sales)));
fds.executeQuery();
}
}
the standard execute query add range so if I added the range to the button, the standard range will replace my range
so I extended the executeQuery method, now I need to know which one calls the executeQuery method ( my button or standard functionality )
If standard functionality my range will be ignored, if the new button I will remove the standard range and put my range.
Sorry the post in the AX2012 community by wrong
Thanks