Question
Could you please tell me how to insert 2 fields from another table into one Select field?
I have a table called "Assignments" with 2 fields "Number" and "Date", and in the "Document" table, I need to have both "Number" and "Date" from the "Assignments" table in one Select field. Is it not possible with Select?
Answer
To have a display of two fields in Select, we need to create a technical field of type String (visible only to the Creator role). In it, we concatenate the values of the fields that should be displayed in Select.
=: str`#field_1 ++ "-" ++ #field_2`
And in the select code, we choose this hidden field as the display:
=: selectRowListForSelect(table: 'table'; field: 'compound_field')