I really hope somebody can help me with an issue using ng-admin. I created a dashboard with ng-admin and all works fine. There is only one issue, on models where I used boolean field with chooices. Of course there is displayed a dropdown field, but on edit an entry the correct value from database isnt't selected. I also tried to use filterChoices, but won't make any changes... it is still nothing selected after open edit view.
Here is my field declaration:
nga.field('copiable','boolean')
.label('Copy')
.choices([
{ value: null, label: 'Please choose' },
{ value: true, label: 'Yes' },
{ value: false, label: 'No' }
])
.filterChoices([
{ value: null, label: 'Please choose' },
{ value: true, label: 'Yes' },
{ value: false, label: 'No' }
]),
And here you can see my JSON response object:
{xxx, xxx, "copiable":"1"}
Maybe I did a bad mistake here and somebody can help me.