SID-02303: Need to include twiki code only on button click
|| TWiki version:
|| Perl version:
|| Server OS:
|| RedHat Linux
|| Last update:
|| 5 hours ago
I have a requirement to take input from user and on button click add that data in database. For that I have taken form to enter data. But plugin code for inserting data into database is getting executed before button click only. Everytime i refresh the twiki page data is getting inserted into database.
Can someone suggest the way to do this?
Thanks in advance.
-- TWiki Guest - 2017-03-01
Discussion and Answer
Please guide me in solving this. Is Rest Handler is solution to this? Assume I am using DatabasePlugin
. Suppose I have written code to insert record in table using this plugin then everytime the page is refreshed or loaded the record is getting added into database. I want it to happen only on button click. If Rest handler is solution then it is a blob data i need to add into table. so is it possible.
Thanks in advance
-- TWiki Guest - 2017-03-02
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.