Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Need help in highlighting the words in a text (straight table) based on the values associated to a search key(input box).
For example, search key - Vehicle has some associated words as mentioned below and then all the associated words should be highlighted in the text on search.
Vehicle -- cars, bikes, trucks, scooters, motorcycles, SUVS, MUVs,...
TEXT
Excise duty on small cars, scooters, motorcycles and commercial vehicles were brought down to 8 per cent from 12 per cent in the interim-Budget announced in mid-February by the then Finance Minister. Duty cuts were also made for SUVs and large cars from 30 per cent to 24 per cent
1) How can I associate the values to a key and form a dictionary.
2) How can I link this dictionary to the text and perform search.
thanks
Hari
This highlighting individual words is not possible. The text format applied to the whole of the text.
You can add a search object which will allow users to search on specific fields or all fields in you application.
There is no need to create a dictionary of the words you wish to search on, just search on the field.