PC SOFT

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

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
DashInitialConfiguration (Function)
 
AjaxNo disponible
Modifies the configuration of a Dashboard control (defined in the editor) before its first display. This allows you to configure and to take into account the widgets declared in programming by DashAddWidget.
Versiones 20 y posteriores
WEBDEV - Código ServidorWindows This function is now available in WEBDEV Server.
WEBDEV - Código Navegador This function is now available in Browser code.
WEBDEV - Código ServidorLinux This function is now available for the WEBDEV sites in Linux.
Nueva funcionalidad versión 20
WEBDEV - Código ServidorWindows This function is now available in WEBDEV Server.
WEBDEV - Código Navegador This function is now available in Browser code.
WEBDEV - Código ServidorLinux This function is now available for the WEBDEV sites in Linux.
WEBDEV - Código ServidorWindows This function is now available in WEBDEV Server.
WEBDEV - Código Navegador This function is now available in Browser code.
WEBDEV - Código ServidorLinux This function is now available for the WEBDEV sites in Linux.
Versiones 22 y posteriores
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
Nueva funcionalidad versión 22
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
Ejemplo
WINDEVAndroidiPhone/iPad
// -- Initialize DASH_Dashboard
// Adds information into the initial configuration:
// - key numbers for the last 3 months
nX = 1 ; nY = 3
FOR i = 1 TO 3
// Adds the widget
nSubscript = DashAddWidget(MySelf, IW_Widget_KeyNumber, ...
StringBuild("Key numbers for %1", DateToString(dDate, "Mmm YYYY")), ...
dDate)
// Configures the widget (placed on the left)
DashInitialConfiguration(MySelf, nSubscript, nX, nY)
// The next one will be lower
nY++
dDate..Month--
END
// - stock alert
// Adds the widget
nSubscript = DashAddWidget(MySelf, IW_Widget_StockAlert, "Stock alert")
// Configures the widget (placed on the left)
DashInitialConfiguration(MySelf, nSubscript, 5, 1)
Sintaxis

Initial configuration: handling the widget by its subscript Ocultar los detalles

DashInitialConfiguration(<Dashboard control> , <Widget subscript> [, <X> [, <Y> [, <Width> [, <Height>]]]])
<Dashboard control>: Control name
Name of Dashboard control to use.
<Widget subscript>: Integer
Subscript of widget to use. This subscript corresponds to:
  • the addition number of widget defined in the window editor or in the page editor.
  • the addition number of widget returned by DashAddWidget.
<X>: Optional integer
Horizontal position of widget in number of cells.
If [<X>, <Y>] are not specified or if their value is equal to [0,0], the widget is positioned on the first free location.
The first cell is cell [1, 1].
<Y>: Optional integer
Vertical position of widget in number of cells.
If [<X>, <Y>] are not specified or if their value is equal to [0,0], the widget is positioned on the first free location.
The first cell is cell [1, 1].
<Width>: Optional integer
Width of widget in number of cells.
If [<Width>, <Height>] are not specified or if their value is equal to [0, 0]:
  • during the first call to DashInitialConfiguration, the widget size corresponds to the size of source internal window or page (at least 1 cell).
  • during the next calls to DashInitialConfiguration, the widget size corresponds to the size defined during the first call.
<Height>: Optional integer
Height of widget in number of cells.
If [<Width>, <Height>] are not specified or if their value is equal to [0, 0]:
  • during the first call to DashInitialConfiguration, the widget size corresponds to the size of source internal window or page (at least 1 cell).
  • during the next calls to DashInitialConfiguration, the widget size corresponds to the size defined during the first call.

Initial configuration: handling the widget by its name Ocultar los detalles

DashInitialConfiguration(<Dashboard control> , <Widget> [, <X> [, <Y> [, <Width> [, <Height>]]]])
<Dashboard control>: Control name
Name of Dashboard control to use.
<Widget>: Name of internal window or internal page
  • WINDEVAndroidiPhone/iPad Name of internal window to use.
  • Versiones 20 y posteriores
    WEBDEV - Código ServidorWEBDEV - Código Navegador Name of internal page to use.
    Nueva funcionalidad versión 20
    WEBDEV - Código ServidorWEBDEV - Código Navegador Name of internal page to use.
    WEBDEV - Código ServidorWEBDEV - Código Navegador Name of internal page to use.
<X>: Optional integer
Horizontal position of widget in number of cells.
If [<X>, <Y>] are not specified or if their value is equal to [0,0], the widget is positioned on the first free location.
The first cell is cell [1, 1].
<Y>: Optional integer
Vertical position of widget in number of cells.
If [<X>, <Y>] are not specified or if their value is equal to [0,0], the widget is positioned on the first free location.
The first cell is cell [1, 1].
<Width>: Optional integer
Width of widget in number of cells.
If [<Width>, <Height>] are not specified or if their value is equal to [0, 0]:
  • during the first call to DashInitialConfiguration, the widget size corresponds to the size of source internal window or page (at least 1 cell).
  • during the next calls to DashInitialConfiguration, the widget size corresponds to the size defined during the first call
<Height>: Optional integer
Height of widget in number of cells.
If [<Width>, <Height>] are not specified or if their value is equal to [0, 0]:
  • during the first call to DashInitialConfiguration, the widget size corresponds to the size of source internal window or page (at least 1 cell).
  • during the next calls to DashInitialConfiguration, the widget size corresponds to the size defined during the first call
Observaciones
  • An error occurs if DashInitialConfiguration is called after the initialization of the Dashboard control.
  • The Widgets configured by DashInitialConfiguration will be loaded and made visible after the execution of the initialization processes.
  • DashInitialConfiguration is ignored in the following cases:
    • The option "Recordar la configuración de los Widgets" is checked in the description window of the Dashboard control ("Details" tab) and the user makes the Widget invisible.
    • The user made the Widget invisible and the dashboard configuration was saved then reloaded.
Componente : wd240obj.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