Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Paulo Torres
Champion
4
Views
5
Comments
Length Letters
Question
Hello everyone!
I use the built in expression "Length" and i want this expression in dynamic form, when i writte one letter appears the number of characters.
How make this? With On Change? If the "On Change", how make this?
I attach the print of my espace.
Best Regards and Merry Christmas =)
On Change.png
Miguel Antunes
Hello Paulo,
you have some options to do this.
Simple way is to add an onChange and then in the that action, do the assign with
Length
( Message ), and then refresh the expression as shown bellow.
This way, the number will update as soon as you stop typing.
If you want to update that number everytime you type a letter, you need to create an hidden link ( style = display:none; ) this link will point ou to the same action above, name the link with something like
hiddenLink
. Go to text area extended properties and add
onkeyup
property and in the value
"
osjs('#
"
+hiddenLink
.
Id+
"
').click();
"
this will trigger the refresh action everytime you type.
These should do the job, let us know!
regards,
Miguel
2 replies
Last reply 23 Dec 2011
Show thread
Hide thread
Paulo Torres
Champion
Thank you very much Miguel, you
teach
me
a
good
thing today :)
The first way
works perfectly
but i try the second but not works.
Can you see if i make some thing wrong?
I attach my espace.
Thanks, Paulo Torres
SMS__.oml
Miguel Antunes
Hello Paulo,
i'm here to help ;) as all people in this great community!
So, looking at your eSpace, you did some misunderstandings from what i said, but thats normal :)
See the attached file, i've changed it a bit, but did not have possibility to test it, so let me know if didn't work.
regards,
Miguel
SMS__.oml
Paulo Torres
Champion
Hi Miguel,
Is amazing :)
Works
spectacularly
, one more thing than you teach me!
Merry christmas my friend :)
1 reply
23 Dec 2011
Show thread
Hide thread
Miguel Antunes
You are welcome!
have a nice Christmas too!
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
 Loading...