Skip to content

Pre-defined search via Filter or separate CRUDΒ #3616

@Schyzophrenic

Description

@Schyzophrenic

Running EA 3.1.3

I originally had separate CRUD related to the same entity. Nonetheless, it seems the Autocomplete of the Association field take into account a random (I am sure there is a logic but I didn't check) CRUD for the searchField to apply. I then assume the searchField should always be the same? It seems odd to have separate controllers, to be able to call them separately in the Dashboard but they then get mixed up later on.

Considering things were getting mixed up, I looked at implementing Filters instead. Is there a way to use predefined searches (via Query Builder for instance)?
I don't need forms, just a predefined search. It seems the Filters should be applied to specific fields so it may not fit my need.

As an example, let's imagine we have EntityCrudController with:
$id,
$name
$myLinkedEntity

I would like to display only when $name is null and $myLinkedEntity is null.
If we have a separate CRUD, we can just use a specific QueryBuilder, but then I run into the other issues I mentioned. I feel like I am missing something.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions