User Manual

08.14.2024

MANUAL

Developer Function: Script: $p.events.on_editor_load

The Japanese version of the manual is the latest.
Please also check.
## Overview This explains how to specify the method to be executed when the "Edit screen" is loaded. This method should be used mainly when you want to execute a script when "[Use Ajax for Record Transitions](/en/manual/table-management-ajax-transfer)" or "Edit with dialog" is checked. ## Syntax Check New or Edit for the script output destination. ##### JavaScript ``` $p.events.on_editor_load = function () { //Optional Processing } ``` ## Usage Example If you set the following sample code to Pleasanter script, a message will be displayed at the bottom of the screen when the editing screen is loaded. ##### JavaScript ``` $p.events.on_editor_load = function () { $p.setMessage('#Message', JSON.stringify({ Css: 'alert-success', Text: 'Now that the editing screen has loaded, let's display the screen.' })); } ``` ## Related Information [FAQ:$p.events.on_editor_loadを複数設定できるようにしたい](faq-multiple-on-editor-load)
TOP
このページをシェアする
記載された商品名、各製品名は各社の登録商標または商標です。 © Implem Inc.