Please enable JavaScript to view this site.

Process Designer

Navigation: Javascript API > User dialog functions > Subtable view functions > Properties > Change properties

jr_set_table_background_color(string subtableViewName, int rowId, string columnName, string color)

Scroll Prev Top Next More

With this function the background color of the subtable view can be set. Here you can set the background color for individual cells or whole columns.

Parameter

Type

Description

subtableViewName

string

Subtable view name

rowId

int

Cell ID (beginning with 0, "*" for all cells)

columnName

string

Column name

color

string

HTML color code (e.g. #AAFFAA)

Examples for subtable views:

// for setting the color via the indicated code for the "number" column of the second row

jr_set_table_background_color('name_subtable', 1, 'number', '#aaaaaa');

// for setting the color via the indicated code for the "name" column of all rows

jr_set_table_background_color('name_subtable', '*', 'name', '#aaaaaa');