User Manual

08.14.2024

MANUAL

Developer Function: Server Script: context.AddResponse

## Overview The "[Server Script](/en/manual/table-management-server-script)" returns an arbitrary client response. ## Syntax ``` context.AddResponse(method,target,value) ``` ## Parameter |Parameter|Type|Overview| |:--|:--|:--| |method|string|Specify the operation type of the response. Refer to the method section below. | |target|string|Specify the ID of the target element. | |value|object|Specify the element or value. | ### Method |Type|Description| |:--|:--| |ReplaceAll|Replace the element specified for target above with the element specified for value. | |Set|Store information in the form. | ## Return Value There is no return value. ## Usage Example 1 In the following example, the field for classification C is replaced with \<div style="color:red">Pleasanter\</div>. ``` context.AddResponse('ReplaceAll','#Results_ClassCField','<div class="field-normal" style="color:red">Pleasanter</div>'); ``` ## Usage Example 2 In the following example, the following information is stored in the form ($p.data.MainForm). 【Information to store】 ・Item: NumA Item ・Value: 123 ``` context.AddResponse('Set','NumA',123); ``` ## Related Information <div id="ManualList"><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.