Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any one have any code for saving the changes made when dragged to a Database? #391

Closed
LeeWheeler opened this issue Apr 7, 2024 · 4 comments

Comments

@LeeWheeler
Copy link

LeeWheeler commented Apr 7, 2024

Hi All,

Doe's anyone have any code that they can share for saving the positions to a Database?

I use C#

I've been trasked with a school project, the Gannt code is perfect but I can't flag a save back to the Database on move.

Thanks x

@richardhj
Copy link

Maybe ask ChatGPT but be more specific on your environment ;-)

@safwansamsudeen
Copy link
Collaborator

Can't you use the change events to ping the server code and save the progress/start/end date to the DB?

@LeeWheeler
Copy link
Author

[richardhj] My environment is C# Dot Net.
[safwansamsudeen] Wouldn't know where to start :) I'm l;earning C# at Uni and I think that if I can get your code to work then I will have a tool for life.
I have it populating from a DB and everything works, I just have zero idea on how to write it back when something is chnaged as don't know JS.

@safwansamsudeen
Copy link
Collaborator

I do not know C#, but I assume you'll have to send a POST request to the server using the JS fetch or Ajax.

This request should contain details that should be stored in the DB, and should be sent using the on_progress_change or on_date_change events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants