Testfield in RTC

Troubles_In_Paradise
Member Posts: 588
Hi guys!
I'm upgrading a wizard from Nav 4.0 to Nav 2009. In the OnValidate of a field I put the following code
So far so good. Now I press F5 and appears the standard MessageBox that says to me that there're errors on the page and asks if I want to discard changes. I press yes, the error disappear but the code remains (see the following...)
Now I'm wondering why this strange behaviour, if I'm not wrong it would had had to empty the field automatically.
has anyone already faced a problem like this?
Thx in advance!
I'm upgrading a wizard from Nav 4.0 to Nav 2009. In the OnValidate of a field I put the following code
RecordVar.TESTFIELD("Cylinder in Bundle",TRUE);Correctly it test my field and show the error (see the following...)
So far so good. Now I press F5 and appears the standard MessageBox that says to me that there're errors on the page and asks if I want to discard changes. I press yes, the error disappear but the code remains (see the following...)
Now I'm wondering why this strange behaviour, if I'm not wrong it would had had to empty the field automatically.
has anyone already faced a problem like this?
Thx in advance!
~Rik~
It works as expected... More or Less...
It works as expected... More or Less...
0
Comments
-
May be off the topic..
If your requirement is Bundle Certificate No. shd be allowed when Cylinder in Bundle is Yes, you can set editable false to those fields when Boolean is false and editable when boolean is true,0 -
mohana_cse06 wrote:May be off the topic..
If your requirement is Bundle Certificate No. shd be allowed when Cylinder in Bundle is Yes, you can set editable false to those fields when Boolean is false and editable when boolean is true,
Surely your solution works, and there are many work aroud but what I'm wondering is: why the standard function TESTFIELD here doesn't work properly?~Rik~
It works as expected... More or Less...0 -
Yes, you are right..
I am trying to replicate your scenario..
Will update as soon as possible0 -
BTW, which version you are using?
I tried it in NAV 2009 SP1 but couldnt succeed0 -
Hi,
Right way to use TestField with boolen to check for true value in fields is
RecordVar.TESTFIELD("Cylinder in Bundle");
instead of RecordVar.TESTFIELD("Cylinder in Bundle",TRUE);
And this works for both Classic and RTC.MSD Dynamics Nav - Tech. Lead
Nilesh Parekh0 -
nilesh182 wrote:Hi,
Right way to use TestField with boolen to check for true value in fields is
RecordVar.TESTFIELD("Cylinder in Bundle");
instead of RecordVar.TESTFIELD("Cylinder in Bundle",TRUE);
And this works for both Classic and RTC.
Oops..I also tested withRecordVar.TESTFIELD("Cylinder in Bundle");
0 -
I tried with
RecordVar.TESTFIELD("Cylinder in Bundle");
but the problem is always here. Version I'm using is NAV 2009 R2.
Could be caused by RecordVar is temporary?~Rik~
It works as expected... More or Less...0 -
I just want to add a point regarding NAV 2009 R2..
NAV 2009 R2 behaves strange sometimes compared to NAV 2009 SP1 and previous versions..
Higher or latest versions should become stable but R2 didnt meet that.. :-k0 -
mohana_cse06 wrote:I just want to add a point regarding NAV 2009 R2..
NAV 2009 R2 behaves strange sometimes compared to NAV 2009 SP1 and previous versions..
Higher or latest versions should become stable but R2 didnt meet that.. :-k
:-k I've got a feeling that I will have to use a work around.
Thx all for the help.~Rik~
It works as expected... More or Less...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