pegros / PEG_LIST

Set of configurable/actionable LWC list components for Salesforce Lightning UX
MIT License
20 stars 9 forks source link

[feat] sfpegListCmp - Keyword input for SOSL #24

Open pegros opened 1 year ago

pegros commented 1 year ago

Is your feature request related to a problem? Please describe. Currently, SOSL may only be used in a static way, e.g. to find data related to a User/Record context. It would be great to let the User enter keywords in the component to refine a predefined SOSL search.

Describe the solution you'd like Similarly to the current filter option which filter records loaded in the component, a find popup would enable users to enter additional search keyword provided as input to the SOSL query. The search would then be refined on server side instead of locally, possibly enabling to start with a fully empty list when no keyword is entered. The option would be to have a specific {{{SEARCH}}} token available for SOSL queries to be replaced with the text entered by the User in the component.

Describe alternatives you've considered This might be a new feature of the sfpegListCmp component or a new wrapper component displaying a search bar above the list and injecting the search keyword within the current context property.

Additional context N/A

pegros commented 1 month ago

Similar wrapper component available in the examples : see sfpegQueryCmp.