IBM Domino Designer:indi.office开发中的表单与代理操作
4星 · 超过85%的资源 需积分: 12 6 浏览量
更新于2024-07-30
1
收藏 446KB PPT 举报
"indi.office开发基础,涉及Domino Lotus的indi.office开发,主要讲解表单、事件、Saveoptions系统域和代理的使用。"
在Domino Lotus的indi.office开发中,表单是核心组成部分,用于与数据库进行交互。表单分为两种主要类型:
1. input类型的表单,如frmwebflow,主要用于输入数据。当用户需要添加新信息或更新现有记录时,会使用这类表单。
2. display类型的表单,如myview,设计用来展示数据。通常,它们会与视图或索引关联,以便用户能够浏览和检索信息。
表单在处理数据时,有两个关键事件:
- Webqueryopen事件:在表单打开之前触发,常用于初始化表单内容,比如预填充某些字段或设置默认值。
- Webquerysave事件:在用户尝试保存表单前触发,可用于执行自定义操作,例如验证数据、执行保存前的逻辑或设置。
为这两个事件赋值有多种方式,可以直接在表单设计中设置,也可以通过JavaScript代码实现。例如,使用`thisform.$$querysaveagent.value='1'`来指定Webquerysave事件的处理程序。
Saveoptions系统域是控制文档保存行为的关键。值为'1'表示将文档保存到服务器,这通常应用于保存按钮的事件中;而值为'0'则表示不保存到服务器,可能用于退出或取消操作。
代理(Agent)在Domino Lotus开发中扮演着重要角色,它是一种能自动执行特定任务的独立程序。代理的灵活性在于:
- 它可以前端运行,由用户触发,也可以后台运行作为定时代理。
- 不局限于特定的设计元素,能在多个服务器、工作站或Web环境中运行。
- 可以调用其他代理,实现任务的连锁执行。
- 支持简单的操作、公式、LotusScript或Java编程。
代理有两种触发类型:
1. 自动触发:基于时间或特定事件(如文档创建或修改)。
2. 手动触发:用户直接启动。
WebQueryOpen和WebQuerySave代理是与表单事件相关的特殊代理类型,分别在表单打开和保存前执行,可以用于数据验证、权限控制等目的。WebQueryOpen事件常用于准备表单,而WebQuerySave事件则用于处理保存前的逻辑。理解并熟练运用这些概念是进行indi.office开发的基础。
2013-12-08 上传
2020-03-03 上传
2023-06-10 上传
2023-03-10 上传
2023-07-15 上传
2023-06-10 上传
2023-07-27 上传
2023-06-05 上传
2023-06-09 上传
2023-06-02 上传
lauis
- 粉丝: 13
- 资源: 8
最新资源
- 明日知道社区问答系统设计与实现-SSM框架java源码分享
- Unity3D粒子特效包:闪电效果体验报告
- Windows64位Python3.7安装Twisted库指南
- HTMLJS应用程序:多词典阿拉伯语词根检索
- 光纤通信课后习题答案解析及文件资源
- swdogen: 自动扫描源码生成 Swagger 文档的工具
- GD32F10系列芯片Keil IDE下载算法配置指南
- C++实现Emscripten版本的3D俄罗斯方块游戏
- 期末复习必备:全面数据结构课件资料
- WordPress媒体占位符插件:优化开发中的图像占位体验
- 完整扑克牌资源集-55张图片压缩包下载
- 开发轻量级时事通讯活动管理RESTful应用程序
- 长城特固618对讲机写频软件使用指南
- Memry粤语学习工具:开源应用助力记忆提升
- JMC 8.0.0版本发布,支持JDK 1.8及64位系统
- Python看图猜成语游戏源码发布