These are some ideas I have put together. Let me know if I'm on the right track.
- On the Click of the button, make a Ajax request to the server for the message, on callback display the message in the messagebox.
- I've done this approach before but this approach feels clunky to me.
- Use the Ext.Updater to update the body message. I've never used this approach and I'm unfamiliar with it. So I'm curious if this is the correct approach to doing it. I've also seen the loadScripts property and I'm wondering how it could be used.
So to summarize: I have a button that needs to launch a confirmation dialog. The confirmation message needs to be different depending upon some state in the server. What I'm looking for is some guidance on how to resolve this problem and also hoping to find a pattern that I could use elsewhere in my customer's application.
Thanks for any help provided.