Hello everyone,
We have a table called work order, this work order table has a variant for the unplanned work orders. These unplanned work orders need to be planned. For this we wanted a scheduler and drag and drop functionality.
As a test I first made the task that plans an unplanned work order. The screen build up is as follows: on the right hand side I have a scheduler with the original table as it automatically filters on planned work orders. On the left hand side I have a table variant for the unplanned work orders.
When I use a conventional task with two fields for start and end date, it nicely plans the work order I ask it to be planned. The work order disappears from the unplanned list, and appears on the scheduler. This works fine, but I want it to work with drag and drop (and the task is necessary).
When I drag and drop an item on the scheduler, it opens the task (as dropping on specific dates is not possible). I fill in the task fields and hit execute. When I hit execute, it will replan the selected field in the scheduler, and not the unplanned work order I just dragged onto the scheduler.
So I tried to pass the work_order_id of a work order as a value to the task. And it seems this is not possible via drag and drop, as it happens on the same table (albeit a variant of the table work order to the original work order table). It can only check whether the work_order_id is equal to whatever is selected, and this will never be the case, as the work order is unplanned, and not yet visible on the scheduler.
Is there a way to pass this ID field as a value to another variant of the same table (so the task knows what unplanned work order needs to be planned)?