From b97888fca98374eea20e5ca6abe0d1b5d9884a9b Mon Sep 17 00:00:00 2001 From: wtl Date: Thu, 30 May 2024 15:28:55 +0900 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E5=AD=97=E6=95=B0=E3=83=81=E3=82=A7?= =?UTF-8?q?=E3=83=83=E3=82=AF=E5=B1=9E=E6=80=A7=E5=90=8D=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/kintone-addins/src/actions/counter-check.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/kintone-addins/src/actions/counter-check.ts b/plugin/kintone-addins/src/actions/counter-check.ts index d5ebae1..d107a60 100644 --- a/plugin/kintone-addins/src/actions/counter-check.ts +++ b/plugin/kintone-addins/src/actions/counter-check.ts @@ -6,7 +6,7 @@ import { IAction,IActionResult, IActionNode, IActionProperty, IField} from "../ interface IStrCountCheckProps{ field:IField;//チェックするフィールドの対象 message:string;//エラーメッセージ - strExpression:string;// + maxLength:number;// } /** * 正規表現チェックアクション @@ -21,7 +21,7 @@ export class StrCountCheckAciton implements IAction{ this.props={ field:{code:''}, message:'', - strExpression:'' + maxLength:0 } //アクションを登録する this.register(); @@ -48,10 +48,10 @@ export class StrCountCheckAciton implements IAction{ //条件式の計算結果を取得 const record = event.record; const value = record[this.props.field.code].value; - const strCheck = this.props.strExpression; + const maxLength = this.props.maxLength; if(value === undefined || value === '' ){ return result; - }else if(strCheck < value.length){ + }else if(maxLength < value.length){ record[this.props.field.code].error = this.props.message; }else{ result= {