First write code on button clicked event
then select file to import data in table.
void clicked()
{
super();
new MenuFunction(menuitemactionstr(SysDataImportExcel),MenuItemType::Action).run();
}
then select file to import data in table.