For filtering a particular record :
1.First create a table i.e tabcust with fields name , ids(baseenum) , phno , height , weight
2.create a form and drag the table tabcust into data source.
in design take a grid and a combo box give enum type as baseenum1;
{
QueryBuildRange qbr2; // declartion of range variable
}
public int selectionChange()
{
int ret;
ret = super();
Tabcust_ds.executeQuery();
return ret;
}
{
qbr2.value(combobox.valueStr());
super();
}

2.create a form and drag the table tabcust into data source.
in design take a grid and a combo box give enum type as baseenum1;
- In class:
{
QueryBuildRange qbr2; // declartion of range variable
}
- In Data source level . Override a method init()
public void init()
{
super();
qbr2 = this.query().dataSourceName(“tabcust”).addRange(fieldNum(Tabcust , BaseEnum1));
}
public int selectionChange()
{
int ret;
ret = super();
Tabcust_ds.executeQuery();
return ret;
}
- Create a range by overriding method executequery() in data source level:
{
qbr2.value(combobox.valueStr());
super();
}

No comments:
Post a Comment