
Above is the picture of my addon Form... The User Inputs the OrderIdFrom & OrderIdTo and clicks search button ..A range of records are
supposed to be filtered in the grid below... for example If the User does the following Inputs
OrderIdFrom = 11 , OrderIdTo = 15 ... All the orderIds in the range e-g 11,12,13,14,15 etc should be filtered in the grid below
PROBLEM : The below ADD Range Code query displays only 2 records ... It takes into account only 2 orderIds ....How to modify it inorder to display the whole range of OrderIds.. ???
// add range OrderId_From
AXW_SerialNumberTable_q.dataSourceName(AXW_SerialNumberTable_ds.name())
.addRange( fieldNum(AXW_SerialNumberTable , OrderId))
.value( OrderIdFrom.text() );
// add range OrderIdTo_to
AXW_SerialNumberTable_q.dataSourceName(AXW_SerialNumberTable_ds.name())
.addRange( fieldNum(AXW_SerialNumberTable , OrderId))
.value( OrderIdTo.text() );
Please Help