2022-03-01 11:45 AM
I need to show a pop-up window when a particular condition satisfies. I created a model window and showed it when the condition satisfies. However, when I have multiple screens, do I have to create this model window each and every screen? Is there a way to create it once and show it no matter whatever screen is currently active? I don't want to change the screen but show the pop-up in current screen itself.
Solved! Go to Solution.
2022-03-02 03:13 AM
Hello @BGuth.1 ,
Unfortunately, you will have to integrate your modal window on every screen/class you want to display your popup in. We are currently working on a common BaseClass to implement that kind of functionalities, but it's not deployed yet.
/Yoann
2022-03-02 03:13 AM
Hello @BGuth.1 ,
Unfortunately, you will have to integrate your modal window on every screen/class you want to display your popup in. We are currently working on a common BaseClass to implement that kind of functionalities, but it's not deployed yet.
/Yoann
2022-03-05 12:46 AM
I'm very happy to hear this and hope that you are prioritizing the common BaseClass so that it is available soon. At present, if one wishes to conform correctly to the MVP model, every single screen that uses a particular popup, widget, or such, must duplicate the code that does so. This goes against every thing I've learned and practiced in years of design and coding.
In my case, I have a common footer that appears on every screen, and includes a time/clock display that must be updated regularly. If the current time is captured in the model (as it should be), then, for every screen in the project, one must call a ModelListener-defined function to pass the time to the Presenter, and then, in turn, a function in the Presenter to pass the time to a function in the View, all of which must be entered on every screen.
Another feature that would be of tremendous value would be to see one's own classes and widgets appear in the Designer. I know this is a challenging and complex undertaking; but every instance where it becomes necessary to add ones objects in code without seeing them in the Designer makes the Designer less and less useful.
2022-04-22 07:10 PM
An additional comment...
The base class you describe as being under development must allow users to define base classes not only for the View, but the Presenter as well, in order that the base class can define a complete path for messages up and down the MVP stack that will be in place for every screen generated.