PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Restores the configuration of a Dashboard control. This configuration includes the following elements:
  • position of internal windows or pages in the Dashboard control.
  • size of internal windows or pages in the Dashboard control.
  • visibility of internal windows or pages in the Dashboard control.
Note: To automatically save or restore the user configuration, check "Store the configuration of Widgets" in the "Details" tab of the description window of control.
Versions 20 and later
WEBDEV - Server codeWindows This function is now available in WEBDEV Server.
WEBDEV - Browser code This function is now available in Browser code.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
New in version 20
WEBDEV - Server codeWindows This function is now available in WEBDEV Server.
WEBDEV - Browser code This function is now available in Browser code.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
WEBDEV - Server codeWindows This function is now available in WEBDEV Server.
WEBDEV - Browser code This function is now available in Browser code.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
Versions 22 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
New in version 22
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
Example
WINDEV
// Asks the user for the configuration that will be loaded
sFile is string

// Opens the file picker
sFile = fSelect("", "", "Select a configuration file...",...
"Dashboard configuration" + TAB + "*.dashconf", "*.dashconf")
// If a file is selected
IF sFile <> "" THEN
// Retrieves the configuration found in the file
sConfiguration is string = fLoadText(sFile)
// Loads the configuration
IF DashLoadConfiguration(DASH_Dashboard, sConfiguration) THEN
ToastDisplay("The configuration was loaded", toastShort, vaMiddle, haCenter)
ELSE
Error("Error while loading the configuration", ErrorInfo())
END
END
WEBDEV - Server code
// Get a file that was saved beforehand
IF fFileExist(fWebDir() + ["\"] + "DashConfig.tdb") THEN
sMyConfig = fLoadText(fWebDir() + ["\"] + "DashConfig.tdb")
DashLoadConfiguration(DASH_TimeZones, sMyConfig)
END
Versions 22 and later
AndroidiPhone/iPad
// Get a file that was saved beforehand
IF fFileExist(fCurrentDir() + ["\"] + "DashConfig.tdb") THEN
sMyConfig = fLoadText(fCurrentDir() + ["\"] + "DashConfig.tdb")
DashLoadConfiguration(DASH_TimeZones, sMyConfig)
END
New in version 22
AndroidiPhone/iPad
// Get a file that was saved beforehand
IF fFileExist(fCurrentDir() + ["\"] + "DashConfig.tdb") THEN
sMyConfig = fLoadText(fCurrentDir() + ["\"] + "DashConfig.tdb")
DashLoadConfiguration(DASH_TimeZones, sMyConfig)
END
AndroidiPhone/iPad
// Get a file that was saved beforehand
IF fFileExist(fCurrentDir() + ["\"] + "DashConfig.tdb") THEN
sMyConfig = fLoadText(fCurrentDir() + ["\"] + "DashConfig.tdb")
DashLoadConfiguration(DASH_TimeZones, sMyConfig)
END
Syntax
<Result> = DashLoadConfiguration(<Dashboard Control> , <Configuration>)
<Result>: Boolean
  • True if the configuration was loaded.
  • False otherwise. To find out the error details, use ErrorInfo.
<Dashboard Control>: Control name
Name of Dashboard control to use.
<Configuration>: Character string (with quotes)
Configuration to restore. This configuration is the result of DashSaveConfiguration.
Caution: If the format of this parameter is invalid or if it cannot be applied to the Dashboard control (because the internal windows/pages or the number of columns do not correspond for example), <Result> is set to False.
Remarks
The widgets declared visible since the last backup must be visible when loading the configuration.
Related Examples:
WD Dashboard Training (WINDEV): WD Dashboard
[ + ] The "WD Dashboard" example is an educational example for using the Dashboard control.
This example explains how to:
- handle the control in "edit" mode,
- save/load a configuration,
- configure the control (initial configuration, addition/deletion of widgets, ...),
- refresh a widget,
- etc.
WW_Dashboard Training (WEBDEV): WW_Dashboard
[ + ] The "WD Dashboard" example is an educational example for using the Dashboard control.
This example explains how to:
- handle the control in "edit" mode,
- save/load a configuration,
- configure the control (initial configuration, addition/deletion of widgets, ...),
- refresh a widget.
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
WEBDEV - Browser code WDJS.DLL
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment