Create a button that triggers an API with post method

Create a button that triggers an API with post method

antianti Posts: 1Questions: 0Answers: 0
edited April 2020 in Free community support

I will need to add a custom button that once is clicked it will trigger a post API to a URL eg Https://<IP/API/analysis with all filtered data (regardless paging). That server will analyze those data and may act accordingly. How the function inside my file will look like for this post API call in the script?

Replies

  • allanallan Posts: 63,208Questions: 1Answers: 10,415 Site admin

    This example shows how you can use a jQuery event handler inside the table. You would then use $.ajax to create the POST event based on the row / button that was clicked on.

    Allan

This discussion has been closed.