Below we assume a business scenario, step by step to create an APL code to implement the business scenario
Business scene:
When creating an electronic signature object, the following business logic needs to be automatically implemented on the new page:
Automatically load the company's contract handlers into the page as internal signatories
Load the customer contact who signed the contract electronically into the page as an external signatory
Steps:
This requirement requires us to create a UI event APL function that binds the electronic signature object
- Enter the "Custom APL Code" menu in the management background, and click the "New APL Function" button

- Enter the information of the APL function. According to our business scenario, select Groovy for the development language, select "UI Event" for the namespace, select "Data Update Event" for the data return type, and select "Electronic Signature" for the binding object
It is recommended to use a name with a business function for the code name and API Name

- Enter the APL online editor, complete the function writing, and click Save

- After writing the function, you also need to bind the function to the calling business:
In the global settings of the new/edit page layout of the electronic signature object, select the UI event, set the classification and trigger conditions of the event, and select the APL function we just created in the execution action

- The effect after binding the APL function: When creating new electronic signature data, the new page will automatically load the internal signer and external signer

After the above steps, we have completed a complete APL code development process
In addition to the online development mode, FunShare also provides VScode IDE tools to develop codes. For details, please refer to: 8.9 VScode IDE