Custom Button - Move Between Datasets

Custom Button - Move Between Datasets

quinnwizardquinnwizard Posts: 1Questions: 1Answers: 0
edited January 2023 in Free community support

Version: Cloudtables with API and Serverless embed (just to get things working; will switch to more secure method upon completion).

Background: I am building a simple 'project board' for my small business that displays two tables; 'current' and 'finished' (they are both on the same page).

Problem: I have added a custom button and added a function name of 'moveFinished' and have the option of 'single row selected'. I built the function into the head of my page, but upon clicking the new button, nothing happens. The purpose of the button / script is to move the selected row into the 'finished' dataset. I am not great at javascript or coding all together; but have tried to make it work using the 'custom button' tutorial; however I could not make it work.

Any thoughts, pointers, hints, or just solutions would be greatly appreciated.

Thanks.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,529Questions: 1Answers: 10,473 Site admin
    Answer ✓

    Hi,

    Are you actually moving the data between data sets, or is it a single data set which you can just change the flag of? The later sounds like it might be easier in this case since it is basically the same data. Embed the data set twice and use a data condition to ensure that one will load the finished and one the current records.

    The bit the custom button would need to do then is edit the value of that data point, and the live data updating, should take care of editing and removing the data as needed.

    I can help with that bit if you'd like - drop me an e-mail ( support cloudtables.com ) and we can take it from there.

    Regards,
    Allan

Sign In or Register to comment.