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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans