KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Searchable property of field in resource #3378

Closed Alain MATHIEU opened this topic on 5 days ago - 2 comments

Alain MATHIEU commented 5 days ago

Hi, I am using dashboard > admin and created a class that extends Resource. Everything is working fine: the connection to the database is up, the data displayed the way I want. There are two fields with the following properties: sort("desc"), textAlign("right"), sortable(true). All those properties do the job. But when I try to add the property searchable(true) it doesn't work at all. Did I miss something?

KoolReport commented 4 days ago

As you know the admin panel resource has the search box which allows you to search the whole column and table.

For example:

        //Allow searchBox
        $this->listScreen()->searchBox()
        ->enabled(true)
        ->placeHolder("Search customers");

The searchable property in each fields allow you to decide whether the fields are used to be searched. You can allow some fields searchable and some are not.

Alain MATHIEU commented 4 days ago

Quick and accurate response. A big time saver. Thank you

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

Dashboard