User Manual

08.14.2024

MANUAL

Developer Function: Server Script: context.AddResponse

## Overview The "「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"> <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.