I was trying to create a flattened datastructure with data from two entities (inner join) to have a cartesian product lines, containing only few fields from both entities. Id columns weren’t present since they weren’t unique. In order to rows had primary key, I added the _mockPk column, which was of type integer. I made all fields of datastructure read-only. I added selection member Selected.
The datastructure was loaded by a workflow load step and then showed in a workflow UI step.
I was expecting I will be able to select rows.
Instead I’ve got an error on UpdateData UIController API call.
{"errors":{"input":["The input field is required."],"UpdateData[0].RowId":["Error converting value \"1\" to type 'System.Guid'. Path 'UpdateData[0].RowId', line 1, position 114."],"UpdateData[1].RowId":["Error converting value \"2\" to type 'System.Guid'. Path 'UpdateData[1].RowId', line 1, position 156."],"UpdateData[2].RowId":["Error converting value \"3\" to type 'System.Guid'. Path 'UpdateData[2].RowId', line 1, position 197."]},"type":"https://tools.ietf.org/html/rfc9110#section-15.5.1","title":"One or more validation errors occurred.","status":400,"traceId":"00-874b75481486cd94f64324c82e4f9f73-0ffcbefcf7059c86-00"}
How to replicate
-
Make sure you have at least one record in AllDataTypes where Guid1 column is filled.
-
checkout the following branch
GitHub - origam/origam at workflow-ui-step-with-mockpk-selection -
open workflow Two tables flattend with mockPk selection test
-
check any checkbox