Max length before validate

xavigepe
Member Posts: 185
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.
Thanks and happy new year.
0
Comments
-
I just ran a quick test in a base NAV 2013 database using the RTC comments page from the sales orders. The system stops me when I try to type more than 80 characters so I am not sure how your user is able to type more. What version of NAV and what functional area is the user in when entering comments?Tim Whitaker | Senior NAV Consultant/Developer | The Software Workshop Ltd. | http://www.thesoftwareworkshop.com0
-
This behaviour is changed in NAV2013R2 I guess..
We can enter more characters than the length and it shows error after validation.0 -
There is a difference in behaviour between the Description on the Comment Line and for example the Description on the Purchase Line..
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 specialist0 -
xavigepe wrote: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.
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
MatteoReno Sistemi Navision Developer0 -
Hi xavigepe
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 luckBig D signing off!0 -
Thanks all for your comments/solutions. I've found the difference between description in purchase lines and comments in purchase comments: If the page is of LIST type then control of the number of characters does not happen if it's of DOCUMENT type then control does happen.
kind regards,0 -
xavigepe wrote:Thanks all for your comments/solutions. I've found the difference between description in purchase lines and comments in purchase comments: If the page is of LIST type then control of the number of characters does not happen if it's of DOCUMENT type then control does happen.
Good to know. Thanks.
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
This behaviour is not existing in NAV2013 and previous versions.
BTW: which version are you using?0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions