I got a functionality to implement:
In PurchTable form in am told to create a combox on top of form which used enum as in purchTable.purchstatus field ie:invoiced,openorder,reveived,.
Now on clicking on any one of the above element in combo box i should only get that data in the grid below ie;if i click on invoiced ,record with purch status 'invoiced' will be show.
for this i created a combobox and used overidden method "selectionchange" code of selectionchange():
public int selectionChange()
{
int ret;
ret = super();
if(combobox.selection()==status::invoiced)
{
... what will i have to write here to add range"invoiced" in the datasource
}
if(combobox.selection()==status::All)
{
. .. what will i have to write here to add range"invoiced" in the datasource
}
}