Wednesday, 18 December 2013

Enum Base filter on the forms in ax 2009

Formclass declaration
{
QueryBuildrange qbr;
}

DS int method
public void int()
{
    super();
    Qbr = this.query().datasourcetable(tablenum(III_Custtable)).addrange(fieldnum(III_Cutomer,Custtype));
}


PUblic void executeQuery()
{
     Qbr.value(custtype.valuestr());
    super();
}

on control level:-
selection change
public int selection change()
{
int ret;
ret = super();
III_custtable_ds.executeQuery()

}

1 comment:

  1. Hi ,
    i created two enum Fields
    Colors and Numbers; If I select numbers field enum as "One" means then automatically restrict the some enum value in Colors enum fields. it possible or not.

    ReplyDelete