Page 1 of 1

Modify data in a custom way

Posted: Mon Aug 01, 2022 10:53 am
by shimnx

Now I custom edit popup window, when I double click on the task card will appear after a drawer, I will be in the right to edit, click on the CARDS the question now is, how can I when editing can modify the data in the card, for example: I have modified the card of a field is high, so I hope the card field also directly to high

 tasks = [
        { id: 1, name: 'My first task',"progress" : 45, status: 'Todo', "prio": "medium", date:"2022-08-01" ,group:'GroupA' , dailyTask:1,action:3},
        { id: 2, name: 'My second task',"progress": 45, status: 'Todo', "prio": "high", date:"2022-02-01",group:'GroupA', dailyTask:1,action:3}
    ];
    resourcesDatas = [
        { id : 1, name : 'Angelo', image : 'angelo.jpg' },
        { id : 2, name : 'Celia', image : 'celia.jpg' },
    ]
    assignmentsDatas : [
        { id : 1, event : 1, resource : 1 },
        { id : 2, event : 2, resource : 2 },
    ]
    (this.taskboard.project as any).loadInlineData({
            tasksData: this.tasks,
            resourcesData:this.resourcesDatas,
            assignmentsData:this.assignmentsDatas
        })
    

Re: Modify data in a custom way

Posted: Mon Aug 01, 2022 1:02 pm
by tasnim

You can use this event on the combo https://bryntum.com/docs/taskboard/api/Core/widget/Combo#event-select to listen for select. When it selects add the selected value to the taskRecord's status


Re: Modify data in a custom way

Posted: Tue Aug 02, 2022 3:52 am
by shimnx

But I have custom HTML on the right, and I want to change the value of the card when the value of the selection box changes


Re: Modify data in a custom way

Posted: Tue Aug 02, 2022 6:06 am
by tasnim

We can't support custom html writing by you without any code. In case you need to select both, edit your code then.
If you need assistance with that, we need a runnable test case to be able to help.


Re: Modify data in a custom way

Posted: Tue Aug 02, 2022 9:33 am
by shimnx

Double clicking the card will pop up a box from the right, in this box, I want to edit the card information when the real-time update


Re: Modify data in a custom way

Posted: Tue Aug 02, 2022 1:24 pm
by tasnim

Hi,
After doing npm start I'm getting lot of errors not able to run your application

Screenshot 2022-08-02 172344.png
Screenshot 2022-08-02 172344.png (162.48 KiB) Viewed 752 times

Please let me know, how can I run your application?