GetMemberValueByIndex Function

  • Updated

Returns the specified field value of member at an index in collection which can be ordered and filtered using filter expression.

Syntax 1

 

Returns the specified field value of member at an index in collection which can be ordered and filtered using filter expression.

 

GetMemberValueByIndex(collection, index, returnField, defaultReturnValue)

 

 

Arguments:

 

 

 

collection

Collection - A collection.

 

 

index

Integer - The index of the member with the value to return.

 

 

returnField

Field - The field with the value to return.

 

 

defaultReturnValue

Any - Default value of type of returnfield.

Syntax 2

 

Returns the specified field value of member at an index in collection which can be ordered and filtered using filter expression.

 

GetMemberValueByIndex(collection, index, returnField, defaultReturnValue, orderby)

 

 

Arguments:

 

 

 

collection

Collection - A collection.

 

 

index

Integer - The index of the member with the value to return.

 

 

returnField

Field - The field with the value to return.

 

 

defaultReturnValue

Any - Default value of type of returnfield.

 

 

orderby

SortExpression - Field to order by.

Syntax 3

 

Returns the specified field value of member at an index in collection which can be ordered and filtered using filter expression.

 

GetMemberValueByIndex(collection, index, returnField, defaultReturnValue, orderby, filter)

 

 

Arguments:

 

 

 

collection

Collection - A collection.

 

 

index

Integer - The index of the member with the value to return.

 

 

returnField

Field - The field with the value to return.

 

 

defaultReturnValue

Any - Default value of type of returnfield.

 

 

orderby

SortExpression - Field to order by.

 

 

filter

FilterExpression - A filter expression.

Remarks

  • Example: GetMemberValueByIndex(LineItems, 2, Quantity, 1) returns 42.
  • Example: GetMembervalueByIndex(LineItems, 2, Quantity, 1, ProductID) returns 42.
  • Example: GetMemberValueByIndex(LineItems, 2, Quantity, 1, ProductID, Quantity > 10) returns 42.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.