SuiteScript - Entry Point

User Event

  1. afterSubmit(scriptContext): Executes immediately after a write operation on a record.

  2. beforeLoad(scriptContext): Executes whenever a read operation occurs on a record, and prior to returning the record or page.

  3. beforeSubmit(scriptContext): Executes prior to any write operation on the record.

  4. context.UserEventType: Holds the string values for user event execution contexts.

Client

1.fieldChanged: Defines the function that is executed when a field is changed by a user or client call.
2.lineInit: Defines the function that is executed when an existing line is selected.
3.localizationContextEnter: Defines the function that is executed when the record enters the localization context that is specified on the script deployment record.
4.localizationContextExit: Defines the function that is executed when the record exits that context.
5.pageInit: Defines the function that is executed when the page completes loading or when the form is reset.
6.postSourcing: Defines the function that is executed when a field that sources information from another field is modified. Executes on transaction forms only.
7.saveRecord: Defines the function that is executed when a record is saved (after the submit button is pressed but before the form is submitted).
8.sublistChanged: Defines the function that is executed after a sublist has been inserted, removed, or edited.
9.validateDelete: Defines the validation function that is executed when an existing line in an edit sublist is deleted.
10.validateField: Defines the validation function that is executed when a field is changed by a user or client call.
11.validateInsert: Defines the validation function that is executed when a sublist line is inserted into an edit sublist.
12.validateLine: Defines the validation function that is executed before a line is added to an inline editor sublist or editor sublist.


<<:  Day 14: 【架构篇】 设计与架构、软件的两大价值 (待改进中... )

>>:  30天打造品牌特色电商网站 Day.15 微互动设计按钮实作(1)

Day05 建构Project(1)

折腾了三天,我们终於要开始正式学习Django了!各位想必都非常兴奋吧! 那现在我们就来进行一个专案...

CSS就可以!animation 与他的好夥伴 @keyframes

如果说HTML是网页开发的第一堂课,CSS差不多就会再第二堂课出现了,好消息是,只要用第二堂学到的语...

Day 12 - PHP SDK: 建立信用卡、虚拟帐号订单

昨天发布了 Sinopac PHP SDK,接着来有几天的篇幅会介绍如何使用。今天先来谈谈建立订单的...

Windows的此版本即将过期

使用运行Windows 10的计算机时,您可能会得到「此Windows版本即将过期。Windows版...

Python 入门笔记

前言 : Python 是一门相对比较好上手的程序语言,简洁的表述与直觉的语句使许多人易於上手;笔者...