web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Gantt Chart Column Label

(0) ShareShare
ReportReport
Posted on by 1,214

Hi,

I added two columns in ActiveX Gantt Chart form control as below:

gantt_5F00_activeX.png

When I run the Gantt Chart, the column label is being overridden somehow in the back end. 

gantt_5F00_run.png

I'd like to know which class/method is responsible in writing these column labels? I was searching through Gant* classes but couldn't find any class or method that makes enough sense. It would be great if someone could point me to the right direction.

Thank You.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    HAIRUL HAZRI Profile Picture
    1,214 on at

    I found it inside GanttActiveXVarchart_WrkCtr.setTableFormatFieldConstantText() method.

    Declare a new macro for each new column in the class declaration:

        #define.TableColumnItemId(2)        //New column
        #define.TableColumnProductName(3)   //New column
        #define.TableColumnStart(4)         //#define.TableColumnStart(2) -->'Start' Original Position = 2
        #define.TableColumnEnd(5)           //#define.TableColumnEnd(3) --> 'End' Original Position = 3
    


    Then inside the method add switch cases to set the label:

    // Item Id
            case #TableColumnItemId:
    
                _ganttVcTableFormatField.parmConstantText("@WAX1240");
                break;
    
    // Product Name@Description
            case #TableColumnProductName:
    
                _ganttVcTableFormatField.parmConstantText("@SYS25589");
                break;


Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans