的Microsoft Dynamics AX过滤数据我有一个功能来实现:基于一个ComboBox
在上午PurchTable形式告知要窗体的顶部,其使用枚举作为purchTable.purchstatus领域,即创建一个COMBOX:发票, openorder,收讫,.
现在单击组合框中的上述元素中的任何一个,我应该只在下面的网格中获得该数据;如果我点击开发票,将显示“开具发票”状态的记录。
为了这个,我创建了一个组合框,并使用overidden法“selectionchange” 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
}
}
感谢您的回复,但我不是在初始化得到.querybuilddatasource在DRP方法降低()method.public void init() { super(); qbrTipo = JAEEMantenimiento_DS.queryBuildDataSource() .addRange(fieldNum(JAEEMantenimiento,Tipo)); } – user2711111