# Search suggestion

**URL:** <https://forum.inductiveautomation.com/t/search-suggestion/17329>\
**Category:** Ignition\
**Created:** [March 12, 2018, 2:57pm UTC](https://forum.inductiveautomation.com/t/search-suggestion/17329 "2018-03-12T14:57:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr.K001](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@Mr.K001](https://forum.inductiveautomation.com/u/Mr.K001)\
**Post date:** [March 12, 2018, 2:57pm UTC](https://forum.inductiveautomation.com/t/search-suggestion/17329/1 "2018-03-12T14:57:59Z")

</div>

Hey guys, I was wondering if there is a way to be able to suggest text as a user is typing strings in a search bar, for example we have about 800 different part numbers and I was wondering if there is a way to start showing suggestive data as the user type more strings into the search bar.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 12, 2018, 3:13pm UTC](https://forum.inductiveautomation.com/t/search-suggestion/17329/2 "2018-03-12T15:13:24Z")

</div>

You’ll have to script it, but it’s possible. Turn off “Defer Updates” on that text entry field and set up a propertyChange event that will trigger DB lookups. Or maybe preload the part numbers into a script module dictionary. Anyways, when the string is long enough to be reasonable, generate a popup menu with choices. Just like you’d do for a mouse click, but from the propertyChange.

---

<div class="post-metadata">

**Author:** ![Mr.K001](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@Mr.K001](https://forum.inductiveautomation.com/u/Mr.K001)\
**Post date:** [March 12, 2018, 3:17pm UTC](https://forum.inductiveautomation.com/t/search-suggestion/17329/3 "2018-03-12T15:17:55Z")

</div>

Thanks @pturmel those are good options, I’ll play around with them and see what I can get working.

Right now I have a text field and a small table, they can type a few strings and hit enter and the table shows them the list of suggested results and they can select from there. works but I figured why not try to make it even better you know! 😁

---

<div class="post-metadata">

**Author:** ![manjuyadav95.m](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@manjuyadav95.m](https://forum.inductiveautomation.com/u/manjuyadav95.m)\
**Post date:** [December 16, 2021, 7:15am UTC](https://forum.inductiveautomation.com/t/search-suggestion/17329/4 "2021-12-16T07:15:26Z")

</div>

How did you do it? I am also trying out the same scenario with the text field for search on the table ...

Plz, help me if you could..below is my topic link ...

> [@How to scroll to the highlighed row of the table](https://forum.inductiveautomation.com/t/how-to-get-the-highlighed-row-of-the-table-on-top/54039/24):
>
> yes just a custom property which initial value is set so it will tigger the RowFocus. And after receaving the message “FocusConfirmed” on the table it will be set so it nolonger send the message RowFocus if not self.props.custom.confirmed: system.perspective.sendMessage("RowFocus")
