Closed sah-comp closed 1 year ago
A bean may store some (user definded) virtual fields in a JSON attribute. Lets assume a book bean, looking like so:
and details is stored as JSON in the field details:
$detail = json_encode([ 'isbn' => '1234567890', 'nop' => 128, 'yop' => '1923' ]);
In a scaffold table view we output the attribute yop, meaning year of publication of the JSON field. This field is currently not working for filtering, because the searchterm will be looked up in the JSON field itselt, not in the virtual field yop.
It can be achieved by using JSON_EXTRACT.
A bean may store some (user definded) virtual fields in a JSON attribute. Lets assume a book bean, looking like so:
and details is stored as JSON in the field details:
In a scaffold table view we output the attribute yop, meaning year of publication of the JSON field. This field is currently not working for filtering, because the searchterm will be looked up in the JSON field itselt, not in the virtual field yop.