Somebody can see why on earth the search object is...
# suitescript
a
Somebody can see why on earth the search object is not being updated with NEW Internals IDS and always doing the same search on each iteration?
c
var oFilters = paramFilters; is assigned inside the for loop
paramFilters never change
a
Correct
I use
oFilters
in the search creation... line 23
c
the only thing that would change the result of the query is the paramField (which is constant) and the idBatch which is variable but the result will be either 0 or 1
try to isolate the idBatch values and to get the value of that formulanumeric with hardcoded values in the debugger
if that doesn't work, I'd try to see if the GREATERTHAN works with strings at both sides
r
@alien4u JavaScript objects (incl arrays) don’t make a copy on assignment. Your oFilters is just a pointer to the same array as paramFilters