Closed thomaspeugeot closed 12 months ago
problem, the generated code does not work properly.
For B1
, The Form for the Astruct.Annarayofb
is not filled with A1
.
While investigating
[
{
"ID": 1,
"CreatedAt": "0001-01-01T00:00:00Z",
"UpdatedAt": "0001-01-01T00:00:00Z",
"DeletedAt": null,
"Name": "association",
"Value": null,
"Options": null,
"CanBeEmpty": true,
"ValueID": {
"Int64": 4,
"Valid": true
}
},
{
"ID": 2,
"CreatedAt": "0001-01-01T00:00:00Z",
"UpdatedAt": "0001-01-01T00:00:00Z",
"DeletedAt": null,
"Name": "association",
"Value": null,
"Options": null,
"CanBeEmpty": true,
"ValueID": {
"Int64": 2,
"Valid": true
}
},
{
"ID": 3,
"CreatedAt": "0001-01-01T00:00:00Z",
"UpdatedAt": "0001-01-01T00:00:00Z",
"DeletedAt": null,
"Name": "association",
"Value": null,
"Options": null,
"CanBeEmpty": true,
"ValueID": {
"Int64": 3,
"Valid": true
}
}
]
All selects seem to have a Value that is set. Poblem, the name of the formselect is not sufficient. Let's make it better to investigate.
[
{
"ID": 1,
"CreatedAt": "0001-01-01T00:00:00Z",
"UpdatedAt": "0001-01-01T00:00:00Z",
"DeletedAt": null,
"Name": "Astruct:Anarrayofb",
"Value": null,
"Options": null,
"CanBeEmpty": true,
"ValueID": {
"Int64": 2,
"Valid": true
}
},
{
"ID": 2,
"CreatedAt": "0001-01-01T00:00:00Z",
"UpdatedAt": "0001-01-01T00:00:00Z",
"DeletedAt": null,
"Name": "Astruct:Anotherarrayofb",
"Value": null,
"Options": null,
"CanBeEmpty": true,
"ValueID": {
"Int64": 7,
"Valid": true
}
},
{
"ID": 3,
"CreatedAt": "0001-01-01T00:00:00Z",
"UpdatedAt": "0001-01-01T00:00:00Z",
"DeletedAt": null,
"Name": "Dstruct:Anarrayofb",
"Value": null,
"Options": null,
"CanBeEmpty": true,
"ValueID": {
"Int64": 1,
"Valid": true
}
}
]
options:
[
{
"ID": 1,
"CreatedAt": "0001-01-01T00:00:00Z",
"UpdatedAt": "0001-01-01T00:00:00Z",
"DeletedAt": null,
"Name": "D1",
"FormFieldSelect_OptionsDBID": {
"Int64": 3,
"Valid": true
},
"FormFieldSelect_OptionsDBID_Index": {
"Int64": 0,
"Valid": true
}
},
{
"ID": 2,
"CreatedAt": "0001-01-01T00:00:00Z",
"UpdatedAt": "0001-01-01T00:00:00Z",
"DeletedAt": null,
"Name": "A1",
"FormFieldSelect_OptionsDBID": {
"Int64": 1,
"Valid": true
},
"FormFieldSelect_OptionsDBID_Index": {
"Int64": 0,
"Valid": true
}
},
{
"ID": 3,
"CreatedAt": "0001-01-01T00:00:00Z",
"UpdatedAt": "0001-01-01T00:00:00Z",
"DeletedAt": null,
"Name": "A2",
"FormFieldSelect_OptionsDBID": {
"Int64": 1,
"Valid": true
},
"FormFieldSelect_OptionsDBID_Index": {
"Int64": 1,
"Valid": true
}
},
{
"ID": 4,
"CreatedAt": "0001-01-01T00:00:00Z",
"UpdatedAt": "0001-01-01T00:00:00Z",
"DeletedAt": null,
"Name": "A3",
"FormFieldSelect_OptionsDBID": {
"Int64": 1,
"Valid": true
},
"FormFieldSelect_OptionsDBID_Index": {
"Int64": 2,
"Valid": true
}
},
{
"ID": 5,
"CreatedAt": "0001-01-01T00:00:00Z",
"UpdatedAt": "0001-01-01T00:00:00Z",
"DeletedAt": null,
"Name": "A2",
"FormFieldSelect_OptionsDBID": {
"Int64": 2,
"Valid": true
},
"FormFieldSelect_OptionsDBID_Index": {
"Int64": 0,
"Valid": true
}
},
{
"ID": 6,
"CreatedAt": "0001-01-01T00:00:00Z",
"UpdatedAt": "0001-01-01T00:00:00Z",
"DeletedAt": null,
"Name": "A3",
"FormFieldSelect_OptionsDBID": {
"Int64": 2,
"Valid": true
},
"FormFieldSelect_OptionsDBID_Index": {
"Int64": 1,
"Valid": true
}
},
{
"ID": 7,
"CreatedAt": "0001-01-01T00:00:00Z",
"UpdatedAt": "0001-01-01T00:00:00Z",
"DeletedAt": null,
"Name": "A1",
"FormFieldSelect_OptionsDBID": {
"Int64": 2,
"Valid": true
},
"FormFieldSelect_OptionsDBID_Index": {
"Int64": 2,
"Valid": true
}
}
]
From the back end, everything seems all right. In the front, the code seems to say that the Value is correctly set.
As for the legacy material stuff