Tuesday, 20 August 2013

How to use AJAX to update records Status in a SugarCRM Subpanel?

How to use AJAX to update records Status in a SugarCRM Subpanel?

I would like to use AJAX to update records Status in a SugarCRM Subpanel.
Below is an image of my project management modules I am working on.
In the image you can get a better idea to what I would like to achieve. In
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 filed 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 do not 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 that there might be a simple solution but if not maybe someone
could point me in the right direction that is familair with SugarCRM?
I would appreciate any help in this matter to get me closer to completion.

No comments:

Post a Comment