User Manual

10.04.2024

MANUAL

Developer Function: Server Script: context.AddMessage

## Overview This method outputs a message to the bottom of the browser in a "「Server Script」". Multiple runs will output multiple messages. ## Syntax ``` context.AddMessage(message, css); ``` ## Parameters |Parameter|Type|Required|Overview| |:----------|:----------|:---:|:---------------------------| |message|string|Yes|message| |css|string|No|CSS class name| ## Return Value There is no return value. ## Usage Example In the example below, the message is output when the "「Status Column」" is completed for the user with department ID 3. ##### JavaScript ``` try { if (context.DeptId === 3 && model.Status === 900) { context.AddMessage('Conditions met.', 'alert-information'); } } catch (e) { context.Log(e.stack); } ``` ## CSS Class Name The following CSS class names can be used. You can also create and assign your own CSS. |CSS class name|Style| |:----------|:----------| |alert-information|Display information with blue background| |alert-warning|Display warning with yellow background| |alert-success|Display success with green background| |alert-error|Display error with red background| ## Related Information <div id="ManualList"> <article class="s-blog_list_unit"><h2> <h2>The specified information was not found.</h2> <p><a href="/ja/manual">Return to top</a></p> </article> </div><input id="SearchTextHidden" type="hidden" value="" />
TOP
このページをシェアする
記載された商品名、各製品名は各社の登録商標または商標です。 © Implem Inc.