The Gantt Lightning Web Component (LWC) is an upgrade of our existing Project Gantt from a Visualforce component to a Lightning Web Component (LWC), aligning it with the current Salesforce platform architecture and programming language. This upgrade brings a more intuitive user interface, aligned with the Lightning aesthetic. It also enhances performance and scalability.
This help article outlines the required configurations for the Gantt Lightning Web Component (LWC).
Please Note:
You must be a Salesforce System Administrator to complete the steps below.
If you have not done so yet, it is highly recommended that you first go through and complete the post-install instructions for Inspire Planner.
Please see Inspire Planner Post-install Instructions.
A new field called “Gantt Version” has been added to the Project object. The value in this field determines which version of the Gantt to display when you open a project. You will need to make sure that your users have read and write access to this field.
Gantt Version field defaults to a blank value. When this field is blank or has a value of "Visualforce", then it will display Gantt Visualforce.
The following permission sets that come out-of-the-box with Inspire Planner already include access to this field:
If you are using custom permission sets, then you will need to edit them to enable access to this new field.
A new field called “Deactivated Dependencies” has been added to the Project Task object. When you make an adjustment to project task dates that violate a constraint, the constraint violation dialogue displays the option to deactivate the dependency. When the user chooses to deactivate the dependency, the Predecessor field keeps the value, and the same value is populated in “Deactivated dependencies” field. This means that any adjustments made to the predecessor task(s) no longer impact the successor task(s).
If you are using custom permission sets, you will need to edit them to enable access to this new field.
A new field called “LWC Settings” has been added to the User Project Settings object. This is where Inspire Planner stores the user’s viewing preferences (columns, column widths, column order, etc.) for a project for the Gantt LWC.
Next, you will need to add the "Gantt Version" field to the project page layout you use for waterfall projects.
You will also need to add the “Gantt Version” field to your Project Lightning record page if you are using Dynamic Forms.
If you are using record types for Projects, you can skip this step. Click here to move to the next step.
The Project Lightning record pages that come out-of-the-box with Inspire Planner already contain the Gantt LWC. However, if you are using a custom Project Lightning Record page, you will need to add the Gantt LWC to the page and also set the component visibility.
Please Note the following:
Gantt Version field defaults to a blank value. When this field is blank or has a value of "Visualforce", then it will display Gantt Visualforce. It is important to apply component visibility so that only 1 version of Gantt is displayed - either Visualforce or LWC. Due to the auto save function, having both components displayed at the same time will cause conflicts.
With the introduction of Gantt LWC, we're excited to announce a new Project Schedule action button designed specifically to support the transition from the Gantt Visualforce component to the Gantt Lightning Web Component (LWC). This button facilitates a seamless transition by supporting both Gantt Visualforce and Gantt LWC projects. It determines which component to display based on the Gantt Version field, enabling a smooth conversion for all projects.
The Gantt LWC Conversion Toolkit includes a permission set and apex classes that support your validation and conversion of Gantt Visualforce projects to Gantt LWC. It is available as a separate package you will need to install in your Salesforce org.
Whether you are installing the Gantt LWC Coversion Toolkit for the first time, or already have it installed, you will need to click on the link below to either install the Gantt LWC Conversion Toolkit or update it to the latest version (version last updated with JUN 2024 - Maintenance 2, released on Sept 16, 2024).
Use this link to install or update the Gantt LWC Conversion Toolkit in your Salesforce Production Org:
https://login.salesforce.com/packaging/installPackage.apexp?p0=04tbn000000mtAH&isdtp=p1
Use this link to install or update the Gantt LWC Conversion Toolkit in your Salesforce Sandbox Environment:
https://test.salesforce.com/packaging/installPackage.apexp?p0=04tbn000000mtAH&isdtp=p1
This permission set grants users access to fields and apex classes that support your validation and conversion of projects from Gantt Visualforce to Gantt LWC.
Assign this permission set to all Inspire Planner users.
This field is used to identify tasks that have been manually rescheduled to start before its predecessor. You will need to add this field to the Gantt UI as a column so that users are able to see it when they open projects.
You will need to add the "Assign Constraints Script (Admin Only)" and "Predecessor Violation Script (Admin Only)" actions to your project page layout.
The "Assign Constraints Script" runs a job that automatically populates a Start-no-earlier-than constraint for all tasks without predecessors or where the task has been manually rescheduled to start later than its predecessor, and where the task does not have a constraint. This prevents it from being rescheduled according to its dependency when the project is converted from Gantt Visualforce to Gantt LWC. The "Predecessor Violation Script" identifies tasks that have been manually rescheduled to start before its predecessor and set the "Violation detected" field to TRUE. You can then review these tasks and manually correct them by either adding a Must-start-on Constraint or by adding a negative lag.