Service Manager / Service Center Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

Use JavaScript in a Link to do a case insensitive search

Highlighted
Occasional Contributor

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?