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
Returns the number of widgets found in a Dashboard control. The following widgets are taken into account:
  • the widgets declared in the window editor or in the page editor,
  • the widgets added by DashAddWidget.
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
// Displays the number of displayed widgets and the total number of widgets
InfoBuild("The dashboard contains %1 widgets among which %2 are displayed", ...
DashCount(DASH_Dashboard, toTotal),
DashCount(DASH_Dashboard, toShown))
Syntax
<Result> = DashCount(<Dashboard Control> , <Type of Widget>)
<Result>: Integer
Number of widgets found in the Dashboard control.
<Dashboard Control>: Control name
Name of Dashboard control to use.
<Type of Widget>: Integer constant
Type of Widget to take into account:
toShownOnly the Widgets displayed are taken into account.
toTotalAll Widgets are taken into account (no matter whether they are displayed or not).
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