When opening the db in the dashboard mode, the default view, defined in the database settings, is displayed, but the highlighted tab is from the last visit. I've changed the formula in the Frameset - Dashbord Views from:
@GetProfileField("cfg_dbconfig"; "dbcfg_InitialView")
to:
tab := @Environment(@ReplicaID + "~tabselected");
@If(tab ="1"; @GetProfileField("cfg_dbconfig"; "DashboardTabContentName_1");tab ="2"; @GetProfileField("cfg_dbconfig"; "DashboardTabContentName_2");tab ="3"; @GetProfileField("cfg_dbconfig"; "DashboardTabContentName_3");tab ="4"; @GetProfileField("cfg_dbconfig"; "DashboardTabContentName_4");@GetProfileField("cfg_dbconfig"; "dbcfg_InitialView"))
Now the initial view is selected by the last environment setting.
P.S.: A very good template