tailieunhanh - Lotus Domino Release 5.0 A Developer’s Handbook phần 4

Phải sử dụng cú pháp: @ Command (ToolsRunMacro]; "agentname"). Bạn cũng có thể nhập các loại khác nhau của các công thức ở đây mà không gọi một đại lý. Mẹo Bạn có thể nhập một đại lý LotusScript và sau đó gọi đó là đại lý. không có | num Cdbl NumStr 1 End If Cstr num Call False False num End Sub The Form 1. Create a number field named Number to store the counter value. Add static text to surround the field value for example This page has been accessed Number times. 2. Specify the Counter agent as the WebQueryOpen form event. The Security Agents are protected by security features in the database access control list and in the server document in the Domino Directory. To make the Web page counter agent work do the following 1. Write down the name of the person who created or last modified the agent. This is the agent owner. The name is the Notes ID name for example Mark Hunt Acme. 2. Add the agent owner s name to the database access control list and give at least Editor access. 3. Give access to the agent owner in the server document. Open the Domino Directory and open the Server Servers view. Find the server document for the server that stores the database and open the document in edit mode. Add the owner s name to the Run Restricted LotusScript Agents field in the Agent Manager section. If the database design has been signed using the server administration Sign a Database tool the signer s identity must also be added to the Run Restricted LotusScript Agents field in the server document. Close and save the document. 196 Lotus Domino Release A Developer s Handbook Troubleshooting If you see the following message Error 401 HTTP Web Server Lotus Notes Exception - You are not authorized to perform that operation. there is a problem with the entry in the access control list. Make sure that the person who created or last modified the agent is listed with at least Editor access. In addition make sure that the agent property For Web Access Run Agent as Web User is not selected in the Agent InfoBox. If you see the following message Error 500 HTTP Web Server Lotus Notes Exception - Error validating user s agent execution access. there is a problem .