Kbase 18432: Apptivity 3.0 -- Fomatting Both Date And Time In A TextField
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Unverified
FACT(s) (Environment):
Apptivity 3.x
FIX:
The method used on a text field to set the mask is
abTextField.setMask(String mask, int masktype).
When you use the selections presented in Apptivity Developer, all the
masktypes correspond to abTextField.TIME or abTextField.DATE.
You need to set your own mask type after the
//$BEGIN_CREATE_OBJECTS
//$END_CREATE_OBJECTS
section with the following line:
YOURFIELD.setMask("ccyy-mm-dd hh:mm:ss.f", abTextField.TIMESTAMP);
e.g. textField1.setMask("ccyy-mm-dd hh:mm:ss.f", abTextField.TIMESTAMP);