Searching for excluded value in a numeric field like ^1

Questions, tips and tricks and techniques for scripting in Servoy

Searching for excluded value in a numeric field like ^1

Postby bender42 » Sat Jul 18, 2009 9:55 pm

Hi,

I would like to search in a numeric or text field for all values not 1. By default the value is "NULL".

As far as the documentation it would be ^1, but that does not give me the correct foundset.

Another mystery is that under OS X I can not write "^1" into the field in searchmode. It always disappears. When I copy - paste it into the field it works.

Any hints?

Thanks Oliver

Servoy 4.1.3 / Client: OS X J2SE 5.0 / Server: WinXP
OScomputing AG
Frankfurt - Germany
Java/Servoy/Database/Security/Cloud-Computing/Typo3
Servoy Alliance Network Developer
User avatar
bender42
 
Posts: 32
Joined: Wed May 05, 2004 11:39 pm

Re: Searching for excluded value in a numeric field like ^1

Postby ROCLASI » Sat Jul 18, 2009 10:18 pm

Hi Oliver,

^ would be searching for NULL.
! is the operator for NOT.
So you should be using !1 as the search criteria for searching all records that are not 1.

Hope this helps.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Searching for excluded value in a numeric field like ^1

Postby bender42 » Sun Jul 19, 2009 11:15 pm

Thanks, that was easy. I have to check the documentation once more.

Oliver
OScomputing AG
Frankfurt - Germany
Java/Servoy/Database/Security/Cloud-Computing/Typo3
Servoy Alliance Network Developer
User avatar
bender42
 
Posts: 32
Joined: Wed May 05, 2004 11:39 pm


Return to Methods

Who is online

Users browsing this forum: No registered users and 38 guests

cron