ProApp Designer - Release 14.10 (Package 27)

DynamicTable Control

setTableConfiguration

Sets the configuration for a DynamicTable control by its control name. The configuration object defines the table definition, including its columns, data types, widths, labels (with localization support), and other display settings.

Each column object should specify a unique name, a localized label object, control definition (including data type and localized label), width (in pixels), visibility, and optionally a data source if the column represents a reference or item field.

The columnWidthByPercentage property determines whether widths are treated as fixed pixel values (false) or percentage-based (true).

const columns = [
{
name: ‘supplier_name’,
label: ‘Supplier Name’,
control: {
name: ‘supplier_name’,
label: ‘Supplier Name’,,
dataType: ‘String’,
},
width: 500,
hide: false,
},
{
name: ‘team_id’,
label: ‘Team’,
control: {
name: ‘team_id’,
label: ‘Team’,
dataType: ‘Item’,
dataSource: ‘Team’,
}
width: 400,
hide: false,
}];
configurationObject = {
columns: columns,
columnWidthByPercentage: false,
}

appStudioWizard.setTableConfiguration(tableControlName, configurationObject);