{"title":"添加","inframe":false,"hidden":false,"roles":{"dev":1},"pageLink":"","children":[{"configs":{"serverScript":"//检查是否存在重复的STRING_FIELD\napp.run('select 1 from WB_MISC where STRING_FIELD={?STRING_FIELD?}', {\n  errorText: '\"' + app.get('STRING_FIELD') + '\" 已经存在。'\n});\nvar id = SysUtil.getId();\nrequest.setAttribute('ID_FIELD', id); //设置自动生成的ID号\n//插入记录到表\napp.update({\n  tableName: 'WB_MISC',\n  mode: 'insert'\n});\n//返回到前台自动同步到新建记录\napp.send({\n  ID_FIELD: id,\n  BLOB_FIELD: WebUtil.hasFile(request, 'BLOB_FIELD') ? '(blob)' : ''\n});","itemId":"module"},"children":[],"type":"module","expanded":true}],"iconCls":""}