-4

I need help in filter to read OData. I need filter as following while performing oModel.read().

(
  ((USERID EQ 'KSA') OR (USERID EQ 'KSW'))
   AND
  ((USERID NE 'KUMARNISH2') OR (USERID NE 'KUMARNISH3'))
)

Anybody can help me?

Boghyon Hoffmann
  • 17,103
  • 12
  • 72
  • 170
Nishant
  • 1
  • 2

1 Answers1

-1

you should use filters like below:

           oModel.read("/PromoResponsesSet", null, ["$filter= ((USERID EQ
           'KSA') OR (USERID EQ 'KSW')) AND  ((USERID NE 'KUMARNISH2') OR
            (USERID NE 'KUMARNISH3')) "], false,function(orData, response)   
        {  
          },function(oError)   
        {  
            console.log("Error in read");
        }
Ajay Reddy
  • 1,475
  • 1
  • 16
  • 20