Quantcast
Channel: Dynamics User Group
Viewing all articles
Browse latest Browse all 15740

Filter options

$
0
0

How can include in a SETRANGE only two option property?

CustLedgerEntry.SETRANGE("Document Type",CustLedgerEntry."Document Type"::Refund);
CustLedgerEntry.SETRANGE("Document Type",CustLedgerEntry."Document Type"::Payment);

I have this, but only the first Range is respected
             CustLedgerEntry.RESET;
             CustLedgerEntry.SETFILTER(CustLedgerEntry."Customer No.",Vendor."Vosso Nº Cliente");
             CustLedgerEntry.SETFILTER(CustLedgerEntry."Posting Date",DateFilter);
             CustLedgerEntry.SETRANGE("Document Type",CustLedgerEntry."Document Type"::Refund);
             CustLedgerEntry.SETRANGE("Document Type",CustLedgerEntry."Document Type"::Payment);
     

Thanks       


Viewing all articles
Browse latest Browse all 15740

Trending Articles