Add Range in FormTable using Button

Hello, I have this table which I want to Filter/Add Range

this is my ExecuteQuery:

public void executeQuery()
{
QueryBuildDataSource qbds;
qbds = this.query().dataSourceTable(tableNum(DMFSalesLineEntity));

if(selectAllWithQty)
{
qbds.addRange(fieldNum(DMFSalesLineEntity, SalesQty)).value(’=100’);
}

super();
}

*The Bold is the Range that I want to run when I clicked the button

here is my Button Clicked:

void clicked()
{

selectAllWithQty = true;
super();
formdatasource.executeQuery();

}

*The Button clicked doesn’t seem to work, and it shows an error:

“FormDataSource object not initialized.”

and if somewhat, I or we fixed this problem, I also want to have the Checkbox(IsSelected) Field, to be Checked/True after the Filter/Add Range.

please help, thanks :smiley:

This has already been answered in the duplicate thread on another forum.