How do I add an 'add' button for adding details in database when using servlet jdbc as backend?
How do I add an 'add' button for adding details in database when using servlet jdbc as backend?

as in I have searched for it but didnt find any such example.
I am using the datatable inside jsp.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Just to be clear, is this using Editor? Or some other mechanism? If Editor, this thread might help,
Colin
No, actually I just want the add button to open a pop -up , i.e the modal (bootstrap)
As i can edit the modal as per my wish.
Are you saving the new data to the server or just the client?
If just in the client use
row.add()
to add the new row to the Datatable.If saving to the server via ajax you have a couple options:
row.add()
to insert the returned data. This would similar to how Editor behaves.ajax.reload()
to have Datatables refresh the entire data set.If this doesn't help then please provide more details of how you want this to work.
Kevin
Ok... so I have this button which opens a form and I can retrieve the data from it to add it in the database.-
And I want to know if I can achieve the modal functionality inside the buttons provided inside data table.
such as add a custom button inside which open a modal(pop-up) .
Basic code inside js-
You can create a custom button to option the form, like this example.
Kevin
Yes , Thank you, I looked into it and it works now.