Hi there,
I have a form with a search field on it used to search on the Item description field. When the user enters text in this field I use the following code to search for any item descriptions that contain this text within it :-
SearchStr := '
@*'+"Search Field"+'*';
Item.SETFILTER( Description, Search Field );
The problem with this is that the search yields nothing if the search string contains an ampersand (&) in it.
Does anyone have a workaround for this?
Thanks,
Jay
Answers
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Then changed it to
It didn't work on native, but worked fine on sql.
So you could use "Search Description" field and make the searchstr all UPPERCASE. Or create a new field and make it Code type and copy of description and search on that.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
RIS Plus, LLC
So maybe if you try to include the single quotes in your SearchStr?