Hello,
I am trying to make a simple APEX function that allows the user to click a button on the page which corresponds to a team. I am using page processes once the button is pressed to increment the points value for the specific team by 1. An example of one of the processes is:
UPDATE teams
SET number_of_points = number_of_points + 1
WHERE team_colour = 'Blue';
This piece of SQL is executed on the page submit and when the button is pressed.
Unfortunately, no matter which button is pressed, all of the page processes are fired and all teams gain when point. How can I make it possible for the process to only effect the team for which the button corresponds to.
Thank you so much!