How Do I Show a Dynamic Form Title? (Magic xpa 3.x)
Windows that have a title bar typically have text written across the title. By default, Magic xpa shows the form name on the title bar. However, you can change the title bar dynamically, at runtime, using variables in an expression.
Go to the Form Editor.
Open up the Form Properties (Alt+Enter).
Go to the Form Name property.
Expand the property and zoom from the Expression line.
Create an expression that will evaluate to the title you want. In this case, the title will read ‘Customers for salesperson’ and the user ID.
Now, this expression will show at runtime in the title bar. Notice that the old form name is still there: it will show while we are working on the form in the Studio.
Hint: This is a nice technique to use even for static titles, when the title is too long for the form name field.
The Online and Rich Client Samples projects (program TS28 and RTS28)