GET api/PWFields/SetFieldAdvOptionDict?resid={resid}&colname={colname}&dictresid={dictresid}&valuecolumn={valuecolumn}&textcolumn={textcolumn}&emptyisfirstitem={emptyisfirstitem}&notshowrepeatitem={notshowrepeatitem}&mutiselect={mutiselect}&dblinkname={dblinkname}

设置字段的下拉字典

Request Information

URI Parameters

NameDescriptionTypeAdditional information
resid

字段所属资源编号

integer

Required

colname

字段内部名称

string

Required

dictresid

字典表的资源编号

integer

Required

valuecolumn

字典表的值字段

string

Required

textcolumn

显示字段

string

Required

emptyisfirstitem

默认第一行显示空白

boolean

Default value is True

notshowrepeatitem

不显示重复值

boolean

Default value is True

mutiselect

可以多选

boolean

Default value is False

dblinkname

string

Default value is

Body Parameters

None.

Response Information

Resource Description

result
NameDescriptionTypeAdditional information
error

错误代码

integer

None.

message

错误信息

string

None.

data

数据

Object

None.

stacktrace

详细错误信息

string

None.

otherdata

其他返回数据

Object

None.

LastError

string

None.

IsComplete

boolean

None.

total

integer

None.

index

integer

None.

IsTerminate

boolean

None.

taskgroupid

integer

None.

taskid

integer

None.

msg

string

None.

status

integer

None.

serverTime

date

None.

lockdata

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "error": 1,
  "message": "sample string 2",
  "data": {},
  "stacktrace": "sample string 4",
  "otherdata": {},
  "LastError": "sample string 6",
  "IsComplete": true,
  "total": 8,
  "index": 9,
  "IsTerminate": true,
  "taskgroupid": 11,
  "taskid": 12,
  "msg": "sample string 13",
  "status": 14,
  "serverTime": "2025-07-03T12:00:43.7564003+08:00",
  "lockdata": {}
}