Desktop version

Main > Forum > 1C:Enterprise Platform > Bugs and functionality requests to 1C:Enterprise platform > How to search a exact text in a drop down list?

Forum

Search UsersRules
How to search a exact text in a drop down list?
#1
Just came
Points:: 0
Joined:: Apr 10, 2017

Hello 1C supports,

How can i search a exact text in a drop down list ? Please see these pictures below.

Here is my search text



And here is the result i want



As you see the result is totally different as i want. I can see the symbol " " can not read properly in this case. I also tried put the text in "" but it is not the search box like I thought. Please help me.

Profile
#2
Just came
Points:: 0
Joined:: Jan 22, 2015

You can change the behavior of getting data for drop-down list either using AutoCompleteText event (if you need this in particular form) or using method ChoiceDataGetProcessing of your CatalogManager (if you need this in all cases). In both cases, you need to change ChoiceData value list with your own data (for example, getting from a query with 'LIKE "%SearchString%"' condition.

Profile
#3
Just came
Points:: 0
Joined:: Jan 22, 2015

If you are using FullTextSearch you also can look FullTextSearch.CreateList method.
And also with your own list, you will loose green highlighting of the text so you'll need to change Representation of element with formatted string.

Profile
#4
Just came
Points:: 0
Joined:: Apr 10, 2017

Thank you Valerii Diachenko, I got it finally

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.