Save the new task added to the task.

Support for v6.x of our Scheduling components


Post Reply
User avatar
ce.alicanonal
Posts: 89
Joined: Wed Sep 09, 2020 11:56 am

Save the new task added to the task.

Post by ce.alicanonal »

Hello, I added a new window to the task detail section and I put 2 textboxes in it. How can I save it in the database? If I create new fields for database, where should I edit?


User avatar
arcady
Core Developer
Core Developer
Posts: 2531
Joined: Wed Mar 20, 2013 6:57 am

Re: Save the new task added to the task.

Post by arcady »

On the client side you need to extend Gnt.model.Task class and declare your additional fields:

Code: Select all

Ext.define('Gnt.examples.advanced.model.Task', {
    extend  : 'Gnt.model.Task',

    fields  : [
        ...
        { name : 'CustomField' }
    ]
});

Then it will be available when dealing with corresponding record in javascript:

Code: Select all

task.get('CustomFIeld')

User avatar
ce.alicanonal
Posts: 89
Joined: Wed Sep 09, 2020 11:56 am

Re: Save the new task added to the task.

Post by ce.alicanonal »

I am having problems on the database side. I added 3 more columns to the resorce area as shown in my data base shema graph. My problem is that I am deleting the data entity in the BryantumGantt section and adding the database I created myself, but an error occurs. What could be the reason for this?

Attachments
erererererererererer.png
erererererererererer.png (24.28 KiB) Viewed 155 times
111111111.png
111111111.png (35.2 KiB) Viewed 155 times

User avatar
arcady
Core Developer
Core Developer
Posts: 2531
Joined: Wed Mar 20, 2013 6:57 am

Re: Save the new task added to the task.

Post by arcady »

I'm sorry I can hardly tell something useful here.


Post Reply