datatables editor select from a table exclude is null
datatables editor select from a table exclude is null
![marcdekam](https://secure.gravatar.com/avatar/0b21d6c6a774c18b06ff32eeb9395024/?default=https%3A%2F%2Fvanillicon.com%2F0b21d6c6a774c18b06ff32eeb9395024_200.png&rating=g&size=120)
Hi,
I want to include a dropdownlist. in this list I want to include values from a table that match a sql expression 'where field IS NULL'
how do I do this.
this is what I have now and is not giving any resuls in the dropdown.
```
Field::inst( 'ea.id' )
->options( Options::inst()
->table( 'reportengine_cfg'.$_SESSION['dblink'].' e' )
->value( 'e.id' )
->label( 'name' )
->where( function ($q) {
$q->where( 'e.parent_id', 'is null' );}
)
),
````
regards Marc
This question has an accepted answers - jump to answer
Answers
take a look at this please https://editor.datatables.net/manual/php/conditions
Search for "Null values" on that page