English
How to Create APL Code
About 257 wordsLess than 1 minute
2026-01-09
Let's walk through a business scenario step by step to create an APL code implementation.
Business Scenario: When creating an e-signature object, the following business logic should be automatically implemented on the creation page:
- Automatically load the company's contract handler as an internal signer
- Load the e-signature contract's customer contact as an external signer
Steps:
This requirement involves creating a UI event APL function bound to the e-signature object.
Navigate to the "Custom APL Code" menu in the admin console and click "New APL Function"
Enter the APL function information:
- For this scenario, select Groovy as the development language
- Choose "UI Events" as the namespace
- Select "Data Update Event" as the return type
- Bind to the "E-Signature" object
- Use business-meaningful names for both Code Name and API Name
Complete function writing in the APL online editor and click Save
After writing the function, bind it to the calling business:
- In the global settings of the e-signature object's create/edit page layout
- Select UI Events, configure event category and trigger conditions
- Choose the newly created APL function as the execution action
Effect after binding:
- When creating new e-signature data, the creation page will automatically load both internal and external signers
Through these steps, we've completed a full APL code development cycle.
Fxiaoke provides both online development mode and VScode IDE tools for WEB development. For details, refer to: VScode IDE / WEBIDE
