Sales invoice sub Form gives Error message

Freaky
Member Posts: 125
I entered on the field cloumn Type option "Item" and the No. as well but when I try to click on the Description column it gives me the Error
"The value of ROUND parameter 2 is outside of the permitted range
the current value is :0.
The permitted range is from 1 to 2147483647".
I don't know why this is occuring. Can anyone please help
Thanks in advance.
"The value of ROUND parameter 2 is outside of the permitted range
the current value is :0.
The permitted range is from 1 to 2147483647".
I don't know why this is occuring. Can anyone please help
Thanks in advance.
0
Comments
-
Do you have the ability to turn on the debugger? Or look at Code Coverage?0
-
yes this is what it shows me
Code UpdateButtons() IF CurrForm.Start.ENABLED = CODECOVERAGELOG THEN CurrForm.Start.ENABLED := NOT CODECOVERAGELOG; IF CurrForm.Stop.ENABLED = NOT CODECOVERAGELOG THEN CurrForm.Stop.ENABLED := CODECOVERAGELOG; Form - OnOpenForm() UpdateButtons; Form - OnActivateForm() UpdateButtons; CurrForm.UPDATE(FALSE); Form - OnAfterGetRecord() CoverageLine.SETRANGE("Object Type","Object Type"); CoverageLine.SETRANGE("Object ID","Object ID"); CoverageLine.SETRANGE("Line Type",CoverageLine."Line Type"::Code); CoverageLine.SETFILTER("Line No.",'<>0'); NoOfLines := CoverageLine.COUNT; CoverageLine.SETRANGE("No. of Hits",0); NoOfLinesCovered := NoOfLines - CoverageLine.COUNT; IF NoOfLines = 0 THEN Ratio := 1 ELSE BEGIN Ratio := NoOfLinesCovered / NoOfLines; CASE ROUND(Ratio,0.01) OF 0: Ratio := ROUND(Ratio,0.01,'>'); 1: Ratio := ROUND(Ratio,0.01,'<'); ELSE Ratio := ROUND(Ratio,0.01); END; END; Object.INIT; Object.Type := "Object Type"; Object.ID := "Object ID"; IF Object.FIND THEN; Start - OnPush() CoverageLine.DELETEALL; CODECOVERAGELOG := TRUE; UpdateButtons; CurrForm.Stop.ACTIVATE; Stop - OnPush() CODECOVERAGELOG := FALSE; UpdateButtons; CurrForm.Start.ACTIVATE;
What does it do?0 -
is this the source copied from the debugger (did you use it?) or did you only start the CodeCoverage and copy the source from there?Do you make it right, it works too!0
-
Did you actually run code coverage on your action? It looks like you just clicked start and then stop and posted the code.
You need to start it, do whatever you were trying to do, stop it, and then find the line of code. Debugger is really better for this if you have it.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