You make it quite difficult for other users to give an appropriate answer to that question, when you do not include any of your source code. However, when you want to execute some sort of view on your backend when a user clicks a button on the frontend, then I would recommend using a javascript ajax request. The request type should be get in this instance, as you've said that the backend should get some sort of data and update the table when the user performs the described action.
Due to the lack of information, I can only offer some basic code for the ajax implementation.
// Javascript
const viewUrl = "someView/"
function callView(){
$.ajax({
type:"get",
url: viewUrl,
success: (answer) => {//some operation}
})
}
//Html
<button onclick=callView()>Click me!</button>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…