Adding a Toolbox Indicator

RjMaJay
Member Posts: 2
Hi Guys,
I'm trying to add a Indicator to display the progress of a change log search on NAV 2009SP1, But I'm not sure where it needs to be pointing at.
Any help would be great
I'm trying to add a Indicator to display the progress of a change log search on NAV 2009SP1, But I'm not sure where it needs to be pointing at.
Any help would be great
0
Answers
-
for creating a progress window follow https://msdn.microsoft.com/en-us/library/dd338672.aspx
to calculate the value of the progress bar you need a maximum value, in your case the no. of change log entries according to the filter you use.best regards
Franz Kalchmair, MVP
Alias: Jonathan Archer
please like / agree / verify my answer, if it was helpful for you. thx.
Blog: http://moxie4nav.wordpress.com/1 -
So would this be correct?
ProgressWindow.OPEN('Change Log Search #1#######');
REPEAT
SLEEP(1000);
ProgressWindow.UPDATE(1,SearchKeys."No.");
// Process the search.
UNTIL SearchKeys.NEXT = 0;
ProgressWindow.CLOSE;0 -
Looks ok.best regards
Franz Kalchmair, MVP
Alias: Jonathan Archer
please like / agree / verify my answer, if it was helpful for you. thx.
Blog: http://moxie4nav.wordpress.com/0 -
For a progress bar you need '@' as a placeholder instead of the '#'.
The value you need to provide for the bar to gradually fill needs to be an Integer between 0 and 9999.ProgressWindow.OPEN('Change Log Search @1@@@@@@@@'); TotalCount := SearchKeys.COUNT; REPEAT Cnt := Cnt + 1 ProgressWindow.UPDATE(1,ROUND(Cnt / TotalCount * 9999,1)); // Process the search. UNTIL SearchKeys.NEXT = 0; ProgressWindow.CLOSE;
Please consult developer help on OPEN Function (Dialog).
Note: NAV code uses 10000 as a scaling factor, but help says, it ought to be 9999.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