if want to change the title of WHS Mobile app
Class WHSMobileAppServiceXMLTranslator
we can extend this method as well
/// <summary>
/// Returns the page's title.
/// </summary>
/// <param name = "_pagePattern">The pattern of the page.</param>
/// <param name = "_pass">The pass</param>
/// <param name = "_controlsList">The control list.</param>
/// <returns>The page's title.</returns>
protected str pageTitle(WHSMobileAppPagePattern _pagePattern, WhsrfPassthrough _pass, List _controlsList)
{
if (_pagePattern == WHSMobileAppPagePattern::Menu)
{
return this.findFirstNonErrorControlLabel(_controlsList);
}
if (_pass && _pass.exists(#MenuItem))
{
return WHSRFMenuItemTable::find(_pass.lookup(#MenuItem)).rfTitle;
}
return '';
}
Comments
Post a Comment