Virtual and Computed Columns in x++
Computed field -
- Computed field: Value is generated by an SQL view computed column.
- During read, data is computed by SQL and is fetched directly from the view.
Virtual field:-
- Is a non-persisted field.
- Is controlled by custom X++ code.
- Read and write happens through custom X++ code.
- Virtual fields are typically used for intake values that are calculated by using X++ code and can't be replaced by computed columns.
Comments
Post a Comment