User Manual

08.14.2024

MANUAL

FAQ: I want to cut out part of a item value and transfer it to another item in the same record

## Answer Use "「Script」". --- ## Overview Use "「Script」" if you want to transfer a value to another "「Item」" when the value of the "「Item」" changes. ## Operation Procedure 1. Create a table 1. Create a new "「Script」" and enter the following script content. Check "Create New" and "Edit" for the output destination to update 1. From the "「Editor」", activate Classification A and Description A according to the sample code below. 1. Enter any character string in the Classification A options and press the Update button. 1. Create a new record using the [+Create New] button. 1. Select any value in Classification A and confirm that the first character is transferred to Description A. ## Sample Code ##### JavaScript ``` $(document).on('change', '#' + $p.getControl('ClassA')[0].id, function(){ //Get the value of Class A const myClassA = $p.getControl('ClassA').val(); //When Class A is changed, copy the first character of Class A to Description A //Cut off the first character from the 0th character (beginning) $p.set($p.getControl('DescriptionA'), myClassA.slice(0,1)); }); ``` ## 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.