Method SetFieldAsQuery
- Namespace
- YndigoBlue.Velocity.Model
- Assembly
- YndigoBlue.Velocity.dll
SetFieldAsQuery(ISelectItem, Query)
Sets a field value to be populated from a subquery result.
public void SetFieldAsQuery(ISelectItem selectItem, Query query)
Parameters
selectItemISelectItemThe column to set.
queryQueryThe subquery that will provide the value.
Remarks
The subquery must return a single column and single row. This is useful for copying data from other tables or performing calculations.
SetFieldAsQuery(string, Query)
Sets a field value to be populated from a subquery result.
public void SetFieldAsQuery(string fieldName, Query query)
Parameters
fieldNamestringThe name of the column to set.
queryQueryThe subquery that will provide the value.
Remarks
The subquery must return a single column and single row. This is useful for copying data from other tables or performing calculations.