On init method you can use code to add range following way.
void init()
{
super();
qbrName = this.query().dataSourceTable(tablenum(InventDimCombination)).addRange( fieldnum(InventDimCombination,Name));
qbrName.status(RangeStatus::Hidden);
qbrItem = this.query().dataSourceTable(tablenum(InventDimCombination)).addRange( fieldnum(InventDimCombination,ItemId));
qbrItem.status(RangeStatus::Hidden);
}