How do I make a button on the config panel send data to the viewer panel

I also need this, it is not working with me, I hope you can prepare it asap.
Highly required.