Hi,
I was looking for a way to display a message or Alert after I save a record in sugar 7.x
Which would be the best way to do it?
Hi,
I was looking for a way to display a message or Alert after I save a record in sugar 7.x
Which would be the best way to do it?
You can redefine /clients/base/views/record/record.js
And in method
handleSave: function() {
}
create alert.
There is some information on sidecar Alerts here:
in custom/modules/<your module>/clients/base/views/record/record.js
you could extend the handleSave method to display your alert.
and in
custom/modules/<your module>/clients/base/views/create/create.js
you could extend the save
If you can share more details on your scenario perhaps there are other/better ways of doing what you need.
HTH
FrancescaS
hey guys,
thnks for the info..
In my schenario, I have an after_save logic_hook that call a soap client,
and I need to alert the user with the soap response..
I was using the SugarApplication::appendErrorMessage in the sugar 6.7,
but we are uprading it to 7.5, and it doenst work anymore...
by the way,
does the handleSave and save wait until all hooks finish to run?
cause it is in after_save, otherwise Ill need to change to before_save..
The handleSave and save won't wait for completion of all logic_hooks.
The only thing I can think of is to change your after_save to a custom API call from the handleSave/save and wait for it to complete, then display the notice upon success.
See:
Others may have better answers for you.
FrancescaS
Thnks guys for the help,
As I see I'll need to change the logic to an API, as it it better for my needs..