How to get projectName at runtime

Hi All,
I was wondering if it’s possible to get the name of the project starting from the ID of a task. I need it because i’d like to use the project name when i call gantt.attachEvent (“onTaskClick”…

thank you wery much.

Hi, you can use this.Project to access task’s parent Project and then this.Project.getName() will give you project’s name.

Thank you for your support, Fedor.
Now it works.
thanks again.