Skip to content

Add an option to pre-filter/sort using SQL the foreign key selection popup dataview #5384

@githubuser181226

Description

@githubuser181226

In relation to #4879 please, consider adding an option to use a query to pre-filter / pre-sort the foreign key dataview, before it's shown inside that quick selection popup window.

In pretty much 99% of the cases when selecting foreign key using the popup I don't need nor want to have to sift through all the available records in the foreign key table.

Imagine having 100s of products to sell, but half of them are out of stock, and you want to record an order. It then becomes much less of a hassle to just open the 100s of product list, filter it and copy and paste the key values by hand, than to use the quick select popup.

I know SQLite doesn't allow for views to be used as the foreign key reference, but that is NOT what I'm asking here for.

Instead I just want the program to display a subset of the records referenced by the foreign key by subquerying it or by using a view.

Please, tell, if you think it is even possible,
Thank you, again, for all the great work you do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions