Skip to main content
Question

Add a search box to a table's top bar

  • March 21, 2019
  • 0 replies
  • 163 views

Forum|alt.badge.img+10
So we are constantly going back and forth to the table icons to search... we use QBase as a CRM, so for example, we are looking at a customer's record, and if we need to look up another customer, we hit the "Customers" button at the top table bar, then search. I'd like to have that search function on the top, on the line where we have the "new customer" green button, etc. This would save us a lot of clicking around. Any idea if this is possible? I couldn't find any way to edit that bar.

So out of the box it would likely be a good feature enhancement, but currently there is nothing in the settings that has that as a feature. That said - if you're familiar with the Image Onload Technique and feel comfortable with scripting techniques, you could run a script with IOL that dynamically adds HTML to the page when it loads, and then add your own Javascript into the element to achieve the functionality you want. Credit to the link below for the building block behind it.
https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=582&_ga=2.54479343.670650234...

With that - you can run a code page that does something like:

var input_html = "<input id='customer' type='text' placeholder='Search Customer #' style='border-radius:2px;height:25px;font-size: 12pt'>";
input_html += "<span style='cursor:pointer;margin-right: 25px' onclick='searchCustomers()' class='BrandBarIconDark Find DisplayInlineBlock WithText'></span>"
$("#pageNavBarActions").prepend(input_html)
Looks something like this when complete


This will add a search box next to the save button - all you would have to do is configure the searchCustomer() function in your code page and you'd be all set.

Chayce Duncan | Technical Lead
(720) 739-1406 | chayceduncan@quandarycg.com
Quandary Knowledge Base

Another option is to put a search icon on the Dashboard
The Dashbiard would load faster than a report if you limit the Dashboard to non report elements.

Forum|alt.badge.img+12
  • Registered
  • March 22, 2019
There's also the global search on the top row of the screen (magnifying glass); which you can limit in the permissions to specific tables.

Forum|alt.badge.img+10
  • Author
  • Registered
  • March 22, 2019
I think Dan's option is the simpler and cleaner option. I'm not comfortable enough with the coding side of things to go after Chayce's suggestion. I'll give this a shot and report back. Thanks!

Were you referring to me? I�m Mark. Just want to know if my suggestion is what you are going to try next.