Hi. In comment sheet page, comments have a maximum length of 80 charcaters but in RTC when user writes on it he could write more than 80 characters and he just gets the error when validation takes part. This could be a bit annoying. Does anyone know any trick to avoid the user entering more than 80 characters just in the moment he is writing (and it works in classic clients)?
Thanks and happy new year.
0
Comments
We can enter more characters than the length and it shows error after validation.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
On the Purchase Line you cannot enter more than the maximum number of characters.
Don't see the difference yet. Global Text does not have to have a length now. Maybe a global is used somewhere. :-k
Tino Ruijs
Microsoft Dynamics NAV specialist
Hi
I found Build 7.0.35282:
"You can enter more characters in a field that has a variable as source expression than the length that is set for the variable"
It can help you?
bye
Matteo
You could use a Variable called InputStr instead of writing to Comment Line Comment direct and have code similar to the following in the Comment Validate trigger...
InputStr := '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456780';
StrLength := STRLEN (InputStr);
IF StrLength > MAXSTRLEN (CommentLine.Comment) THEN
CommentLine.Comment := COPYSTR (InputStr,1, MAXSTRLEN (CommentLine.Comment))
ELSE
CommentLine.Comment := InputStr;
Good luck
kind regards,
Good to know. Thanks.
Tino Ruijs
Microsoft Dynamics NAV specialist
BTW: which version are you using?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav