IBM Domino Designer:indi.office开发中的表单与代理操作

4星 · 超过85%的资源 需积分: 12 16 下载量 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开发的基础。

package indi.wrenn.studentsystem.bean; import java.util.HashMap; import java.util.List; public class Student { private String student_Name; //学生姓名 private String student_ID; //学生学号 private String sex; //学生性别 private String classe; //学生班级 private String grade; //学生年级 public HashMap<String, String> getScores() { return scores; } public void setScores(HashMap<String, String> scores) { this.scores = scores; } private String Major_ID; //学生所属专业边编号 private String Department_ID; //学生所属院系编号 private String Major_Name; //学生所属院系名称 private String Department_Name;//学生所属专业名称 private HashMap<String, String> scores; //学生成绩 public String getMajor_Name() { return Major_Name; } public void setMajor_Name(String major_Name) { Major_Name = major_Name; } public String getDepartment_Name() { return Department_Name; } public void setDepartment_Name(String department_Name) { Department_Name = department_Name; } public String getStudent_Name() { return student_Name; } public void setStudent_Name(String student_Name) { this.student_Name = student_Name; } public String getStudent_ID() { return student_ID; } public void setStudent_ID(String student_ID) { this.student_ID = student_ID; } public String getSex() { return sex; } public void setSex(String sex) { this.sex = sex; } public String getClasse() { return classe; } public void setClasse(String classe) { this.classe = classe; } public String getGrade() { return grade; } public void setGrade(String grade) { this.grade = grade; } public String getMajor_ID() { return Major_ID; } public void setMajor_ID(String major_ID) { Major_ID = major_ID; } public String getDepartment_ID() { return Department_ID; } public void setDepartment_ID(String department_ID) { Department_ID = department_ID; } }分析代码

2023-06-10 上传
2023-06-05 上传

(Telephone Number Word Generator) Standard telephone keypads contain the digits 0 through 9. The numbers 2 through 9 each have three letters associated with them, as is indicated by the following table: Many people find it difficult to memorize phone numbers, so they use the correspondence between digits and letters to develop seven-letter words that correspond to their phone numbers. For example, a person whose telephone number is 686-2377 might use the correspondence indi- cated in the above table to develop the seven-letter word “NUMBERS.” Businesses frequently attempt to get telephone numbers that are easy for their clients to remember. If a business can advertise a simple word for its customers to dial, then no doubt the business will receive a few more calls. Each seven-letter word corresponds to exactly one seven-digit telephone number. The restaurant wishing to increase its take-home business could surely do so with the number 825-3688 (i.e., “TAKEOUT”). Each seven-digit phone number corresponds to many separate seven-letter words. Unfortunately, most of these represent unrecognizable juxtaposi- tions of letters. It’s possible, however, that the owner of a barber shop would be pleased to know that the shop’s telephone number, 424-7288, corresponds to “HAIRCUT.” A veterinarian with the phone number 738-2273 would be happy to know that the number corresponds to “PETCARE.” Write a program that, given a seven-digit number, writes to a file every possible seven-letter word corresponding to that number. There are 2187 (3 to the seventh power) such words. Avoid phone numbers with the digits 0 and 1.

2023-06-09 上传