I have two tables: "tasks" and "users". The field "executor" in table "task" points to a record in the table "users" (it uses field "id" as a key).
Here is code from tasks.ds file:
It works well when i use DynamicForm to edit this field: i can see SelectItem with values from "users" table.
But when i tried to use DetailViewer to display record from the "tasks" table, the value for this field is empty:
What is wrong in my *.ds file?
Here is code from tasks.ds file:
Code:
<field name="executor" title="Executor" type="integer" foreignKey="user.id" multiple="false" canEdit="true" canExport="true" hidden="false"> <displayField>nickname</displayField> <filterEditorType>SelectItem</filterEditorType> <optionDataSource>user</optionDataSource> <valueField>id</valueField> </field>
But when i tried to use DetailViewer to display record from the "tasks" table, the value for this field is empty:
What is wrong in my *.ds file?
Comment