What events can be passed to sforce.console.fireEvent?

Where can we find available parameters for sforce.console.fireEvent('XYZ');? Is there any list available for standard methods?

I can see this call in a Visualforce Page:

sforce.console.fireEvent('RefreshAccount');

Where might this event be defined, or is it a standard event?

Answer

As stated in the documentation fireEvent this method is used to fire a “custom” event. Then you can use addEventListener to handle your “custom” event. Using this technique you can implement communication between several components.

Try to search for “addEventListener(‘RefreshAccount'” in your project and you should find the handler for it. The implementation can be in Static resources as well if your Visualforce pages includes some custom libraries.

Attribution
Source : Link , Question Author : Dexter D , Answer Author : steals

Leave a Comment