OutSystems Forge 日本語データベース

CustomMasks

※Forge全件データの日本語検索サービスをご利用になりたい場合は、こちらまでお問合せください。

Forge英文サイト

2017-08-01 3.0.2 Jogait 9.1.301.0 All All Components, Widgets
入力データをマスクをするときのエディタブルテーブル/フォーム用のカスタマイズコンポーネント
モジュール内の次のWebブロックへの参照を追加します:MaskText、MaskNumber、MaskDate、およびMaskCurrency。すべてのWebブロックには、入力マスクを適用する入力ウィジェットのIDである必須入力パラメータ(InputID)が1つ必要です。 MaskCurrencyを使用したフォーマット価格入力: 何桁の小数点桁数を使用できますか。 接頭辞または接尾辞記号(「$」など)。 小数点記号( "。"または "、"); グループセパレータ( "。"、 "、"または "\")。 MaskDateを使用した書式の日付入力:この日付書式は、日(dd)、月(mm)、年(yyyy)の順番を設定し、セパレータを区切りとして設定することによって定義されます。たとえば、dd-mm-yyyyおよびyyyy / mm / ddは有効な日付形式です。 RichWidget Input_CalendarとMaskDateを同じ日付入力で使用することはできません。そうしないと、間違った値と予期しない値が返されます。 MaskNumberを使用してフォーマット番号を入力します。 小数点記号( "。"または "、"); グループセパレータ( "。"、 "、"または "\")。 MaskText:MaskDefinitionを使用してテキスト入力をフォーマットする(例:NIB - "9999-9999-9999-9999-9999 9") デフォルト:9:数値 a:アルファベット順 *:英数字 あらかじめ定義されたマスク: ip Eメール URL ダイナミックマスク: 任意: [...] 定量化された: {n} => n回繰り返す {n、m} => nからm回繰り返す {+} {*} オルタネーター:| MaskTextブロックとMaskCurrencyブロックには、入力データがサーバーに送信されるときにマスクを保持するかどうかを切り替えることができるオプションの入力パラメーターもあります。デフォルトでは、このパラメータはMaskTextではtrueに設定され、MaskCurrencyブロックではfalseに設定されます。 入力パラメータAdvancedOptionsはすべてのWebブロックで使用できます。ここでは、clearMaskOnLostFocusのような他のオプションを指定できます。これにより、input要素にフォーカスがない場合でもマスクを表示できます。特に、MaskTextの場合、空のマスク値をサーバに送るのを避けるため、booleanオプションのautoUnmaskも便利です。詳細については、コンポーネントのマニュアルを参照してください。 入力マスクを使用すると、よりよく一貫性のあるデータが得られ、ユーザーがそのデータを読み込んで入力するほうがずっと簡単になります

[Overview]
Customize EditableTables/Forms with input masks
[Detail]
Add a reference to the following web blocks in your module: MaskText, MaskNumber, MaskDate and MaskCurrency. All web blocks have one mandatory input parameter (InputID), which is the Id of the input widget you want to apply the input mask to. Format price input using MaskCurrency: How many decimal digits are allowed; Prefix or suffix symbol (e.g. '$ '); Decimal separator ("." or ","); Group separator (".", "," or "\'"). Format date input using MaskDate:This date format is defined by setting the order of the day (dd), month (mm) and year (yyyy), and also by setting the separator between them. For example, dd-mm-yyyy and yyyy/mm/dd are valid date formats. Note that you cannot use the RichWidget Input_Calendar and the MaskDate on the same date input, or you will get wrong and unexpected values. Format number input using MaskNumber:How many decimal digits are allowed; Decimal separator ("." or ","); Group separator (".", "," or "\'"). Format text input using MaskText:MaskDefinition (e.g. NIB - "9999-9999-9999-9999-9999 9") Default:9: numeric a: alphabetical *: alphanumeric Pre-defined masks: ip email url Dynamic Masks: Optional: [...] Quantified: {n} => n repeats {n,m} => from n to m repeats {+} {*} Alternator: | There’s also an optional input parameter in the MaskText and MaskCurrency blocks that allow you to toggle between keeping the mask or not when the input data is send to the server. By default this parameter is set to true in MaskText, and false in MaskCurrency block. The input parameter AdvancedOptions is available in all web blocks, and here you can specify other options like clearMaskOnLostFocus, which allow you to show the mask even when the input element doesn’t have focus. In particular for the MaskText the boolean option autoUnmask can be useful too, in order to avoid sending the empty mask value to the server. You will find more information about this in the component documentation. Using input masks you’ll get better and more consistent data, and it will be a lot easier for your users to read and enter that data
戻る