ToolBox Indicator available in Business Central Version ?

yannicklevacon
Member Posts: 8
Hello,
In 2009 version, it was possible to display a field as an "Indicator" thanks to the ToolBox button in the form designer.
Is this option available in Business Central ?
For Example, in the "User task list" (Page 1170), I would like to display a graphic view ok the field "% complete".
Thank's in advance for your help.
In 2009 version, it was possible to display a field as an "Indicator" thanks to the ToolBox button in the form designer.
Is this option available in Business Central ?
For Example, in the "User task list" (Page 1170), I would like to display a graphic view ok the field "% complete".
Thank's in advance for your help.
0
Answers
-
You need to use addin control for it, i suppose.
0 -
OBJECT Page 50161 Status Strip Example
{
OBJECT-PROPERTIES
{
Date=16.10.19;
Time=16:03:41;
Modified=Yes;
Version List=DBA;
}
PROPERTIES
{
}
CONTROLS
{
{ 21094444;;Container ;
ContainerType=ContentArea }
{ 21094445;1;Field ;
Name=PageReady;
SourceExpr='';
Visible=VisibleFalse;
ControlAddIn=[Microsoft.Dynamics.Nav.Client.PageReady;PublicKeyToken=31bf3856ad364e35];
ShowCaption=No }
}
CODE
{
VAR
VisibleFalse@21094444 : Boolean;
FormCollection@21094446 : DotNet "'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Windows.Forms.FormCollection" RUNONCLIENT;
Application@21094445 : DotNet "'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Windows.Forms.Application" RUNONCLIENT;
CurrForm@21094447 : DotNet "'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Windows.Forms.Form" RUNONCLIENT;
StatusStripProgress@21094449 : DotNet "'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Windows.Forms.ToolStripProgressBar" RUNONCLIENT;
StatusStrip@21094448 : DotNet "'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Windows.Forms.StatusStrip" RUNONCLIENT;
ProgressBar@21094450 : DotNet "'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Windows.Forms.ProgressBar" RUNONCLIENT;
EVENT PageReady@-21094445::AddInReady@0();
BEGIN
FormCollection := Application.OpenForms;
CurrForm := FormCollection.Item(FormCollection.Count-1);
StatusStrip := StatusStrip.StatusStrip;
StatusStrip.Parent := CurrForm;
StatusStripProgress := StatusStripProgress.ToolStripProgressBar;
StatusStripProgress.Minimum := 1;
StatusStripProgress.Maximum := 100;
StatusStripProgress.Value := 68;
StatusStrip.Items.Add(StatusStripProgress);
ProgressBar := ProgressBar.ProgressBar;
ProgressBar.Parent := CurrForm.Controls.Item(0).Controls.Item(0).Controls.Item(2);
ProgressBar.Minimum := 1;
ProgressBar.Maximum := 100;
ProgressBar.Value := 62;
END;
BEGIN
END.
}
}0 -
Hello da_neal,
Thanks for your answer.
But I'm afraid you're using something out of my skills...
I tried to insert your field in a list, but it seems that in that case, the PageReady::AddInReady function is not executed, so the indicator does not appeare on the page.
I tryed to call the PageReady::AddInReady function from the OnAfterGetRecord trigger of the page, but didn't succed.
Do you know how to do that and to allow the indicator to be calculated for each line in a list ?
Thank's again for you help.
0 -
This example just demo how to add control on page :-). It is not show how to add progress bar to table grid, for it i think you must develop your own addin control and use it on page.
Alternative way : http://www.olofsimren.com/custom-progress-bar-in-dynamics-nav-2013-r2/0 -
Hello, da_neal.
Thank's for your help.
I'm not really used to work with addin control... It seems to be a huge new world..
But I succed to use olofsimren solution.
It's probably a little to much for my needs, because if I well understand, the solution consists to build a picture and store it into a field for each record of the table...
But it works fine ! But it's true also that olofsimren case was a little more complexe.
So thank's again for your reply.
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