Exemplo n.º 1
0
        /// <summary>
        /// Resets Language, Px databases and aggregation files currently cached in memmory.
        /// </summary>
        public static void ResetAll()
        {
            //resets the languages
            PCAxis.Paxiom.Localization.PxResourceManager.ResetResourceManager();
            PXWeb.LanguagesSettings langs = (PXWeb.LanguagesSettings)PXWeb.Settings.Current.General.Language;
            langs.ResetLanguages();

            //resets the databases
            PXWeb.DatabasesSettings databases = (PXWeb.DatabasesSettings)PXWeb.Settings.Current.General.Databases;
            databases.ResetDatabases();
            //Reload settings per database
            PXWeb.Settings.Current.LoadDatabaseSettings();

            //resets aggregation information
            PCAxis.Paxiom.GroupRegistry.GetRegistry().ReloadGroupingsAsync();

            // Clear all caches
            PXWeb.Management.PxContext.CacheController.Clear();
        }
Exemplo n.º 2
0
 protected void btnResetLanguage_Click(object sender, EventArgs e)
 {
     PCAxis.Paxiom.Localization.PxResourceManager.ResetResourceManager();
     PXWeb.LanguagesSettings langs = (PXWeb.LanguagesSettings)PXWeb.Settings.Current.General.Language;
     langs.ResetLanguages();
 }