SergioSanchez
6 years agoQrew Trainee
API_DOQUERY Javascript add OR statement
I have the following piece of code (this is the part I am having issues with):
db.rnaRequests.doQuery({
rid: {GTE:rid},
analysisCopyRequired: "1",
requestType: {CT: 'Research'}
})
The JS is working properly. I just need to add an OR statement to the "requestType" query: I need to pick records containing either Research or Bookings.... any idea on how to add that into the current code? Thanks and sorry for the silly question. I just inherited this JS file.
db.rnaRequests.doQuery({
rid: {GTE:rid},
analysisCopyRequired: "1",
requestType: {CT: 'Research'}
})
The JS is working properly. I just need to add an OR statement to the "requestType" query: I need to pick records containing either Research or Bookings.... any idea on how to add that into the current code? Thanks and sorry for the silly question. I just inherited this JS file.