tblITableEditor GetCellsParticipatingInRules

Returns a string containing a list of cell names that have been assigned with a rule.

Syntax

tblITableEditor_handle GetCellsParticipatingInRules ruleid

Application

HyperWorks Tcl Query

Description

Gets the list of cell names upon which the rule ID is acting, returning a list of cell names. For example, A1 A2.

Example

set t [hw::GetT]
set activetableHandle [hwi GetActiveClientHandle ch$t]
set ruleid [$activetableHandle AddRule]
set ruleHandle [$activetableHandle GetRuleHandle rh$ruleid $ruleid]
$ruleHandle SetCellList "A1 A2 B1 B2"
$ruleHandle SetBackgroundColor 3
$ruleHandle SetTextColor 0
$ruleHandle SetValue 10
$ruleHandle SetOperator ">"
$ruleHandle ReleaseHandle
set celllist [$activetableHandle GetCellsParticipatingInRules $ruleid]
puts "Rule id: $ruleid acts on cells: $celllist"
$activetableHandle ReleaseHandle

Errors

None.