If you read data from the data base, this is no problem with regard to the consistency of the data model. For this kind of operation programming with virtual widgets is a very simple method.
Program the following sequence to read data from the data base:
In case of relations widgets you should always specify the full name of the relation (entity-1, entity-2 and view) and then define the parent element of the relation with the function dal_wdg_set_ide.
Via the function dal_mas_ret_len_rec you can determine the number of records found.
For instance, you could read a field entry with dal_mas_rea_fld.