mardi 7 juin 2011

How to use multiple ranges in Dynamics AX

here is an example :)

void init()
{
    Query                   query = new Query();
    QueryBuildDataSource    qbds;
    QueryBuildRange         qbr;
    Str                     custAccount;
    ;
    super();

    qbds = query.addDataSource(tablenum(CustConfirmJour));
    qbds.addRange(fieldNum(CustConfirmJour, invoiceAccount)).value( element.args().parm());
    qbds.addRange(fieldNum(CustConfirmJour,thy_proformaId)).value(SysQuery::valueNotEmptyString());
    qbds.addRange(fieldNum(CustConfirmJour,thy_proformaIdUsed)).value(enum2str(Noyes::No));

    this.query(query);
}

Aucun commentaire:

Enregistrer un commentaire