Skip to main content Skip to complementary content

AddFieldFromExpressionAsync Method

Overloads

AddFieldFromExpressionAsync(String, String)

Adds a field on the fly.

Declaration

      Task<bool> AddFieldFromExpressionAsync([QixName("qName")] string name, [QixName("qExpr")] string expr)
    

Parameters

Type Name Description
System.String name

Name of the field.

System.String expr

Expression value. It is not possible to use all aggregation functions. For example, you cannot add a field on the fly with an expression that uses the Sum or Count aggregation functions.

Returns

Type Description
System.Threading.Tasks.Task<System.Boolean>

Remarks

The expression of a field on the fly is persisted but not its values.

AddFieldFromExpressionAsync(AsyncHandle, String, String)

Adds a field on the fly.

Declaration

      Task<bool> AddFieldFromExpressionAsync(AsyncHandle asyncHandle, [QixName("qName")] string name, [QixName("qExpr")] string expr)
    

Parameters

Type Name Description
AsyncHandle asyncHandle

Handle to asynchronous method request

System.String name

Name of the field.

System.String expr

Expression value. It is not possible to use all aggregation functions. For example, you cannot add a field on the fly with an expression that uses the Sum or Count aggregation functions.

Returns

Type Description
System.Threading.Tasks.Task<System.Boolean>

Remarks

The expression of a field on the fly is persisted but not its values.

AddFieldFromExpressionAsync<T>(AsyncHandle, Func<Response, T>, String, String)

Adds a field on the fly.

Declaration

      Task<T> AddFieldFromExpressionAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult, [QixName("qName")] string name, [QixName("qExpr")] string expr)
    

Parameters

Type Name Description
AsyncHandle asyncHandle

Handle to asynchronous method request

System.Func<Response, T> onResult

Continuation function

System.String name

Name of the field.

System.String expr

Expression value. It is not possible to use all aggregation functions. For example, you cannot add a field on the fly with an expression that uses the Sum or Count aggregation functions.

Returns

Type Description
System.Threading.Tasks.Task<T>

Type Parameters

Name Description
T

Remarks

The expression of a field on the fly is persisted but not its values.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!