Insert project_id into table on save

Pardon me if this has been answered, but I can’t find the answer to fit this situation.

I am using the chart with the CDN. I have customized the view to show me which project_id is tied to a task. What I’m having trouble with is persisting to the database.

I have this code in the view, where I can successfully see the project id:

gantt.attachEvent(“onTaskClick”, function(id, e){

If project_id is saved in a task property, you can add a column in the database and map it in the backend framework settings.
We have the following guides that explain how to create framework applications with Gantt:
In these guides, you can see examples of how to configure a framework application to save task properties in the database.