In the SalesLogix web client, every page has a title section that is usually derived from the Entity that it is bound to or some attribute about the Entity. Normally this title is automatically bound. You can dynamically change the title from a load action on a quick form.
For instance, lets say we want the Account title to change if the Account we open is on credit hold. We could add a C# Code Snippet Load Action to the AccountDetails quick form like this:
Sage.Entity.Interfaces.IAccount acc = this.BindingSource.Current as Sage.Entity.Interfaces.IAccount;
Sage.Platform.WebPortal.EntityPage ep = this.EntityPage;
Sage.Platform.Application.IEntityContextService entityContext = ep.PageWorkItem.Services.Get<Sage.Platform.Application.IEntityContextService>();
if (entityContext.HasEntityContext)
{
if (ep.ViewMode == Sage.Platform.Orm.Entities.EntityViewMode.Detail)
{
string baseTitle = "Account - " + acc.AccountName;
ep.TitleBar.Text = baseTitle + (acc.Status=="Credit Hold" ? " <font color='red'>***Credit Hold***</font>" : "");
}
}
With this code, it checks the Status of the current Account, and if it is "Credit Hold" the title has a warning appended to the end of the standard title.