I am trying to get the current WebScreen title in a .NET extension. More specifically, the field highlighted below:
Based off this (old) post: http://www.outsystems.com/forums/discussion/2942/dynamically-set-the-title-of-a-page/, I've tried the following:
System.Web.UI.Page pg = AppInfo.GetAppInfo().OsContext.CurrentScreen;Type tp = pg.GetType();string title = tp.GetField("Title").GetValue().ToString();
However, the field "Title" doesn't seem to exist anymore.
Also the following returns an empty string.
System.Web.UI.Page pg = AppInfo.GetAppInfo().OsContext.CurrentScreen;string title = pg.Title;
Is there any other way to get the WebScreen title in OutSystems 9?
Take a look at this post. It is about retrieve information from screens.
Hope it helps!
André Siébra wrote:
Thanks, André, however I see that in this case you've decided to hardcode the information you needed.
Anyone else able to shed some light on this?