Within a Screen Fragment how do I call a method in the Host Screen?

I have a Host screen that contains a screen fragment. The screen fragment has a grouptable.
How do I call a host screen method whenever the group table in the fragment is updated ?


ScreenFragment has the getHostController() method that can be used to obtain a reference to the host screen, hence cast this reference to a particular screen type and call its methods.



Thank you Gleb !
I actually used the getHostScreen() method to refer back to the host screen:

PatientOpen screen = (PatientOpen)getHostScreen();
1 Like