ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Dashboard functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Saves the configuration of a Dashboard control in string format. This configuration includes the following elements:
  • position of internal windows/pages in the Dashboard control.
  • size of internal windows/pages in the Dashboard control.
  • visibility of internal windows/pages in the Dashboard control.
Remark: To automatically save or restore the user configuration, check "Remember configuration of Widgets" in the "Details" tab of the control description window.
Example
WINDEV
// Asks the user for the backup file
sFile is string
 
// Opens the file picker
sFile = fSelect("", "", "Select a configuration file...", ...
"Dashboard configuration" + TAB + "*.dashconf", "*.dashconf", ...
fselCreate + fselExist)
// If a file is selected
IF sFile <> "" THEN
// Gets the current configuration in a string
sConfiguration is string = DashSaveConfiguration(DASH_Dashboard)
// Saves the configuration
IF fSaveText(sFile, sConfiguration) THEN
ToastDisplay("The configuration was saved", toastShort, vaMiddle, haCenter)
ELSE
Error("Error while saving the configuration file", ErrorInfo())
END
END
WEBDEV - Server code
// Save a configuration
sMyConfig is string
sMyConfig = DashSaveConfiguration(DASH_TimeZones)
fSaveText(fWebDir() + ["\"] + "DashConfig.tdb", sMyConfig)
Syntax
<Result> = DashSaveConfiguration(<Dashboard control>)
<Result>: Character string
Configuration of Dashboard control.
This configuration can be saved by fSaveText or SaveParameter.
This configuration can be restored by DashLoadConfiguration.
<Dashboard control>: Control name
Name of the Dashboard control to be used.
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.
Component: wd290obj.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help