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](/en/manual/table-management-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](/en/manual/table-management-status)" 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"><ul><li><a href="/en/manual/table-management-status">Manage Table: Column: Status</a><span>10.02.2024 up</span></li></ul></article> <ul><li><a href="/en/manual/table-management-server-script">Table Management: Server Script</a><span>08.13.2024 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />
TOP
このページをシェアする
記載された商品名、各製品名は各社の登録商標または商標です。 © Implem Inc.