There are many ways to obtain it, though none of them
is an easy task (as I know).
The first way is, you create an array EDT (EDT with
more than one array elements). The drawback is, the UI
will create multiple stringEdit.
The second way is, to manipulating the input controls
just like real edit (format will be cleared when the
cursor is entered and display the format after the
The sample code is like this:
Set MyTable_1_Field1Ctl AutoDeclaration of
StringEdit control to Yes.
Override three methods: enter, leave and validate of
public class FormRun extends ObjectRun
public void enter()
validateCalled = false;
a = MyTable_1.Field1;
MyTable_1.Field1 = substr(a,4,2) + substr(a,7,1);
public boolean validate()
ret = super();
a = MyTable_1_Field1Ctl.text();
MyTable_1.Field1 = 'UK-' + substr(a,1,2) + '-' +
validateCalled = true;
public boolean leave()
ret = super();
The third way is, to use AxtiveX to obtain it. For
this solution I don't know the activeX name yet that
can be used together with the Axapta. So, actually
this is just an idea.
Maybe other people in this forum have a better idea
for the solution.
Sonny Wibawa Adi, MBSCP, MCAD.NET, MCSD.NET, MCP
--- gideonneijs [EMAIL PROTECTED] wrote:
Thanks for the reply.
The problem is that i don't want to use a number
sequence. I only
want to make sure the format of the number is
correct. The number
itself can be any number.
--- In email@example.com,
taulbert2000 [EMAIL PROTECTED]
why don't you use the format of the number
Your example should look like this: UK-##--##.
--- In firstname.lastname@example.org, Gideon
[EMAIL PROTECTED] wrote:
Does anyone know if it's possible to set up an
input mask on an
EDT or a table field?
For example: I want to prescribe that an item id
always has the
fomat: xx-xx--xx (e.g UK-34-8732-02)
Does anyone know if this is possible or have an
Thanks in advance!
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
YAHOO! GROUPS LINKS
Visit your group "development-axapta" on the web.
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.