Platform
Learn
Community
Support
Partner Center
Sign up
or
Log in
logout
Account Settings
Profile
messages
Messages
logout
Logout
Platform
Home
Downloads
IPP
Licensing
Project Sizing
Learn
Training
Documentation
Evaluation Guide
What's New
Community
Home
Forums
Forge
Ideas
Members
Support
Partner Guide
Resources Library
Opportunities
Account Management
Sign up
or
Log in
Home
Forums
Forge
Ideas
Members
Dear ,
What would improve your OutSystems Community experience? Let us know by taking this 2-minute survey.
Pick up the survey
Community
›
Forums
›
News and Announcements
doubt, fields only numeric
validation
Community
›
Forums
›
News and Announcements
doubt, fields only numeric
validation
New Post
New Post
adilson
Posted on 2011-09-26
adilson
Rank: #12171
Posted on 2011-09-26
hi
my name is
, Adilson
Batista
, I'm
studying the
OutSystems
Agile
Platform
in
order
to
make sure I
can
..
In the course
of my studies
I came across
several
problems.
It was
give
to suggest
many questions
..
postantdo
come
thanks to the great
questions and
OutSystems
Team
, I have been
clarifying
the doubts and
continuing
demand for
this
study.
Anyway
, I have been
alert
to thank
the support
of this post
OutSystems
and my
fellow students
...
and also
try to
exclarecer
more
doubts
..
ajjajajajja
...
I was wondering how
do I
increase
my project
in
a
field that
only accepts characters
like
number.
for example:
a
phone number
field
which
is
when the
User
adicinar
onkeypress
a
character
type of letter
it does not work
..
only work
if
number.
And another
doubt
is the
inclusion
of masks
in the
coin
field
.
example:
I have
a
currency
field type
(decimal
)
and
write the
value in the field
(this
number
only
val
)
value
would
automatically
be
separated by
decimal places
..
example:
instead of "
999667889
"
,
would
"
999,667,889
" no
need to
enter the
User
"
.
"
points.
I know I could
use
JavaScript or
a
Seiler,
but wondered
if the
Agile
platform already
has
a
pre
-
ready
function
.
or if
someone already has
this
javascript to
provide
me
..
Thanks,
Adilson
Batista
.
Carlos Rocha
Posted on 2011-09-26
Carlos Rocha
Rank: #138
Posted on 2011-09-26
Solution
hi adilson.
1 - if you want to increment a numerict variable (type integer or decimal) you just need to do this
2 - in order to format decimal values you already have some functions try FormatDecimal(...)
this function allow you to format a decimal numver in several ways. if you want to format currency you have the FormatCurrency function. you can use service studio to look more information on those functions.
If you need any help please let us know, we are here to help you.
Regards,
Carlor Rocha
Solution
adilson
Posted on 2011-09-26
adilson
Rank: #12171
Posted on 2011-09-26
Solution
hi,
Carlor
Rock.
I
do not think you
understand
my
doubt
,
I'll try to
be more specific
.
I have
a field
on my screen
called "
salary
value
"
in this field
and I want
only
the
End User
can add
value
to the
numeric type and
course of
action
User
to add
characters into the field
he'll
add
a
"
.
"
in each
decimal place.
eg
a
value added
9998
,
9998
would be
done in real time
it
reckons
with the addition of
characters.
I think it
is done
in JavaScript
..
I hope you're
being
more clear
..
merma
well
, thank you,
big hug.
Adilson
Batista
.
Solution
Carlos Rocha
Posted on 2011-09-26
Carlos Rocha
Rank: #138
Posted on 2011-09-26
Solution
Hi adilson...
I'm sory but I don't understend what you have write. please write in your native language.
otherwise I won't be able to help you.
Regards,
Carlos Rocha
Solution
Bruno Rebelo
Posted on 2011-09-26
Bruno Rebelo
Rank: #2327
Posted on 2011-09-26
Solution
Hi
adilson ....
you look for
something like
a
mask.
right?
BR
Solution
adilson
Posted on 2011-09-26
adilson
Rank: #12171
Posted on 2011-09-26
Solution
sorry
Carlos
Rocha,
I
try to be clear
this time
.
I have
a
web
screen
, where
there
exists
a
field that
will be
inserted
decimal
data
type
.
however
, I was wondering
how I do
that,
the moment
that the User is
entering
data
type decimal
, they
organize
themselves
forming
a
marked
, or rather
forming a pattern
of type decimal
..
encountered
by commas
..
that
everything would be
on the screen to
see
the
User
what is being
inserted into the
database
.
I want
a
short
field on the screen
that only
accepts
numeric
data type
!
Adilson
Batista
Solution
adilson
Posted on 2011-09-26
adilson
Rank: #12171
Posted on 2011-09-26
Solution
yes, Bruno!
you can help-me?
ty.
Solution
Francisco Coutinho
Posted on 2011-09-26
Francisco Coutinho
Rank: #2973
Posted on 2011-09-26
Solution
I'm not quite sure if I understand it, but the idea that I've got is that you get an imput Ex.( 9,1234,9900) and you want to convert it to currency, to update the salary, and you want to be able to receive letters on a numeric field.
As far as I know, a numeric field will only support numbers, but I'm sure that there will be some way of get arround it, using a type currency on the field or something like that, but instead, you can manipulate it if you use a string string and convert it to the output that you want ( 9,123,499.00).
Solution
J.
mvp_badge
mvp_label
Posted on 2011-09-27
J.
mvp_badge
mvp_label
Rank: #7
Posted on 2011-09-27
Solution
afaik you need to create some custom javascript to do what you want.
google on "javascript input masks"
examples
here
Solution
adilson
Posted on 2011-09-27
adilson
Rank: #12171
Posted on 2011-09-27
Solution
is perfect. i look the site and using the javaScript for creat my mask...
thank you
Joost...
sorry all..
bb.
Solution
Quick Reply
attachment
Choose File
No file chosen
Submit
Login to reply
New Post
Available Forums
Technology & Integration
News and Announcements
Forge Discussions
Meta
Community Quick Guides
Usability
Installation Troubleshooting
Personal Environment Troubleshooting
Forum Notifications
Email Digest Settings
Loading...