How can I have a "Where" clause with "OR&quot

kirkostaskirkostas Member Posts: 127
I want to filter my Customer table in 2 fields but with "OR" operator.
Bring Customers where field1 = 'xxxx' or field2 = 'xxxx'.
How can I do that in Navision?
kirkostas

Comments

  • kirkostaskirkostas Member Posts: 127
    I found it forget it.
    It is with SETFILTER by using |

    I am really sorry.
    kirkostas
  • Sandeep_PrajapatiSandeep_Prajapati Member Posts: 151
    Sandeep Prajapati
    Technical Consultant, MS Dynamics NAV
  • anand-guptaanand-gupta Member Posts: 2
    You can do this use of | sign with SETFILTER---
    SETFILTER("Document Type",'%1|%2',"Document Type"::Payment,"Document Type"::Invoice)
    Anand.......
  • Sandeep_PrajapatiSandeep_Prajapati Member Posts: 151
    You can do this use of | sign with SETFILTER---
    SETFILTER("Document Type",'%1|%2',"Document Type"::Payment,"Document Type"::Invoice)
    No, :!:
    This is for (Field1 = 'xxxx' OR Field1 = 'yyyy') but the requirement is
    (Field1 = 'xxxx' OR Field2 = 'yyyy')
    Sandeep Prajapati
    Technical Consultant, MS Dynamics NAV
Sign In or Register to comment.