tailieunhanh - Lotus Domino Release 5.0 A Developer’s Handbook phần 10
Bạn không thể di chuyển con trỏ mà không cần gõ một tên, bởi vì xử lý sự kiện Thoát khỏi kiểm tra các nội dung lĩnh vực. Các nút duyệt có một xử lý sự kiện Click được gọi là một kích hoạt nhấp chuột. Xử lý các cuộc gọi GetApproverDetails thường xuyên trên toàn cầu, hiển thị một hộp thoại được tạo ra bởi một khu vực bố trí trong các hình thức (Approverinfo). | you try to move the cursor from the Approval form name field to another field as shown in the following figure J Close Application Profile Postopen Postmodechange Querysave Queryclose Basics Ap p roval to rm --------------------- name _ Routing tvpe 0ne after the nther _rj Routing delivery Doclink T Click Approval List of approvers r5 I T Approver details I Approver 1 Globals GetApproverDetailsj You cannot move the cursor without typing a name because the Exiting event handler checks the field contents. The Approver button has a Click event handler which is called by a mouse click trigger. The handler calls the global routine GetApproverDetails which displays a dialog box created by a layout region in the Approverinfo form. The following picture shows an event sequence which occurs when you create the Application Profile document 622 Lotus Domino Release A Developer s Handbook Eclipses shown in gray are not performed because there is no program defined for them. You can use the Domino debugger to see the sequence of real-time events. For more information on the debugger see Chapter 10 Programming for Domino. Approval Cycle Database Agent The approval application requires an agent to deal with the due date expiration in this example. When the due date has passed and the approver has not taken any action the agent processes the approval request depending on the criteria specified in the application profile for the due date. A Closer Look at the ApprovalLogic Subform The following section explains how the ApprovalLogic subform works and shows you some of the techniques that you can use in designing your own workflow applications. We assume here that you have already created your workflow form and have set up an Application Profile document for it. Note The LotusScript that follows may not look exactly the same as that in the template as it has been formatted for better clarity. Chapter 16 .
đang nạp các trang xem trước