GET api/Field/GetDTTFieldChoiceMultilingual?ProjectId={ProjectId}&FieldId={FieldId}&ChoiceId={ChoiceId}

Get field choice list based on field id or field name

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ProjectId

ProjectId

integer

Required

FieldId

FieldId

integer

Required

ChoiceId

ChoiceId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Get field choice list based on field id or field name

API_Data_FieldChoiceNameDefBinder
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Data

FieldChoiceNameDefBinder

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  },
  "Data": {
    "langNames": {
      "1": "sample string 2",
      "3": "sample string 4"
    },
    "ProjectId": 1,
    "FieldId": 2,
    "ChoiceId": 3
  }
}

application/xml, text/xml

Sample:
<API_Data_FieldChoiceNameDefBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding">
    <d2p1:ChoiceId>3</d2p1:ChoiceId>
    <d2p1:FieldId>2</d2p1:FieldId>
    <d2p1:ProjectId>1</d2p1:ProjectId>
    <d2p1:langNames xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfintstring>
        <d3p1:Key>1</d3p1:Key>
        <d3p1:Value>sample string 2</d3p1:Value>
      </d3p1:KeyValueOfintstring>
      <d3p1:KeyValueOfintstring>
        <d3p1:Key>3</d3p1:Key>
        <d3p1:Value>sample string 4</d3p1:Value>
      </d3p1:KeyValueOfintstring>
    </d2p1:langNames>
  </Data>
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</API_Data_FieldChoiceNameDefBinder>