PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Use conditions
  • Characteristics of row elements
  • Browsing Table or TreeView Table control: Modifications in the linked data file
  • Modifications performed in a browsing Table or TreeView Table control
  • TableModify function and ..Modified property
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
Modifies a row in:
  • a Table control,
  • a TreeView Table control.
Versions 16 and later
Linux This function is now available for the WINDEV applications in Linux.
New in version 16
Linux This function is now available for the WINDEV applications in Linux.
Linux This function is now available for the WINDEV applications in Linux.
Versions 18 and later
WEBDEV - Server codePHP This function can now be used to handle the TreeView Table controls in the WEBDEV and PHP sites.
New in version 18
WEBDEV - Server codePHP This function can now be used to handle the TreeView Table controls in the WEBDEV and PHP sites.
WEBDEV - Server codePHP This function can now be used to handle the TreeView Table controls in the WEBDEV and PHP sites.
Versions 19 and later
WEBDEV - Browser code This function is now available in Browser code for the Browser Table controls.
New in version 19
WEBDEV - Browser code This function is now available in Browser code for the Browser Table controls.
WEBDEV - Browser code This function is now available in Browser code for the Browser Table controls.
Versions 20 and later
Android This function is now available for the Android applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 20
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.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Example
// Modify the "Paul" and "Moore" elements
// in the 5th row of "TABLE_CustomerTable" control
TableModifyLine(TABLE_CustomerTable, 5, "Paul", "Moore")
Syntax
TableModifyLine(<Table Control> , <Subscript> [, <Element Column 1> [... [, <Element Column N>]]])
<Table Control>: Control name
Name of control to use. This control can correspond to:
  • a Table control.
  • a TreeView Table control.
If this parameter corresponds to an empty string (""), the control to which the current process belongs will be used.
<Subscript>: Integer
Subscript of row to modify. The subscript of first row is set to 1.
Subscript equal to -1The current row is modified. No effect if no row is selected.
Subscript greater than the number of control rowsA WLanguage error occurs.
<Element Column 1>: Optional character strings
First elements of modified row. The values of these elements replace the existing values. Each element corresponds to a column. Each type of modified element must be compatible with the type of relevant column.
TableModifyLine has no effect if none of these parameters is specified.
<Element Column N>: Optional character strings
Nth elements of modified row. The values of these elements replace the existing values. Each element corresponds to a column. Each type of modified element must be compatible with the type of relevant column.
TableModifyLine has no effect if none of these parameters is specified.
Remarks

Use conditions

TableModifyLine can be used on:
  • a browsing or memory control,
  • a single-selection or multi-selection control.
    WEBDEV - Server codePHP Reminder: The multi-selection controls are available in Ajax only. WEBDEV - Server codePHP Reminder: The multi-selection is not available for the Classic Table controls.
WEBDEV - Server codePHP This function is available for the Ajax Table controls, the Classic Table controls and the TreeView Table controls.
WEBDEV - Browser code This function is available for the browser Table controls only.
WEBDEV - Browser codeAndroidiPhone/iPad The TreeView Table control is not available.
AndroidiPhone/iPad The browsing Table controls are not available in edit. TableModifyLine cannot be used on a browsing Table control.

Characteristics of row elements

  • To modify the value of an element in a row, use the following syntax:
    TableName.ColumnName[RowSubscript] = NewValue
  • If an element corresponds to the calculation result, the numeric expression must be enclosed in brackets.
    For example:
    TableModifyLine(TABLE_CalcTable, (53+29),(83-21))
WINDEVWEBDEV - Server codeWindows MobileJavaPHP

Browsing Table or TreeView Table control: Modifications in the linked data file

  • If the cascading input is enabled, the data file linked to the control is automatically modified when the user goes to the next row.
  • If the cascading input is not enabled, the data file linked to the control is not modified. To write the content of modified row into the linked data file, TableSave must be used after TableModifyLine.
Notes:
  • The "Cascading input" option can be selected in the "Details" tab of control description.
  • Java The cascading input is not available for the browsing Table controls with direct access. This option is available for the memory Table controls and for the browsing Table controls loaded in memory.
  • Versions 19 and later
    WEBDEV - Server code The cascading input is available for the Ajax browsing Table controls only.
    New in version 19
    WEBDEV - Server code The cascading input is available for the Ajax browsing Table controls only.
    WEBDEV - Server code The cascading input is available for the Ajax browsing Table controls only.

Modifications performed in a browsing Table or TreeView Table control

To modify a row in a browsing Table or TreeView Table control, we advise you to:
WINDEVWindows MobileJava

TableModify function and ..Modified property

TableModifyLine has no influence on ..Modified. ..Modified is used to find out whether the current row was directly modified by the user (direct input in the control).
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.dll
WEBDEV - Browser code WDJS.DLL
Java wd230java.jar
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment