This topic is locked
[SOLVED]

 Lookup wizard as an Edit box with AJAX popup

2/13/2020 10:04:00 AM
PHPRunner General questions
lefty author

I have had an issue for some time now with Lookup Wizard Edit box with AJAX popup. It uses starts with only. Is there

a way to change this to search like "contains" like in Advanced Search and Any field Search? As the records in question

I have are complicated descriptions and the user does not always know the full description spelling and dropdown method is too large.
I realize List Page with search option is also available , but it confuses the users with the popup and search - especially with tablet/ipad or phone.

Sergey Kornilov admin 2/13/2020
lefty author 2/13/2020



https://xlinesoft.co...okup_wizard.htm

Section 'Edit box with AJAX popup'


Little confused here. First the explanation in the documentation has been the same for quite some time and explains that it is for multi-selection and secondly even if I try multi-selection I get the red box , meaning

it is using the starts with instead of containing . So if I type like your example
[color="#1E1E1E"]
[color="#1E1E1E"][font="Arial, Helvetica, sans-serif"]

lefty author 2/14/2020



Little confused here. First the explanation in the documentation has been the same for quite some time and explains that it is for multi-selection and secondly even if I try multi-selection I get the red box , meaning

it is using the starts with instead of containing . So if I type like your example
[color="#1E1E1E"]
[color="#1E1E1E"][font="Arial, Helvetica, sans-serif"]


Noticed in the latest build the input box does turn red and t the field label turns red also , meaning there is nothing to input like a mentioned above re ex. 'Co' does not show Accord. So it is using Starting With and Not Contains. Do I need to add something to After ADD table Initialized event to get this working ? I tried this $ajaxSearchContains = true; but that did not work either.
Here are some other post although older but same issue : with none solved.

  1. This is from older documentation but still exists and works the same way see bottom
  2. Example 2
  3. I tried this solution does not work./ Same Issues with newer version.
  4. This solution is outdated for newer code , so can't use this method.

lefty author 2/20/2020



Noticed in the latest build the input box does turn red and t the field label turns red also , meaning there is nothing to input like a mentioned above re ex. 'Co' does not show Accord. So it is using Starting With and Not Contains. Do I need to add something to After ADD table Initialized event to get this working ? I tried this $ajaxSearchContains = true; but that did not work either.
Here are some other post although older but same issue : with none solved.

  1. This is from older documentation but still exists and works the same way see bottom
  2. Example 2
  3. I tried this solution does not work./ Same Issues with newer version.
  4. This solution is outdated for newer code , so can't use this method.


Anyone have any suggestions to this issue? I am surprised nobody else ever had issues with this? Looking for a workaround as I think it is by design.

Sergey Kornilov admin 2/20/2020

Turns out that manual is incorrect (or maybe we changed the default behavior and didn't update the manual).
In either case, to achieve CONTAINS kind of search add the following to AfterAppInit event:

$ajaxSearchStartsWith = false;
lefty author 2/20/2020



Turns out that manual is incorrect (or maybe we changed the default behavior and didn't update the manual).
In either case, to achieve CONTAINS kind of search add the following to AfterAppInit event:

$ajaxSearchStartsWith = false;



Thank You!

D
david22585 2/21/2020



Turns out that manual is incorrect (or maybe we changed the default behavior and didn't update the manual).
In either case, to achieve CONTAINS kind of search add the following to AfterAppInit event:

$ajaxSearchStartsWith = false;



Can this be applied to individual pages instead of the entire project?