it is possible to add Split a task by assigning a start and end date

Show cool things you have done with our products
Post Reply
User avatar
Jean
Posts: 9
Joined: Wed Feb 20, 2019 11:12 pm

it is possible to add Split a task by assigning a start and end date

Post by Jean » Fri Mar 01, 2019 1:31 am

Hi,

Please can you tell me how I can add tasks.
In this case :
1.- I selected a task
2.- I show my form
3 .- I add 3 objects with the following formats:

Code: Select all

{
     "Id"        : 1,
     "StartDate" : "2017-01-17",
     "EndDate" : "2017-01-19" 
     "Duration"  : 2
},
{
     "Id"        : 2,
     "StartDate" : "2017-01-20",
     "EndDate" : "2017-01-22" 
     "Duration"  : 2
}
4.- When I click on the SAVE button, the list of segments applies to the TASK.

Is there an event or method?



Different from this method :

Code: Select all

    splitTask: function() {
        var a = this,
            e = a.grid.getSchedulingView(),
            d = e.getDateFromX(a.triggerEventXY[0]),
            c = e.timeAxis;
        var b = {
            task: a.rec,
            pos: a.triggerEventXY,
            date: d,
            timeAxis: c,
            tick: c.getAt(Math.floor(c.getTickFromDate(d)))
        };
        b.task.split(a.getSplitDate(b), a.getSplitDuration(b), a.getSplitDurationUnit(b))
    }
Or

Can you tell me how to configure the method to add many segments?


attached image.

thanks.
Attachments
segment2.png
Is there an event or method?
segment2.png (93.06 KiB) Viewed 297 times

User avatar
mats
Core Developer
Core Developer
Posts: 14554
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: it is possible to add Split a task by assigning a start and end date

Post by mats » Fri Mar 01, 2019 7:30 pm

You can probably implement this yourself, by using our Splittable API. https://www.bryntum.com/docs/gantt-for- ... Splittable

Note the 'split' API method: https://www.bryntum.com/docs/gantt-for- ... thod-split
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

Post Reply