Weaver E9 API & Script Online Help
  • Overview
  • 1 EC9 Workflow Engine Form API
    • 1 Register User-define event
    • 2 Field basical operation interface (Apply for all field types)
    • 3 Form field event binding, user-defined rendering
    • 4 Detail table operation interface
    • 5 Common global interface
    • 6 Specific interface for specified field type (limit specified field type available)
    • 7 Signature comments interface
    • 8 Common configuration file modifications
    • 9 Common CSS style case sharing
  • 2 SAP & E-cology Integration ABAP Program
  • 3 Common SQL Script
  • 4 Javascript Sample
  • 5 Backend Development
  • 6 SSO non-intrusive development example
  • 7 Users and Organization Structure RESTFUL Interface
Powered by GitBook
On this page
  • 1 Get signature commments content
  • 2 Set signature comments text
  • 3 Extended Signature comments bottom buttons
  1. 1 EC9 Workflow Engine Form API

7 Signature comments interface

1 Get signature commments content

minimum version: KB900190501

getSignRemark:function():

Example

WfForm.getSignRemark():// Get the signature comments

2 Set signature comments text

Minimum version : KB900190501

setSignRemark:function (text, is Clear =true,isAfter=true,callback)

Parameter Description

Parameter
type
Required
Remarks

text

String

Yes

Content to be set

isClear

Boolean

No

Whether to clear the opinion first, the default true, is to cover the content of the opinion, false for additional comments

isAfter

Boolean

No

The additional position, default true, the original opinion content tail append, false the head add

callback

Function

No

Callback function after opinion setting is successful

Example

WfForm.setSignRemark("override the content of the signature setting comment ");
WfForm.setSignRemark("additional request for approval before the original opinion ", false,false);

3 Extended Signature comments bottom buttons

Signature Input Box Bottom Button supports Custom Extended

appendSignEditorBottomBar:function (comps =[]) based on built-in accessories, documents, processes)

Parameter Description

Parameter
type
Required
Remarks

comps

React Comp Array

Yes

Arrays of React components to be expanded

WfForm.appendSignEditorBottomBar ([
 React.createElement("div ",{className :" wf-req-signbtn ", children :" custom button 1"}),
 <div> custom button 2</ div<div>
]);

Previous6 Specific interface for specified field type (limit specified field type available)Next8 Common configuration file modifications

Last updated 1 year ago