Quantcast
Channel: AX Developer Forum
Viewing all articles
Browse latest Browse all 9880

How to put a couple of range in a single query data source

$
0
0

Hi All

        qbds1   = q.addDataSource(tableNum(ProjCategory));

        qbr1    = qbds1.addRange(fieldNum(ProjCategory, CategoryType));

       // qbr1.value(SysQuery::value(categoryType)); 

I need two range so i used below line code rather above  but it is not working.

       qbr1.value(strfmt('(categoryType == %1) && (categoryType ==              %2)',any2int(ProjCategoryType::Item),any2int(ProjCategoryType::Cost)));

        qbds2 = qbds1.addDataSource(tableNum(CategoryTable));

        qbds2.relations(true);

        qbds2.joinMode(JoinMode::InnerJoin);

        qbr2 = qbds2.addRange(fieldNum(CategoryTable, IcCategory));

        qbr2.value(enum2str(NoYes::Yes));

so kindly let me know is there any way that in a single data source  can i put couple of range filter .

 

Regards 

Sumit 


Viewing all articles
Browse latest Browse all 9880

Trending Articles