Search in the toolbar improvement to work out of the box

Description

From the discussion on GitHub and Jira

Copying the discussion from https://github.com/idempiere/idempiere/pull/272

Heng Sin Low :
one thing that bother me is the out of the box look of this is poor - you have 1 big empty drop down box at all your data entry window that did nothing.

Diego Ruiz

I think we can think about potential solutions for this:

Hide or inactivate that Searchbox if no saved queries exist. But I think this would be not good for UX, as the toolbar would change from window to window.

Maybe we could add a default option - if no query exists, we show a ** new query ** option that opens the Find window for a new query.

Carlos Ruiz :

This one sounds bad - the memory of toolbar is positional.

Alternatively, we could change the placeholder to something different than "Query Name", like:

if the list is empty: "Click Find button to query"

if the list have saved searches: "Select Query"

Norbert Bede :

regarding to saved queries. for example, in salesforce they have defaults, like all records, x days, my records - so dropdown is never empty.

hengsin commented on Sep 22:
probably a good idea to always show the ** new query ** option.
I like what norbert suggested above as that make it looks useful from the get go.

Environment

None

Activity

Show:
Diego Ruiz
October 27, 2020, 1:17 PM

Hi / ,

I wanted to split this ticket into two pull requests to make it easier to develop and review.

I just created a first pull request for this ticket, it addresses the

probably a good idea to always show the ** new query ** option.

 

About the second part suggested by Norbert. After thinking about it, the first part:

like all records, x days

Sounds like the already existing history records combobox, we could maybe show the 5 existing values (All, year, month, week, day) there and make them work from the toolbar. What do you guys think?

About the second suggestion:

my records

This sounds very useful, a filter with CreatedBy = @#AD_User_ID@, sounds like a global query for all existing windows, this is not doable right now, User Queries needs a Window/Tab and Table. Is this particular filter wanted? If so, how should we address it? A global filter defined in the code? Or extend the current functionality to allow such filters (This sounds like a whole ticket by its own).

Best regards,

Diego Ruiz

Carlos Ruiz
October 27, 2020, 1:44 PM
Edited

a global query for all existing windows

I think it can work like Preference - where you can define preference per User, User+Window, Window, Tenant+Window, etc

Carlos Ruiz
October 27, 2020, 6:04 PM

Sounds like the already existing history records combobox, we could maybe show the 5 existing values (All, year, month, week, day) there and make them work from the toolbar. What do you guys think?

I would prefer to implement the relative dates search in as a mechanism to allow configuring those options, adding them hardcoded means we cannot disable them specific when needed.

Assignee

Diego Ruiz

Reporter

Diego Ruiz

Labels

None

Tested By

None

Affects versions

Priority

Minor
Configure