User Manual

08.14.2024

MANUAL

Developer Function: Server Script: context.QueryStrings

## Overview Get the value of a query parameter in a URL string using a "[Server Script](/en/manual/table-management-server-script)". ## Supported Versions 1. Pleasanter 1.3.15.0 or later 1. Pleasanter .NET Framework version 0.51.15.0 or later ## Method |No|Name|Description| |:----|:----|:----| |1|Data|Get the parameter value as a string type| |2|Bool|Get the parameter value as a boolean type| |3|Int|Get the parameter value as an integer type| ## Usage Example In the following example, the value of the parameters (name, id) included in the URL string when accessed via http://example.com/items/1000/index?name=Hayato&id=123 is obtained. ##### JavaScript ``` let name = context.QueryStrings.Data('name'); context.Log(name); // Hayato let id = context.QueryStrings.Int('id'); context.Log(id); // 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.