Skip to main content
Version: Next

VP Get table theme

History
ReleaseChanges
19 R8Added

VP Get table theme ( vpAreaName : Text ; tableName : Text ) : cs.ViewPro.TableTheme

ParameterTypeDescription
vpAreaNameText->4D View Pro area form object name
tableNameText->Table name
Resultcs.ViewPro.TableTheme<-Current table theme property values

Description

The VP Get table theme command returns the current theme propertie values of the tableName. A table theme can be set using the VP CREATE TABLE or VP SET TABLE THEME commands, or through the interface.

In vpAreaName, pass the name of the 4D View Pro area and in tableName, the name of the table.

The command returns an object of the cs.ViewPro.TableTheme class with properties and values that describe the current table theme.

Example

The command returns a full theme object even if a native SpreadJS theme name was used to define the theme.

var $param : cs.ViewPro.TableTheme
$param:=cs.ViewPro.TableTheme.new()
$param.theme:="dark10" //use of a native theme name

VP SET TABLE THEME("ViewProArea"; "ContextTable"; $param)
$vTheme:=VP Get table theme("ViewProArea"; "ContextTable")
$result:=Asserted(Value type($vTheme.theme)=Is object) //true

See also

VP CREATE TABLE
VP SET TABLE THEME