Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
SearchFilter question.
Hey guys,
I'm custom coding myself a Next and a Previous button for a list X.
Let's say list X has 1000 items, and I can only show up to 100 at 1 time.
I start with items 1-100, then when I click Next, items 101-200 shows up.
When I press next, I add a filter saying to research items starting from the last value, hence greaterthanorequalto:
filters[1] = new nlobjSearchFilter('internalidnumber',null,'greaterthanorequalto',theSpecifiedID);
Let's say I do this till I reach items 901-1000. Then I want to do a previous. If I use notgreaterthanorequalto, it brings back the items 1-100. Instead of going 900-899-898-... for 100 times, it goes 1-2-3-4 for 100 times.
0