How to implement textinput control and identification - database

I have a text input box where users can add text, however I would like my program to identify the text in the box and match it up with text in a database.
So the user essentially can't add any text which isn't on the database. So the user will type in the text input box and maybe like a quick selection box appears below it to identify what is being added based on the items on the database.
Not sure where to start implementing this.
Textboxes are just normal textinput components at the moment:
<s:TextInput id="searchInput3" includeIn="AddingInput3" x="126" y="304"change="onChange3(event)"/>
Database is just a local xml file

Looks like you meant auto completion in your text input.
You must search for this in your favorite search engine: "flex text input auto complete" and you should get many results.
One such example for the same is:
http://www.packtpub.com/article/building-a-flex-type-ahead-text-input

Related

how to add react clickable button element as text input along with free text in draftjs?

im aiming for a rich text input text component that enable user to type free text but also can insert tag/button-like element to the text box whenever user select something from select dialog similar to multiple selection interaction. think textarea combined with this.
i have tried to create my own contenteditable element, but its painful, i got issues in selection/caret position etc. so im wondering is it possible to do this in draftjs?

Elementary Q: In Ride interface, in text edit tab, the search text field doesn't work. Is it the same for you?

I hope that someone responds to very elementary questions as well as the difficut ones. It's more than oe months that i use Ride for RobotFramework and i could never use the Search button on Text editor tab of Ride.
i write a word (not keyword) and i click the search button ( not Apply Changes button) and nothing happens. is it normal?
Thanks for any insight
The Search Button expects to have the text box on its left filled with the words to search.
You can also select the text and press Ctrl-G that will fill the text box an start the search (from the top of the file). Shift-Ctrl-G does the same but backwards.
This is a very rudimentary search function, but allows to find and replace if you have previously put content in memory (Ctrl-C), you can Search and then Ctrl-V.

How would you add color to individual words in a React input box component?

I'm currently trying to implement a sort of "highlighting" functionality to a React webpage input box.
The idea is that when the user is typing, each word is sent off to be compared to a list, and then I'd like the input text to change color for each word based on the kind of word it is (object, relation, etc.).
So far I think I've got a grasp on how to change the whole input box text color, but I can't for the life of me figure out how to change the color of each of the words individually.
Does anybody have an idea for how to approach this?

How to 'preselect' text in a TextField so that typing something new immediately replaces the previous text?

It is common practice in many UI situations to preselect the text displayed in a text editing field in such a way that if the user starts typing it immediately replaces the displayed text.
This can be useful for example in search field to show the previously searched text (for reuse or editing) while making it easy to search for a new text string simply by start typing.
I've searched for how to do this in TextField, but not found a way yet - is it possible?
We don't have a concept of pre-select and it isn't common in mobile where selection is awkward by comparison. A more common approach here is to have an X button next to the text field which clears the text field instantly. You can easily do it by just adding a button next to the field.

Search text from textbox using dialog in Silverlight

I have reachtextbox and want to search text like notepad in silverlight in separate dialog.. Find text and search that text in huge text entered in richtextbox.
How can I do it using separate dialog like notepad and search text and edit and highlight it in richtextbox?
I'd use a Mediator to send messages between search form and text form. You can declare an event like "OnSearch" in your search form and suscribe to it from your text form. When the event raises, you should send an eventarg with the string you want to search.
The text form should suscribe to the "searchMessage" with a string parameter. The Business layer for text form should implement a "search" method that looks for every string/substring depending on your search options. Then change text color for each coincidence.
Searching strings:
http://msdn.microsoft.com/en-us/library/ms228630(v=vs.80).aspx
You can also use the Find method in RichTextBox.
To change the color of that text you have to set the text as selected and then change the color of that selection:
SelectionStart, SelectionLenght, SelectionColor.

Resources