PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Use conditions
  • Characteristics of row elements
  • Table or TreeView Table control based on a data file: Modifications in the linked data file
  • Changes in a Table or TreeView Table control based on a data file
  • <Table>.ModifyLine function and Modified property
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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 WINDEV applications in Linux.
New in version 16
Linux This function is now available for WINDEV applications in Linux.
Linux This function is now available for WINDEV applications in Linux.
Versions 18 and later
WEBDEV - Server codePHP This function can now be used to handle TreeView Table controls in WEBDEV and PHP sites.
New in version 18
WEBDEV - Server codePHP This function can now be used to handle TreeView Table controls in WEBDEV and PHP sites.
WEBDEV - Server codePHP This function can now be used to handle TreeView Table controls in WEBDEV and PHP sites.
Versions 19 and later
WEBDEV - Browser code This function is now available in Browser code for Table controls in browser mode.
New in version 19
WEBDEV - Browser code This function is now available in Browser code for Table controls in browser mode.
WEBDEV - Browser code This function is now available in Browser code for Table controls in browser mode.
Versions 20 and later
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 20
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.
iPhone/iPad This function is now available for iPhone/iPad applications.
Example
// Modify the "Paul" and "Moore" elements
// in the 5th row of "TABLE_CustomerTable" control
TABLE_CustomerTable.ModifytLine(5, "Vince", "Moore")
Syntax
<Table control>.ModifyRow(<Subscript> [, <Element column 1> [... [, <Element column N>]]])
<Table control>: Control name
Name of the control to be used. This control can correspond to:
  • a Table control.
  • a TreeView Table control.
<Subscript>: Integer
Index of the row to be modified. The index of the first row is set to 1.
Index equal to -1The current row is modified. No effect if no row is selected.
Index greater than the number of control rowsA WLanguage error occurs.
<Element column 1>: Optional character string
First element of the modified row. The value of this element replaces the existing value. Each element corresponds to a column. Each type of modified element must be compatible with the type of relevant column.
If none of the <Element column X> parameters are specified, <Table>.ModifyLine has no effect.
<Element column N>: Optional character string
Nth element of the modified row. The value of this element replaces the existing value. Each element corresponds to a column. Each type of modified element must be compatible with the type of relevant column.
If none of the <Element column X> parameters are specified, <Table>.ModifyLine has no effect.
Remarks

Use conditions

<Table>.ModifyLine can be used on:
  • a Table or TreeView Table control based on a data file.
  • a Table or TreeView Table control populated programmatically.
  • a single-selection or multi-selection control.
    WEBDEV - Server codePHP Reminder: Multi-selection is not available for Table controls in classic mode.
WEBDEV - Server codePHP This function is available for Table controls in Ajax mode, Table controls in classic mode and TreeView Table controls.
WEBDEV - Browser code This function is available for Table controls in browser mode only.
WEBDEV - Browser codeAndroidiPhone/iPad The TreeView Table control is not available.
WEBDEV - Browser code The TreeView Table control is not available.
AndroidiPhone/iPad Table controls based on a data file are not available in edit mode. <Table>.ModifyLine cannot be used on Table controls based on a data file.

Characteristics of row elements

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

Table or TreeView Table control based on a data file: 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 the modified row to the linked data file, <Table>.Save must be used after <Table>.ModifyLine.
Remarks:
  • The "Cascading input" option can be selected in the "Details" tab of the control description.
  • Java The cascading input is not available for Table controls with direct access to the data source. This option is only available on Table controls populated programmatically or with in-memory data source.
  • Versions 19 and later
    WEBDEV - Server code The cascading input is available for Ajax Table controls based on a data file only.
    New in version 19
    WEBDEV - Server code The cascading input is available for Ajax Table controls based on a data file only.
    WEBDEV - Server code The cascading input is available for Ajax Table controls based on a data file only.

Changes in a Table or TreeView Table control based on a data file

To modify a row in a Table or TreeView Table control based on a data file, we advise you to:
WINDEVJava

<Table>.ModifyLine function and Modified property

<Table>.ModifyLine has no influence on the Modified property. The Modified property is used to know if the current row has been directly modified by the user (direct input in the control).
Component: wd270obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment