ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV 2025 feature!
Help / Automatic Application Features (AAF) / AAF on Tables/TreeView Tables
  • Overview
  • Prerequisites
  • Copying and pasting a row from a Table control into another Table control
  • Remarks
  • Programming
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
Table controls are used to view and manipulate data. In some cases, it may be useful for users to copy an entire row from one Table control and paste it into another.
A specific Automatic Application Feature makes this possible.

Prerequisites

To make this Automatic Application Feature (AAF) available to end users, a few conditions must be met:
  • This feature is only available for Table controls populated programmatically.
  • The Table control to paste into, as well as its columns, must be in edit mode.
  • The two Table controls must be compatible, i.e., they must have the same number of columns, be of the same type, etc.
Copying and pasting a row from a Table control into another Table control
To copy a row from one Table control to another:
  1. In the first Table control, right-click the desired row and select "Copy row".
  2. In the second Table control, right-click where you want to paste the data and select "Paste entire row".
The current selection in the second Table control is immediately replaced with the copied data.
Note: You can also use the Ctrl + C and Ctrl + V shortcuts.

Remarks

  • You can also use the Ctrl + C and Ctrl + V shortcuts.
  • All the WLanguage events of the target Table control and of its columns are executed on the pasted data. These include: entry, exit, modification, etc.
  • It is also possible to copy and paste Table control rows between two WINDEV applications open at the same time.
Programming
A series of AAFxxx functions can be used to manipulate the "Paste entire row" option. Simply use these functions with the aafPasteEntireRow constant.
AAFChangeCaptionChanges the text of the option that allows users to paste a row from one Table control into another Table control.
AAFDisableDisable the context menu that allows users to paste a row from a Table control into another Table control.
AAFEnableRe-enables the context menu that allows users to paste a row from a Table control into another Table control.
AAFExecutePastes a row from one Table control into another. The current row is replaced by the pasted row.

Example: Copying a row from "TABLE_FullMenu" to "TABLE_CurrentMenu":
// Copy row
AAFExecute(TABLE_FullMenu, aafCopyRow)

Multitask(-1 s)
// Paste row
AAFExecute(TABLE_CurrentMenu, aafPasteEntireRow)
Minimum version required
  • Version 2025
Comments
Click [Add] to post a comment

Last update: 03/13/2025

Send a report | Local help