Computed database fields: READ-ONLY
Author: elim.de.brock@tui.nl (ErikFiets)
I have created a computed (virtual read-only) field in the (Oracle) database. Reading the entity works fine but if I try to store the entity, Uniface tries to store the field causing a database error: "ORA-54017: UPDATE operation disallowed on virtual columns". Is there any way to define a field as read-only so that the field will not be included in the field list when the entity is stored in the database? I tried to set the field syntax to "DIM" but that does not seem to work. Example of computed field: ALTER TABLE JOB ADD (salary NUMBER GENERATED ALWAYS AS (ROUND(salary*(1+comm2/100),2)) VIRTUAL);




