I want to edit my artists data using datatables editor component,
each artist has nationality1 and nationality2 (both select tag but independent)
born country and born city (cascade select options)
die country and die city (cascade select options)
my Json data is:
{
"data": {
"countries": [
{
"id": 3,
"isoCode2": "RU",
"name": "Russia",
"nationality": "Russian",
"cities":[
{"id":10, "name":"city1"},
{"id":11, "name":"city1"},
{"id":12, "name":"city1"}
]
}
//...
],
"artists": [
{
"id": 1,
"firstName": "sampleName",
"lastName": "sampleFamily",
"gender": "male",
"nationality1Id": 1,
"nationality2Id": 1,
"bornYear": 1931,
"bornCountryId": 1,
"bornCityId": 10,
"dieYear": 2010,
"dieCountryId": 7,
"dieCityId": 24
}
//...
]
}
}