query setfilter

cavalcanti_spacecavalcanti_space Member Posts: 49
edited 2014-08-08 in NAV Three Tier
Hello folks,

I'am trying to create a query , but the filters dont work. I get an error ( the left side of the criteria cannot be empty.)

Does anyone know how I can have the same filters as my table filters just below?

Cheers,

Edson

CustSalesPriceQuery.SETFILTER(Starting_Date, '0D|..pSalesHeader."Order Date"');
CustSalesPriceQuery.SETFILTER(Ship_to_Code, '''|pSalesHeader."Ship-to Code"');

lrecSalesPrices.SETFILTER("Ship-to Code",'%1|%2','',pSalesHeader."Ship-to Code")
lrecSalesPrices.SETFILTER(lrecSalesPrices."Starting Date",'%1|..%2',0D,pSalesHeader."Order Date");

Comments

  • Big_DBig_D Member Posts: 207
    Hi Edison

    When you say query you mean a C/AL query or a RTC query?

    If a C/AL Query

    CustSalesPriceQuery.SETFILTER(Starting_Date, '%1|%2', , 0D, pSalesHeader."Order Date"');
    CustSalesPriceQuery.SETFILTER(Ship_to_Code, '%1|%2', ''', pSalesHeader."Ship-to Code"');

    Hope this helps
    Big D signing off!
Sign In or Register to comment.