Question:
How can I open a screen from a Library (XControl)?
Solution:
To do so, follow these procedures:
- In the desired XControl, create a property for the frame name (called FrameName) and another one for the screen name (called ScreenName).
-
In the same XControl, access an event (for example, a button’s Click() event) e escreva o seguinte script: Application.GetFrame(XControl.FrameName).OpenScreen XControl.ScreenName, 0
- Save and register the Library.
- Insert the XControl on the desired screen, and then fill FrameName and ScreenName properties with the names of the frame and the screen to be opened.