百数帮助
首页
帮助文档
后端python
开放平台
私有云
场景案例
更新日志
返回控制台
返回控制台
为你搜索到35个相关结果
搜索热词:
数据权限
注册
登录
导出与导入
对外展示
数据管理
百数
全部
帮助文档
后端python (
35
)
开放平台
私有云
场景案例
表单字段类型
字段名称字段类型字段名称字段类型
单行文本
text图片image多行文本textarea附件upload数字number子表单subform日期时间datetime关联查询linkquery单选按钮组radiogroup关联数据linkdata复选框组checkboxgroup手写签名signature下拉框combo成员单选user下拉复选框combocheck成员多选usergroup地址add
跨应用取数据说明
如下:where"$
单行文本
in('11','22')"selectdata(查询指定表单存放在数据库中的数据)retform.select("测试表单",["
单行文本
"])正常取数据retform.select("13935@测试表单",["
单行文本
"])跨应用取数据getdatabyid(获取表单中数据id对应的数据)retform.getdatabyid("测试表单","51dc6766ff
支持的SQL函数、关键字
("表单别名",["
单行文本
"],wheres)BINARY(str)将值转为二进制,可用于区分大小写表单查询相关api,用于修饰字段别名wheres"BINARY(
单行文本
)'Abc'"retform.select("表单别名",["$
单行文本
"],wheres)加密函数SQL函数SQL说明使用条件python语法示例PASSWORD(str)获取加密后的字符串,不能被解密表单查询相关api,用
form.getallctrlinfo
form.getallctrlinfo功能说明描述获取云应用下指定表单的字段信息。函数原型form.getallctrlinfo(formAlias)参数名称类型描述formAlias字符型表单别名,可以在表单设计界面中的”表单属性”中获取(支持跨应用取字段信息,格式为:"appid@表别名")返回值类型描述数组:字典型执行成功返回数组,失败返回空数组数据格式:[{"name":"
单行文本
别名",
form.transfileurl
{}datas["$
单行文本
"]"abc"图片字段为列表数组格式,可以有多个图片信息datas["$图片"][pic]retform.insert("表单别名",datas)print(ret)演示示例暂无安装包下载暂无相关视频暂无
form.select
格式:WHERE($
单行文本
like"%111%")AND($多行文本between"111"AND"222")GROUPBY$
单行文本
,$多行文本ORDERBY$
单行文本
DESC,$多行文本ASCLIMIT0,20条件存在or语句时需要将查询条件括起来,因为外层存在系统查询条件and,or条件和其混用会导致结果不准确,order/group/limit等语句不需要,如下所示:wheres"($单
form.subinsert
tas["$子表单_
单行文本
"]"123"datas["$子表单_多行文本"]"aabb"wheres"$
单行文本
'11'"retform.subinsert("测试表单","子表单",datas,wheres)print(ret)图片/附件/手写签名的文件操作图片为数组格式,可以有多个,例如:[{"_id":"5adf0f8e7f96c03842ae3f72","bucket":"formfil
form.getdatabyid
953877e","
单行文本
":"abc","多行文本":"def","图片":[{"size":"85559","uploadTime":"20190326T17:48:28Z","_id":"58f57658a48dae2e5f68952e","name":"1.jpg","mime":"image/jpeg","uploader":"547a48c50eccde5ac8c0883b","bu
form.count
):wheres"$
单行文本
in('11','22')"retform.count("测试表单",wheres)print(ret)演示示例暂无安装包下载暂无相关视频暂无
form.inserts
{}datas["$
单行文本
1"]"123"datas["$
单行文本
2"]"abc"INSERTINTO测试SET
单行文本
1123,
单行文本
2"aabb";alls[datas,datas,datas]组合成多行数据retform.inserts("测试表单",alls)print(ret)子表单数据提交datas{}datas["$
单行文本
1"]"123"datas["$
单行文本
2"]"abc"
form.delete
):wheres"$
单行文本
'11'"countform.delete("测试表单",wheres)print(count)演示示例暂无安装包下载暂无相关视频暂无
form.insert
{}datas["$
单行文本
1"]"123"datas["$
单行文本
2"]"aabb"datas["$地址"]{"province":"湖南省","city":"长沙市","district":"芙蓉区","detail":"文艺路街道鑫天大厦"}datas["$定位"]{"province":"湖南省","city":"长沙市","district":"芙蓉区","detail":"文艺路街道鑫
form.update
]}wheres"$
单行文本
in('1','2','3')"UPDATE测试表单SET文本123,文本1"aabb"WHERE文本1IN('1','2','3')retform.update("测试表单",datas,wheres)print(ret)字段的动态表达式示例,例如:对库存字段自增+1datas{}datas["$库存"]{"exp":"$库存+1"}UPDATE测试表单SET库存(库
form.subinserts
tas["$子表单_
单行文本
"]"123"datas["$子表单_多行文本"]"aabb"wheres"$
单行文本
'11'"alls[{"datas":datas,"wheres":wheres},{"datas":datas,"wheres":wheres}]retform.subinserts("测试表单","子表单",alls)print(ret)图片/附件/手写签名的文件操作(需要先在前端
form.subupdate
tas["$子表单_
单行文本
"]"1111"datas["$子表单_地址"]{"province":"湖南省","city":"长沙市","district":"芙蓉区","detail":"文艺路街道鑫天大厦"}datas["$子表单_定位"]{"province":"湖南省","city":"长沙市","district":"芙蓉区","detail":"文艺路街道鑫天大厦","lnglatX
form.subdelete
):wheres"$
单行文本
'11'and$子表单_
单行文本
'22'"countform.subdelete("测试表单","子表单",wheres)print(count)演示示例暂无安装包下载暂无相关视频暂无
form.has
):wheres"$
单行文本
in('11','22')"hasform.has("测试表单",wheres)print(has)演示示例暂无安装包下载暂无相关视频暂无
form.aggregateselect
格式:WHERE($
单行文本
like"%111%")AND($多行文本between"111"AND"222")GROUPBY$
单行文本
,$多行文本ORDERBY$
单行文本
DESC,$多行文本ASCLIMIT0,20条件存在or语句时需要将查询条件括起来,因为外层存在系统查询条件and,or条件和其混用会导致结果不准确,order/group/limit等语句不需要,如下所示:wheres"($单
form.subupdates
tas["$子表单_
单行文本
"]"1111"wheres1"$
单行文本
'11'"wheres2"$
单行文本
'22'"alls[{"datas":datas,"wheres":wheres1},{"datas":datas,"wheres":wheres2}]组合成多行数据retform.subupdates("测试表单","子表单",alls)print(getlasterror(1))print
form.updates
"wheres1"$
单行文本
'11'"wheres2"$
单行文本
'22'"alls[{"datas":datas,"wheres":wheres1},{"datas":datas,"wheres":wheres2}]组合成多行数据retform.updates("测试表单",alls)print(ret)字段的动态表达式示例,例如:对数字字段自增+1datas{}datas["$数字"]{"exp
form.addactionlog
s{}datas["
单行文本
"]"abc"datas["多行文本"]"abcd"datas["数字"]123datas["日期时间"]"2019070512:02:03"datas["单选按钮组"]"选项1"datas["复选框组"]["选项1","选项2"]datas["下拉框"]"选项1"datas["下拉复选框"]["选项1","选项2"]datas["地址"]{"province":"湖南
form.handleselect
格式:WHERE($
单行文本
like"%111%")AND($多行文本between"111"AND"222")GROUPBY$
单行文本
,$多行文本ORDERBY$
单行文本
DESC,$多行文本ASCLIMIT0,20返回值类型描述数组:列表型、字典型、集合型根据参数中的type类型返回不同的格式的数组参数类型描述0列表型以列名的方式返回查询结果的全部数据1列表型以索引的方式返回查询结果的全部数据2
form.handleinserts
{}datas["$
单行文本
"]"
单行文本
"+str(i)datas["$多行文本"]"多行文本"+str(i)alls[datas,datas,datas]组合成多行数据if(form.handleinserts(hd,"测试表单",alls)1):errorgetlasterror(1)print("error:"+str(error)+"\t"+str(i))breakform.close(
form.handledelete
):wheres"$
单行文本
'11'"hdform.open()countform.handledelete(hd,"测试表单",wheres)print(count)form.close(hd)演示示例暂无安装包下载暂无相关视频暂无
form.handleupdate
]}wheres"$
单行文本
in('1','2','3')"UPDATE测试表单SET文本123,文本1"aabb"WHERE文本1IN('1','2','3')retform.handleupdate(hd,"测试表单",datas,wheres)print(ret)字段的动态表达式示例,例如:对库存字段自增+1datas{}datas["$库存"]{"exp":"$库存+1"}UPDATE测试
form.handleupdates
{}datas["$
单行文本
"]"
单行文本
1"datas["$多行文本"]"多行文本1"wheres1"$
单行文本
'文本内容1'"wheres2"$
单行文本
'文本内容2'"alls[{"datas":datas,"wheres":wheres1},{"datas":datas,"wheres":wheres2}]组合成多行数据hdform.open()retform.handleupdates(h
form.handleinsert
{}datas["$
单行文本
1"]"123"datas["$
单行文本
2"]"aabb"datas["$地址"]{"province":"湖南省","city":"长沙市","district":"芙蓉区","detail":"文艺路街道鑫天大厦"}datas["$定位"]{"province":"湖南省","city":"长沙市","district":"芙蓉区","detail":"文艺路街道鑫
form.handlesubinserts
tas["$子表单_
单行文本
"]"123"datas["$子表单_多行文本"]"aabb"wheres"$
单行文本
'文本内容1'"alls[{"datas":datas,"wheres":wheres},{"datas":datas,"wheres":wheres}]retform.handlesubinserts(hd,"测试表单","子表单",alls)print(ret)图片/附件/手写签名
form.handlesubupdate
tas["$子表单_
单行文本
"]"1111"datas["$子表单_地址"]{"province":"湖南省","city":"长沙市","district":"芙蓉区","detail":"文艺路街道鑫天大厦"}datas["$子表单_定位"]{"province":"湖南省","city":"长沙市","district":"芙蓉区","detail":"文艺路街道鑫天大厦","lnglatX
form.rollback
s{}datas["
单行文本
"]"
单行文本
"+str(i)datas["多行文本"]"多行文本"+str(i)if(form.handleinsertdata(hd,"事务测试",datas)1):errgetlasterror(1)print("err:"+err+"\t"+str(i))form.rollback(hd)form.close(hd)returnform.commit(hd)fo
form.handlesubupdates
tas["$子表单_
单行文本
"]"子表单_
单行文本
1"datas["$子表单_数字"]"111"datas["$子表单_下拉框"]"子表单_下拉框1"datas["$子表单_下拉复选框"]["选项1","选项2"]datas["$子表单_日期时间"]timenow()wheres1"$
单行文本
'文本内容1'"wheres2"$
单行文本
'文本内容2'"alls[{datasdatas,wheresw
form.begin
s{}datas["
单行文本
"]"
单行文本
"+str(i)datas["多行文本"]"多行文本"+str(i)if(form.handleinsertdata(hd,"事务测试",datas)1):errgetlasterror(1)print("err:"+err+"\t"+str(i))form.rollback(hd)form.close(hd)returnform.commit(hd)fo
form.handlesubdelete
):wheres"$
单行文本
'11'and$子表单_
单行文本
'22'"hdform.open()countform.handlesubdelete(hd,"测试表单","子表单",wheres)print(count)form.close(hd)演示示例暂无安装包下载暂无相关视频暂无
form.handlehas
):wheres"$
单行文本
in('11','22')"hdform.open()retform.handlehas("测试表单",wheres)form.close(hd)print(ret)演示示例暂无安装包下载暂无相关视频暂无
form.handlesubinsert
tas["$子表单_
单行文本
"]"123"datas["$子表单_多行文本"]"aabb"wheres"$
单行文本
'11'"hdform.open()retform.handlesubinsert(hd,"测试表单","子表单",datas,wheres)print(ret)图片/附件/手写签名的文件操作(需要先在前端手动插入1张图片)图片为数组格式,可以有多个,例如:[{"_id":"5adf0
© 2016-2022 baishuyun Inc. All Rights Reserved
长沙百数科技有限公司版权所有
(湘ICP备15007281号-4)