Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ability to filter or search #51

Open
devmondo opened this issue Jul 16, 2015 · 7 comments
Open

ability to filter or search #51

devmondo opened this issue Jul 16, 2015 · 7 comments

Comments

@devmondo
Copy link

awesome work man, could we have a way to search or filter data ?

@ghost
Copy link

ghost commented Oct 30, 2015

+1

1 similar comment
@rnenjoy
Copy link

rnenjoy commented Feb 8, 2017

+1

@dsernst
Copy link
Contributor

dsernst commented May 21, 2017

Yes, this seems pretty straightforward:

  • add a button / search field to the top of the list of results
  • if it is enabled, add .filter( TEXT_INPUT ) to the query

Yeah?

@mspanish
Copy link

+1

@mspanish
Copy link

@neumino sorry you mentioned on twitter to do a pull request to solve this but I thought a pull request was to submit code, not to download a branch - any possibility that you could post the code here for a quick filter/search?

@mspanish
Copy link

I added a route to get data for just 1 keyword (in my db, the keyword is the primary id) - but I'm a bit confounded as to how to get the table to show just that data. The route is pulling up the data fine, I get the result in the front end and all looks good - but I don't see an easy way to display the record.

My route:

exports.getKeyword = function (req, res) { var primaryKey = req.body.primary; var db = req.body.db; var table = req.body.table; r.db(db).table(table).get(primaryKey).run( connection, {timeFormat: 'raw'}, function(error, result) { if (error) handleError(error); res.json({ error: error, result: result }); }) }

@mspanish
Copy link

ah I prepended an input field on top of the app, which calls this route with the keyword

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants