PC SOFT

AYUDA EN LÍNEA
DE WINDEV, WEBDEV Y WINDEV MOBILE

  • New Widget
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Otros
Procedimientos almacenados
DashAddWidget (Function)
 
AjaxNo disponible
Adds and displays a widget (internal window or page) in a Dashboard control.
Caution: The widgets added by programming are not automatically displayed. You must use DashInitialConfiguration before the first display of Dashboard control.
Versiones 20 y posteriores
Windows This function is now available in WEBDEV Server.
Linux This function is now available for the WEBDEV sites in Linux.
Nueva funcionalidad versión 20
Windows This function is now available in WEBDEV Server.
Linux This function is now available for the WEBDEV sites in Linux.
Windows This function is now available in WEBDEV Server.
Linux This function is now available for the WEBDEV sites in Linux.
Ejemplo
WINDEV
// Add 2 elements
DashAddWidget(DASH_MyDashboard, IW_Sales, "Sales")
DashAddWidget(DASH_MyDashboard, IW_MonthlyStat, "Monthly statistics for July", "201307")
WINDEV
nSubscript is int

// Adds a widget that expects parameters
nSubscript = DashAddWidget(DASH_Dashboard, IW_Widget_Clock, "Clock " + ...
COMBO_AddWidget[COMBO_AddWidget]..DisplayedValue, ...
COMBO_AddWidget[COMBO_AddWidget]..DisplayedValue)

// Display this widget upon request
IF YesNo(Yes, "Do you want to display this widget?") = Yes THEN
DASH_Dashboard[nSubscript]..Visible = True
ELSE
ToastDisplay("The widget was added to the dashboard as ""hidden""." + ...
"Switch to edit mode to add it.", ...
toastShort, vaMiddle, haCenter)
END
Sintaxis
<Result> = DashAddWidget(<Dashboard control>, <Widget>, <Caption> [ , <Parameter 1> [ , <Parameter 2> [ , ... ]]])
<Result>: Integer
Subscript of added element. This subscript can be used to handle the widget.
<Dashboard control>: Control name
Name of Dashboard control to use.
<Widget>: Name of internal window or internal page
  • WINDEV Name of the internal window that must be added into the Dashboard control.
<Caption>: Character string (with quotes)
Caption of the Widget. This caption will be displayed in the popup menu of the Dashboard control and it will allow the user to handle the Widget.
<Parameter 1>: Type of value sent to the window or page (optional)
First parameter that must be passed to the "Declaration of global variables" process of the internal window or internal page to open. This parameter is passed by address and it is considered as being a variable global to the internal window or to the internal page.
Caution: Only the simple types are available.
<Parameter 2>: Type of value sent to the window or page (optional)
Second parameter that must be passed to the "Declaration of global variables" process of the internal window or internal page to open. This parameter is passed by address and it is considered as being a variable global to the internal window or to the internal page.
Caution: Only the simple types are available.
Observaciones

New Widget

The widget is declared in addition to the widgets defined in the description of Dashboard control.
This widget can be made visible:
  • by using DashInitialConfiguration before the first display.
  • by the end user via the popup menu.
  • by using the following syntax:
    DASH_DashboardName[Subscript]..Visible = True

    where <Subscript> is the Widget number returned by DashAddWidget.
Componente : wd250obj.dll
Versión mínima requerida
  • Versión 19
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario