Saturday, 24 August 2013

Lose formatting in SugarCRM SubPanel when new record is created

Lose formatting in SugarCRM SubPanel when new record is created

Over the past couple weeks I have begin learning SugarCRM development. My
first project onmthe platform is my own Project management modules.
Below is the image of the Project DetailView screen. In the SubPanel is
the Project Tasks.
Using AJAX I was able to add a checkbox that alternates to change the
Status field for a Task between 3 possible Status's. Open, In_Progress,
and Complete.
On a Success callback from the AJAX request, it updates the UI to update
the Checkbox image, updates the Status column with the appropriate
background color and text, and then also does some math to correct the
Project Stats Counter for Closed and Open tasks count.
http://i.stack.imgur.com/wrze5.png



So this is all working great so far but there is 1 major problem. When you
use the Quick Create form to create a new task on the SubPanel... it
reloads the SubPanel with plain text and I lose all my formatting. The
formatting for the Checkbox field and the Status field vis currently
applied through a Hook called $hook_array['process_record']
In my research I have discovered many people run into this problem but I
have yet to really find a solution. I know anything is possible so I am
really hoping a Sugar guru can help me out here? Any ideas?

No comments:

Post a Comment