Quick Search

Tags: 

Hi ,
Can anyone help with code/Widget as i need QUICK SEARCH option (Search with ID and Customer Name) like Auto complete.

Comments

The OOTB widgets don't do exactly what you are looking for, but they can be extended to work for your situation. What you are looking for is a combination of the Grid widget (for displaying the results of the search) and a Filter-type widget that can take a search parameter typed in by the user; in your case this is either a ID or String.

OOTB there is a Keyword search/filter widget that takes text values (standard/search/KeywordText) but last time I checked it was tied to answer searches and couldn't be targeted to an arbitrary report filter. It is pretty easy to make a custom version that does what you are looking for. Whenever we do this type of thing, we tend to base our custom widget (by extension) off of the standard/search/FilterDropdown widget as it does more of what we are looking for than the KeywordText filter. All you should need to do in your extended version is change the view.php to contain a text-type input (or numeric if you are supporting HTML5) and change the logic.js _getSelected method to retrieve the value from the text/numeric input instead. There are probably some other cleanup type things you would want to do, or some additional widget attributes you'd want to add to make it more re-usable, but this should give you a basic idea of what to do.

Thank you Andy for the stunt reply. Can you please send me off exact code related on my queries. It's bit helpful for me.

Thanks for the reply. Please help with Advance search like i am searching with Contact ID / Customer Name it will show full data from the table.

Please help with Advance search like i am searching with Contact ID / Customer Name it will show full data from the table.

Zircon - This is a contributing Drupal Theme
Design by WeebPal.