POST api/CustomEditorCode/SetSelectedFieldCode
Request Information
URI Parameters
None.
Body Parameters
CustomCodeViewModelName | Description | Type | Additional information |
---|---|---|---|
Categories | Collection of LookupDto |
None. |
|
UseGrids | boolean |
None. |
|
FieldCodes | Collection of CustomCodeDetailViewModel |
None. |
|
SelectedCategoryId | integer |
None. |
|
SelectedFieldCodeId | integer |
None. |
|
SelectedFieldCode | CustomCodeDetailViewModel |
None. |
|
SelectedSubCategory | integer |
None. |
|
IsAddMethod | boolean |
None. |
|
NewUserTextCaption | string |
None. |
|
IsShiftKeyPressed | boolean |
None. |
|
SubCategoryRadio | Collection of RadioButtonDto |
None. |
Request Formats
application/json, text/json
Sample:
{ "subCategoryRadio": [ { "value": true, "visible": true, "enabled": true }, { "value": true, "visible": true, "enabled": true } ], "categories": [ { "id": 1, "idString": "sample string 2", "name": "sample string 3", "parentId": "sample string 4", "description": "sample string 5", "selected": true, "sortIndex": 7, "uniqueId": "ee98d1d2-4f3e-4f4e-a1ec-b5b76c4e00b4", "parentUid": "32435520-51a4-4dfe-bf09-e54bef443d28" }, { "id": 1, "idString": "sample string 2", "name": "sample string 3", "parentId": "sample string 4", "description": "sample string 5", "selected": true, "sortIndex": 7, "uniqueId": "ee98d1d2-4f3e-4f4e-a1ec-b5b76c4e00b4", "parentUid": "32435520-51a4-4dfe-bf09-e54bef443d28" } ], "useGrids": true, "fieldCodes": [ { "description": "sample string 1", "fieldCode": 2, "sample": "sample string 3", "ioType": "sample string 4", "ioTypeId": 5 }, { "description": "sample string 1", "fieldCode": 2, "sample": "sample string 3", "ioType": "sample string 4", "ioTypeId": 5 } ], "selectedCategoryId": 2, "selectedFieldCodeId": 3, "selectedFieldCode": { "description": "sample string 1", "fieldCode": 2, "sample": "sample string 3", "ioType": "sample string 4", "ioTypeId": 5 }, "selectedSubCategory": 4, "isAddMethod": true, "newUserTextCaption": "sample string 6", "isShiftKeyPressed": true }
application/xml, text/xml
Sample:
<CustomCodeViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.ViewModels"> <Categories xmlns:d2p1="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.Dto"> <d2p1:LookupDto> <d2p1:_x003C_Description_x003E_k__BackingField>sample string 5</d2p1:_x003C_Description_x003E_k__BackingField> <d2p1:_x003C_IdString_x003E_k__BackingField>sample string 2</d2p1:_x003C_IdString_x003E_k__BackingField> <d2p1:_x003C_Id_x003E_k__BackingField>1</d2p1:_x003C_Id_x003E_k__BackingField> <d2p1:_x003C_Name_x003E_k__BackingField>sample string 3</d2p1:_x003C_Name_x003E_k__BackingField> <d2p1:_x003C_ParentId_x003E_k__BackingField>sample string 4</d2p1:_x003C_ParentId_x003E_k__BackingField> <d2p1:_x003C_ParentUid_x003E_k__BackingField>32435520-51a4-4dfe-bf09-e54bef443d28</d2p1:_x003C_ParentUid_x003E_k__BackingField> <d2p1:_x003C_Selected_x003E_k__BackingField>true</d2p1:_x003C_Selected_x003E_k__BackingField> <d2p1:_x003C_SortIndex_x003E_k__BackingField>7</d2p1:_x003C_SortIndex_x003E_k__BackingField> <d2p1:_x003C_UniqueId_x003E_k__BackingField>ee98d1d2-4f3e-4f4e-a1ec-b5b76c4e00b4</d2p1:_x003C_UniqueId_x003E_k__BackingField> </d2p1:LookupDto> <d2p1:LookupDto> <d2p1:_x003C_Description_x003E_k__BackingField>sample string 5</d2p1:_x003C_Description_x003E_k__BackingField> <d2p1:_x003C_IdString_x003E_k__BackingField>sample string 2</d2p1:_x003C_IdString_x003E_k__BackingField> <d2p1:_x003C_Id_x003E_k__BackingField>1</d2p1:_x003C_Id_x003E_k__BackingField> <d2p1:_x003C_Name_x003E_k__BackingField>sample string 3</d2p1:_x003C_Name_x003E_k__BackingField> <d2p1:_x003C_ParentId_x003E_k__BackingField>sample string 4</d2p1:_x003C_ParentId_x003E_k__BackingField> <d2p1:_x003C_ParentUid_x003E_k__BackingField>32435520-51a4-4dfe-bf09-e54bef443d28</d2p1:_x003C_ParentUid_x003E_k__BackingField> <d2p1:_x003C_Selected_x003E_k__BackingField>true</d2p1:_x003C_Selected_x003E_k__BackingField> <d2p1:_x003C_SortIndex_x003E_k__BackingField>7</d2p1:_x003C_SortIndex_x003E_k__BackingField> <d2p1:_x003C_UniqueId_x003E_k__BackingField>ee98d1d2-4f3e-4f4e-a1ec-b5b76c4e00b4</d2p1:_x003C_UniqueId_x003E_k__BackingField> </d2p1:LookupDto> </Categories> <FieldCodes> <CustomCodeDetailViewModel> <Description>sample string 1</Description> <FieldCode>2</FieldCode> <IoType>sample string 4</IoType> <IoTypeId>5</IoTypeId> <Sample>sample string 3</Sample> </CustomCodeDetailViewModel> <CustomCodeDetailViewModel> <Description>sample string 1</Description> <FieldCode>2</FieldCode> <IoType>sample string 4</IoType> <IoTypeId>5</IoTypeId> <Sample>sample string 3</Sample> </CustomCodeDetailViewModel> </FieldCodes> <IsAddMethod>true</IsAddMethod> <IsShiftKeyPressed>true</IsShiftKeyPressed> <NewUserTextCaption>sample string 6</NewUserTextCaption> <SelectedCategoryId>2</SelectedCategoryId> <SelectedFieldCode> <Description>sample string 1</Description> <FieldCode>2</FieldCode> <IoType>sample string 4</IoType> <IoTypeId>5</IoTypeId> <Sample>sample string 3</Sample> </SelectedFieldCode> <SelectedFieldCodeId>3</SelectedFieldCodeId> <SelectedSubCategory>4</SelectedSubCategory> <SubCategoryRadio xmlns:d2p1="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.Dto.Controls"> <d2p1:RadioButtonDto> <d2p1:Enabled>true</d2p1:Enabled> <d2p1:Value>true</d2p1:Value> <d2p1:Visible>true</d2p1:Visible> </d2p1:RadioButtonDto> <d2p1:RadioButtonDto> <d2p1:Enabled>true</d2p1:Enabled> <d2p1:Value>true</d2p1:Value> <d2p1:Visible>true</d2p1:Visible> </d2p1:RadioButtonDto> </SubCategoryRadio> <UseGrids>true</UseGrids> </CustomCodeViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.