Web API Core | ComponentOne
C1.Web.Api.DataEngine Namespace / DataEngineController Class / GetUniqueValues(String,String,EngineRequest) Method
The data source key specifies the data.
The key of the field which unique values you want to get.
The engine request.

In This Topic
    GetUniqueValues(String,String,EngineRequest) Method
    In This Topic
    Gets the unique values of a field.
    Syntax
    'Declaration
     
    
    <HttpPostAttribute()>
    <RouteAttribute("{dataSourceKey}/fields/{fieldname}/uniquevalues")>
    Public Overridable Function GetUniqueValues( _
       ByVal dataSourceKey As String, _
       ByVal fieldname As String, _
       ByVal er As EngineRequest _
    ) As IActionResult
    [HttpPost()]
    [Route("{dataSourceKey}/fields/{fieldname}/uniquevalues")]
    public virtual IActionResult GetUniqueValues( 
       string dataSourceKey,
       string fieldname,
       EngineRequest er
    )

    Parameters

    dataSourceKey
    The data source key specifies the data.
    fieldname
    The key of the field which unique values you want to get.
    er
    The engine request.

    Return Value

    The unique value list.
    Remarks
    Now only the DataEngine data and the in-memory data support this action. The cube data doesn't support it.
    See Also