Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82273

Editor and multiple select list

$
0
0

I'm trying to wrap my head around an issue.

I have a MySQL database table for "users" that has a field called "addresses". This address field either has the word "all" or it has a comma delimited list of "id's" from the address table.

I'm trying to figure out how to show this list of addresses so that when a user is added, they can select "all" or select multiple entries with their current entries highlighted?

JS File:

{
                "label": "Addresses:",
                "name": "table_addresses.id",
                "type": "select"
            }   

PHP File:

        Field::inst( 'table_users.addresses' )  
            ->options( 'table_addresses', 'id', 'id' )

and

->leftJoin( 'table_addresses', 'table_addresses.id', '=', 'table_users.addresses' )


Viewing all articles
Browse latest Browse all 82273

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>