I would like to use AJAX to update records' Status in a SugarCRM SubPanel. Below is an image of the project management modules I am working on.
In the image you can get a better idea to what I would like to achieve. On the left column I would like to add a new button that will allow a User to quickly mark a Project Task record as completed. This would be done by changing the Status field on that record to "Complete".
I can figure out how to add my new button but I am not sure how to update the record's status in this manner. I can figure out the JavaScript to make the AJAX call and update the UI but I don't really know where to have my AJAX POST to and stuff like that to update the record.
Would I need to make a new Controller so that I have a URL to post to? I'm hoping for a simple solution but if not maybe someone who is familiar with SugarCRM could point me in the right direction?
I would appreciate any help in this matter to get me closer to completion.