如何限制适配器中的搜索?

发布于 2025-01-26 08:30:17 字数 360 浏览 4 评论 0原文

我已经实施了一个正常运行的适配器,可以正常运行。我在这个论坛上找到了代码。

此适配器列出了客户及其关联的代码:

CUST01 061213
CUST02 086554
OldCust01 654235
...
...
CUST12 876521

目前

如果我在自动完成中搜索“ 12”,则显示: CUST01 061213
CUST12 876521

现在,我希望它仅显示相应的客户,但及其相关的代码:

Cust12 876521

,换句话说,我只希望对6个第一个字符进行搜索。

有办法做到吗?

谢谢。

I have implemented an autocomplete adapter that works fine. I have found the code on this forum.

This adapter lists customers and their associated code :

Cust01 061213
Cust02 086554
oldCust01 654235
...
...
Cust12 876521

At the moment if I search with "12" in the autocomplete it shows :

Cust01 061213
Cust12 876521

And now I would like it to only show the corresponding customer but with its associated code :

Cust12 876521

In other words, I only want the search to be made on the 6 first characters.

Is there a way to do that ?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文