Skip to main content

Hi Everyone,
Hoping this is an easy answer.  Is there a way to utilize a custom action to change the view of a project?  
I have a couple use cases where I need to have a user change from a project details ‘overview’ view to a gantt chart view and would like to have that fire off via custom action rather than have the user manipulate the ‘project details’ view manually.

I am leveraging the Dynamic Layouts to manipulate the project details, but need to move to a gantt view.

 

Thank you!

 

 

Hi Shane

You could define a syntax in the Success section of the Custom Action, by selecting Open URL:

Use the function GetObjectViewUrl()

  • objectID = CurrentObject()
  • viewId = go to the Objects tab, search for View, select the relevant Gantt view
  • expirationDate = set an expiration date, for example Date(2030,12,31)
  • register = set to true
  • moreInfo = set to true

The syntax could then look like the following:

{GetObjectViewUrl(CurrentObject(),'kn7csguri7ui3m9tytx59v2l385',Date(2025,12,31),true,true)}

This will redirect the user to the defined view in a new tab, but it won’t allow to click or select a different view.

Hope that helps


Reply