Adobe Form Designer的Calculate Editor功能实现太弱了,在这里进行编程实在不爽。最好使用Microsoft Script Debugger或者Microsoft Visual InterDev来开发脚本。
这些脚本可以被AdobeForm的ScriptHost Object进行引用。
下面的内容是从帮助中拷备出来的,因为这段说明,对于一个第一次使用AdobeWorkFlow进行开发的我,比较有用。它可以告诉我,开发WF时要使用的东西,和要注意的东西。有时间我回把它简单翻译一下。
Objects required for Workflow Server
The following objects are required on forms for use with Workflow Server. The Library object, Adobe Workflow Server Fields, contains most of these objects.
Adobe Workflow Server Fields contains objects that are required only for use with Web Access, objects required for e-mail, and objects required for both.
Note
·The JFWF_ACTION drop-down list and the Submit button are visible when a user fills a form. The rest of the objects are invisible.
JFWF_ACTION drop-down list
This object presents all available actions to the user for completing a work item. A script populates this field when the form is rendered from the value of the JFWF_CHOICE field. The value of this object is the chosen workflow action.
Submit button
This command button object contains code in the Click event that determines how to send the work item. When working with Form Client forms in a Web environment, if InTempo generated the work item, the Submit button posts to the value in the CGIProgram property of the "FFServerCopy1" Copy to Server object. If Integrate Suite or Workflow Server generated the work item, the Submit button posts to the value in the CGIProgram property of the "XML Submit" HTTP Post object.
JFWF_TRANSPORT field
This field identifies whether Workflow Agent sends the work item via e-mail or the Web. When a form is generated in a Web environment, Workflow Agent automatically sets the Value property to HTTP. Otherwise, Workflow Agent sets the value to EMAIL.
JFWF_CHOICE field
In most cases, Workflow Agent automatically populates this field for each work item. It contains the actions that the process developer defined for the task in the process map. For messaging, Workflow Agent does not automatically populate this field for the first task in the process. You must populate this field manually. See your process developer to determine the actions for the first task. Separate the actions with commas, and add a "*" character before user-driven actions. For example,
Accept,Reject,*Consult
JFWF_DELEGATE field
This field is used for a user-driven action (delegate, nominate, or consult), where a user enters the user ID of the next participant. If the user clicks the Submit button when this field is blank, a list of participants displays, which enables the user to select the next participant.
FFServerCopy1 object (for Web Access with Form Client only)
Include this Copy to Server object on your form if you are designing a form to send data in URL-encoded format. The CGIProgram property of this object is set to the address of the Web Access Active Server Page (ASP) that receives posted form data, specifically, SubmitForm.asp.
JFWF_AGENT field (for e-mail only)
This field specifies the address of the Workflow Agent mailbox. If Workflow Agent generates the form, it populates this field. By default, this field is empty. If empty, when a user clicks the Submit button, the e-mail system's address book appears and the user selects the e-mail address for Workflow Agent. You can also use the OnInitialize event of this field to specify the address of the Workflow Agent mailbox, in which case the user is not prompted for an address.
JFWF_STATUS field (for e-mail only)
The script in the Submit button references this field, which ensures that the user can only submit the form once via e-mail.
JFWF_DEBUGACTOR field (for e-mail only)
This field is optional. It impersonates other participants while testing a process. You chould make this field visible for testing purposes, and then invisible when you deploy the form into production.
FFMail1 object (for e-mail with Form Client only)
This E-mail object enables a user to send work item data via e-mail. By default, the MailSystem property is set to MAPI. If you design the form for use in a VIM or SMTP environment, change the MailSystem property accordingly.
XML Submit object (for Web Access with Form Client only)
Include this invisible HTTP Post object if you are designing the form for use over the Web and the form submits data in XML format. Set the CGIProgram property of this object to the address of the Web Access Active Server page (ASP) that receives posted form data, specifically. By default, the value is set to SubmitForm.asp.
FFScriptObject1 object
This Script object contains script that populates the JFWF_ACTION drop-down list from the contents of the JFWF_CHOICE text box.
JFWF_VERSION field
The Submit button uses the value of this field to determine whether to submit DAT data using the FFServerCopy1 object, or to submit XML data using the XML Submit object. The default value is 6.0, which results in data being sent in XML format.
If you are designing forms to be used in a messaging environment, you may need to add two additional fields that are not included in the Library object.
JFWF_TASK field (for e-mail only)
This field specifies the task name when a user initiates a process by e-mail. You must include the JFWF_TASK field if:
?The form is not associated with the start task that is used to initiate the process.
?The form is associated with multiple start tasks.
JFWF_WORKFLOW field (for e-mail only)
This field specifies the process name when a user initiates a process by e-mail. You must include the JFWF_WORKFLOW field if:
?You have not included the JFWF_TASK field on the form.
?The form is not associated with the start task that is used to initiate the process.
?The form is associated with the start tasks in multiple processes.
?2002 Adobe Systems Incorporated. All rights reserved.