Use JavaScript in a Link to do a case insensitive search (251 Views)
Reply
Highlighted
Occasional Contributor
Posts: 8
Registered: ‎01-18-2006
Message 1 of 1 (251 Views)

Use JavaScript in a Link to do a case insensitive search

Hi,

 

atm we build some RAD function to do a case insensitive search like this:

  

Spoiler

if (not null(callback.contact.nachname in $File)) then ($suchstr=toupper(substr(callback.contact.nachname in $File, 1, 1)))

if (not null(callback.contact.nachname in $File)) then if (lng(callback.contact.nachname in $File)>1) then ($suchstr=$suchstr+substr(callback.contact.nachname in $File, 2))

if (not null(callback.contact.nachname in $File)) then ($query="(last.name#$suchstr or last.name#(callback.contact.nachname in $File) or last.name#toupper($suchstr)) and active=true") else ($query="active=true")

Now we want to switch from RAD to JavaScript but we have no idea how to realise that. The actual language is no problem but we can't find a way to access the $File and $query objects in this way.

Can somebody help out with some tips?

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.