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

Suggestion Field improvements #2040

Open
alexbudarov opened this issue Apr 8, 2019 · 3 comments
Open

Suggestion Field improvements #2040

alexbudarov opened this issue Apr 8, 2019 · 3 comments
Assignees
Labels
important type: enhancement New feature or request

Comments

@alexbudarov
Copy link
Member

alexbudarov commented Apr 8, 2019

Description of the bug or enhancement

After using SuggestionPickerField (desktop) in Sherlock booking screen and adapting web version of the field - there is feeling that SuggestionPickerField is the best entity selection field: responsive, versatile, easy to use. Below is the list of improvement ideas how we can widen usage of suggestion field in platform for everyone's convenience:

1
Create SuggestionLookupPickerField

It is a kind of LookupPickerField, just with suggestions. If you click "triangle" button - it shows list of somehow loaded options. In Sherlock currently this field is emulated as SuggestionPickerField with button which looks like triangle and calls showSuggestions() method.
Usage example: address search field. When you type search string - the field searches global addresses. If you click triangle button - it should show you the list of recent/favourite addresses.
image

2
Ability to replace all built-in picker fields by SuggestionPickerField for some entities

If SuggestionField is so good - we want it to be used everywhere in the system, at least for some entities which are easy/convenient to search by string.
For example: sec$User could be searched by login, name(s), group name.
Such SuggestionPicker fields can retain "..." button if user needs to find entity via lookup screen.

There should be a configuration point in the system (like ComponentFactory or FieldGroupFactory or xml file) which allows you to register that sec$User's default selection field is SuggestionPickerField with particular properties.
The field should be generated everywhere:

  • field groups
  • editable tables
  • generic filter
  • report input parameters
  • entity inspector
  • ...

3
System-wide SuggestionFields may have various suggestion loading functions, separately for each entity. It can be:

  • FTS search by indexed properties, like in FTS filter.
  • JPQL query ("user login starts with or name contains"),
  • or other custom function

4
If entity's name pattern is not unique database-wide than it's possible that suggestion field needs to have custom options formatter.
Example: In a big company we have two separate instances (employees) with the same name+surname like "Ivan Petrov". So even if name pattern "firstName lastName" is sensible, it makes sense to set custom caption formatting function for user suggestion field.

5 Suggestion picker field to be able to integrate with FTS

This field should be able to specify a certain search config (see the related issue).

Example:
Contract (fields: customer, name, number, date)
Customer (fields: documents, name, banking number)

So in Contract browser, typing a banking number or any other field the field will invoke search and return all corresponding contracts.

@ovchinnikovsp ovchinnikovsp pinned this issue Apr 8, 2019
@jreznot jreznot added the type: enhancement New feature or request label Apr 8, 2019
@jreznot jreznot unpinned this issue Apr 8, 2019
@jreznot
Copy link
Contributor

jreznot commented Apr 8, 2019

Relates to #68

@ovchinnikovsp ovchinnikovsp pinned this issue Apr 8, 2019
@ovchinnikovsp ovchinnikovsp unpinned this issue Apr 8, 2019
@jreznot
Copy link
Contributor

jreznot commented Apr 8, 2019

Depends on #371

@knstvk knstvk added this to the Release 7.2 milestone Jul 15, 2019
@knstvk knstvk assigned t1-cuba and unassigned dtsaryov Jul 15, 2019
@knstvk knstvk removed this from the Release 7.2 milestone Aug 4, 2019
@alexbudarov
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
important type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants