<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.infinite-erp.co.id/index.php?action=history&amp;feed=atom&amp;title=How_to_add_a_masked_text_field</id>
	<title>How to add a masked text field - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.infinite-erp.co.id/index.php?action=history&amp;feed=atom&amp;title=How_to_add_a_masked_text_field"/>
	<link rel="alternate" type="text/html" href="https://wiki.infinite-erp.co.id/index.php?title=How_to_add_a_masked_text_field&amp;action=history"/>
	<updated>2026-04-06T23:29:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.infinite-erp.co.id/index.php?title=How_to_add_a_masked_text_field&amp;diff=78&amp;oldid=prev</id>
		<title>Wikiadmin: Created page with &quot;== Introduction ==  This howto explains how to add a masked text field and column to the Openbravo system. A [http://smartclient.com/#maskedTextItem masked] text can be used t...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.infinite-erp.co.id/index.php?title=How_to_add_a_masked_text_field&amp;diff=78&amp;oldid=prev"/>
		<updated>2018-10-14T14:06:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Introduction ==  This howto explains how to add a masked text field and column to the Openbravo system. A [http://smartclient.com/#maskedTextItem masked] text can be used t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This howto explains how to add a masked text field and column to the Openbravo system. A [http://smartclient.com/#maskedTextItem masked] text can be used to force the user in entering text/string values in the correct format.&lt;br /&gt;
&lt;br /&gt;
The steps to get a masked text field in your window consists of 2 steps: 1) create a reference defining the mask, 2) add a column to a table using the reference, and 3) add a field to a tab.&lt;br /&gt;
&lt;br /&gt;
The last 2 steps are defined in detail in the following howtos:&lt;br /&gt;
* [[How_to_add_Columns_to_a_Table|Add a new column to a table in the system]]&lt;br /&gt;
* [[How_to_add_a_field_to_a_Window_Tab|Define and add a new field to a tab]] &lt;br /&gt;
&lt;br /&gt;
This howto will only focus on the specific parts of a masked text field.&lt;br /&gt;
&lt;br /&gt;
{{(!)|Masked text fields are available in MP20 and later MPs.}}&lt;br /&gt;
&lt;br /&gt;
== Example Module ==&lt;br /&gt;
&lt;br /&gt;
This howto is supported by an example module which shows example of the code shown and discussed in this howto. &lt;br /&gt;
&lt;br /&gt;
The example module adds a mask text field to the sales order header window. Please use an example module version of a release/implementation date of 23rd of January or later.&lt;br /&gt;
&lt;br /&gt;
The code of the example module can be downloaded from this mercurial repository: https://code.openbravo.com/erp/mods/org.openbravo.client.application.examples/&lt;br /&gt;
&lt;br /&gt;
{{(!)|The example module also contains implementations of other howtos.}}&lt;br /&gt;
&lt;br /&gt;
== Defining the Mask Reference ==&lt;br /&gt;
&lt;br /&gt;
The first step is to create a specific reference for the mask and then set the mask in the mask reference child tab. &lt;br /&gt;
&lt;br /&gt;
The mask reference must have the 'Masked String' as the parent reference and can not be a base reference. Then create a record in the 'Mask Reference' child tab defining the mask. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:howto-mask-text-reference.png|center|600px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For information on how to define a mask see the description in the 'Masked String' parent reference.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:howto-mask-text-parent-reference.png|center|600px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Adding a column - selecting the correct reference ==&lt;br /&gt;
&lt;br /&gt;
To get a mask text field, the first thing to do is to select the correct reference and reference search key when [[How_to_add_Columns_to_a_Table|adding a column]]:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:howto-mask-text-column-reference.png|center|600px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Create a field ==&lt;br /&gt;
&lt;br /&gt;
Then [[How_to_add_a_field_to_a_Window_Tab|create a field]] within the tab/window:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:howto-rich-text-field.png|center|600px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The result ==&lt;br /&gt;
&lt;br /&gt;
The result is visualized as a masked text editor in form view:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:howto-mask-text-result.png|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:HowTo]]&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
</feed>