PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Disabling options and bar of edit mode
  • Deleting the Edit mode for the end user (via the AAF)
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
Opens or closes the "Edit" mode of Dashboard control.
Versions 20 and later
WEBDEV - Server codeWindows This function is now available in WEBDEV Server.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
WEBDEV - Browser code This function is now available in Browser code.
New in version 20
WEBDEV - Server codeWindows This function is now available in WEBDEV Server.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
WEBDEV - Browser code This function is now available in Browser code.
WEBDEV - Server codeWindows This function is now available in WEBDEV Server.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
WEBDEV - Browser code This function is now available in Browser code.
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
WINDEVAndroid
// Informs the user if the dashboard is already in edit mode
IF DashMode(DASH_Dashboard) <> dashNoModif THEN
Error("The dashboard is in edit mode already")
RETURN
END

nOption is int

// Defines the edit option
IF CBOX_EditOptions[1] THEN nOption += dashMove
IF CBOX_EditOptions[2] THEN nOption += dashResize
IF CBOX_EditOptions[3] THEN nOption += dashDelete

// Checks that at least one option is checked
IF nOption = 0 THEN
Error("At least one edit option must be checked")
ReturnToCapture(CBOX_EditOptions)
END

// Modifies the edit mode
DashMode(DASH_Dashboard, nOption)
WINDEVAndroid
// Disable the deletion of widgets
// but not their move or resizing:
DashMode(DASH_NoName1, dashMove + dashResize)
// Caution, to avoid displaying the toolbar,
// you must use DissableAAF associated with the aafDashEditTdbMode constant.
Syntax

Modifying the mode of Dashboard control Hide the details

DashMode(<Dashboard Control> , <Mode>)
<Dashboard Control>: Control name
Name of Dashboard control to use.
<Mode>: Integer constant (or combination of constants)
Edit options available for the user:
dashMoveSwitch to edit mode: the user can move the widgets in the Dashboard control.
dashResizeSwitch to edit mode: the user can resize the widgets in the Dashboard control.
dashNoModifClose the edit mode: the user cannot modify the widgets in the Dashboard control.
This constant cannot be combined with the other constants.
dashDeleteSwitch to edit mode: the user can hide the widgets in the Dashboard control.

Finding out the current mode of Dashboard control Hide the details

<Result> = DashMode(<Dashboard Control>)
<Result>: Integer constant
Current edit mode of Dashboard control:
dashMoveEdit mode: the user can move the widgets in the Dashboard control.
dashResizeEdit mode: the user can resize the widgets in the Dashboard control.
dashNoModifStandard mode: the user cannot modify the widgets in the Dashboard control.
dashDeleteEdit mode: the user can hide the widgets in the Dashboard control.
<Dashboard Control>: Control name
Name of Dashboard control to use.
Remarks
AndroidiPhone/iPad

Disabling options and bar of edit mode

DashMode is used to disable some features of the Dashboard control. Deleting these features can have consequences on the bar of edit mode. Therefore, if the deletion of widgets is not allowed, the bin button is not displayed in the toolbar.
Note: To entirely disable the toolbar display on the Dashboard control, use AAFDisable associated with the aafDashEditMode constant.

Deleting the Edit mode for the end user (via the AAF)

DashMode is used to switch to edit mode by programming.
To prevent the user from switching to edit mode (via the popup menu or the long click), use AAFDisable (or DisableAAF) associated with the aafDashEditMode constant.
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