Scheduling Gantt Chart "Hide Form and Apply Immediately If Valid" not working

I have a number of right-click actions applied to my scheduling layer. One of them needs to run in the background to create some schedule objects to simulate a copy and paste of a group of pucks to a different resource row. It doesn’t work correctly because the action form displays even if I have the “Hide form and apply immediately if valid” option enabled in the “Additional Options” on the configuration of the right-click button.

When that option is enabled, the form still pops up, and you have to click Submit for the action to run at all. The action ends up running twice – once when you click submit and once in the background because the form was immediately valid. Instead of one copy of a group of pucks, I end up with two – and the move doesn’t work because the form pops up. The behavior seems like a bug in the widget itself. Curious if I’m missing something or if others have seen this and found a workaround.

A related issue is that the “Drag Cursor to Create Action” does not have the option to hide the form if all required parameters are included/valid. There needs to be a way to create on shift-drag without a form, because the form defeats the point of having the function there in the first place.

The Ontology Manager should really have an option to not show a form (not just the default layout of form or table). That would solve both issues. Or fixing the “Hide Form and Apply Immediately If Valid” functionality in the right-click puck while also adding the option to the “Drag Cursor to Create Action”.

Hi @djpoulsen21 !

We are tracking this - that we do not listen to the “hide” if toggled on. This is true for all the action’s configured in the scheduling gantt. We are creating a December burn down to target annoying small bugs. I will see if this is simple enough for us to add onto that list!

For testing purposes:

  1. Are you using Scenarios in your widget?
  2. Do you mind sending over a notionalized version of your function that you are calling to copy + paste a puck(s)? As long as this doesn’t contain revealing information about you as a client, it should be good to go :slight_smile: .

Related, we will be coming out soon with a feature called “Cross Widget Drag and Drop”. This will enable you to drag objects from an object list “into” the Scheduling Gantt and trigger an action. This mimics the ability to drag a puck from a object list and “Copy” it into the Gantt. This work is currently in progress. Earliest it will be released is mid December. Most likely released at start of Jan, when we return from break.

Thanks!

Molly

Hi Molly!

Thanks for the quick reply! I’m happy to know you are already tracking the issue and hope to get a fix in soon (hopefully). :slight_smile:

  1. I am not using Scenarios (yet – it’s on my to-do list to look into)

2. As pucks are selected, a workshop string array variable appends the schedule object id and associated resource object id.

public async recreateMovedPucks(myWorkshopArray: string[]): Promise<void> {
const objects = Objects.search().myObjectType().all()
const scheduleIds = <function to iterate/split parameter and return scheduleIds>
const objectsToRecreate = objects.filter(x => scheduleIds.includes(x.xId))
for (obj of objectsToRecreate) {
< create a copy of the original schedule object using Uuid.random() to replace the moved object’s id and the resourceId split out from myArray as the resourceId/foreign key>
}

If the form can be set not to show, then the new pucks are created in the original position of the pucks being moved while/after they are dragged and dropped to a new row.

Follow-on comment: Currently drag and drop of multiple pucks all end up on the end drag resource. It would be cool if there were an option to drop them in the original position/alignment of the pucks (e.g. if puck one is three resource rows up from puck two, when you drop the group on a resource row, the first one is created on that row and the second puck is created three rows down from the first). Does that functionality exist in another widget (maybe the Spreadsheet view)? Given filtered objects and/or pinned rows, it seems like a complicated function to try to write, but if it exists elsewhere then maybe it’s possible. :person_shrugging:

Also, the ability to drag objects from an object list into the Scheduling Gantt and trigger an action would be great! I was trying to figure out if I could drop a colored metrics card from above into the chart somehow to create a new puck. Great to know I can move onto something else and wait for the feature to get released!

Hi @djpoulsen21 ,

Wanted to give you an update!

(1) Cross Widget Drag and Drop: Cross Widget Drag and Drop is soon to be GA’d. We released it under a feature flag to internal Palantirians and their teams. If you are working with a Palantirian, you are welcome to ask them for early access to this feature. Note - there is not guaranteed stability when it is under a feature flag. In about two weeks, we will remove the feature flag and allow anyone to use this feature.

(2) Multiple puck drag and drop: This is interesting! We haven’t received much feedback on multiple puck drag and drop, but have always been curious in the more specific ways its used and how we could fine tune the functionality. I will record your feedback. We will be reviewing the next set of features to take on our roadmap in March. No promises yet, but I will add this to the list to consider for our Summer roadmap. if you have other ways you’d like to ideally “use” multiple puck drag and drop, definitely feel free to list.

(3) Hide action form: We started work on this in December and are continuing to work on it Jan. So not totally resolved yet, but should be by end of Jan!

Thanks!

Molly