This topic is locked

'Contains' miss from lookup fields in Adv search

3/17/2005 12:20:10 PM
PHPRunner General questions
author

How do I get this option back? I need it to select from records with both single and multiple values.
Thanks,

sjnkns

admin 3/24/2005

Hi,
you can modify this section in ..._search.php file:

else

  $a=array("Equals","Contains");

echo "<SELECT ID=\"SearchOption\" NAME=\"asearchopt[]\" SIZE=1 onChange=\"return ShowHideControls();\">";

S
sjnkns 3/24/2005

Hello,
I made the modification but it did not fix the problem, the search still returns records with single values only.
Thanks,

sjnkns

admin 3/25/2005

Hi,
you need to open include\..._functions.php file, find StrWhereAdv function.

Find

if(GetEditFormat($strField)==EDIT_FORMAT_LOOKUP_WIZARD )



and replace with

if(GetEditFormat($strField)==EDIT_FORMAT_LOOKUP_WIZARD && $strSearchOption=="Equals" )

S
sjnkns 3/25/2005

Hi,
That did it.
Thanks Sergey,

sjnkns