Difference between revisions of "SetWeight"

From Catglobe Wiki
Jump to: navigation, search
(jrfconvert import)
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:HelpBooks]]
+
[[Category:Data_Cache_Functions]]

+
{{HelpFiles}}
 +
__NOTOC__
  
=====setWeight=====
+
==== setWeight ====
  
Sets the weight used in calculating the diagram's value.
+
Sets the weight column name used for data cache.  
  
'''Syntax'''
+
'''Syntax'''  
  
setWeight(''weightColumnName'')
+
setWeight(''columnName'')  
  
'''Arguments'''
+
'''Arguments'''  
  
''weightColumnName:'' Is a string expression. It is name of a numeric DCS column, that could be used as a weight in calculating
+
''columnName'': Is a string expression.  
  
'''Return type'''
+
'''Return type'''  
  
empty
+
empty  
  
'''Examples'''
+
'''Examples'''  
  
''setWeight(''"DanishPopulationWeight"'');''
+
''createCrossDiagram({"Region"},{"Q1"});''  
  
'''Availability'''
+
''[[Image:NotSetWeight.jpg]]''
  
Version 5.5
+
''setWeight("W1"); ''
__NOTOC__
+
 
<!-- imported from file: 5203.htm-->
+
''print(getWeight()); //Result: W1''
 +
 
 +
''createCrossDiagram({"Region"},{"Q1"});''
 +
 
 +
''[[Image:SetWeight.jpg]]''

Latest revision as of 03:53, 21 October 2015




setWeight

Sets the weight column name used for data cache.

Syntax

setWeight(columnName)

Arguments

columnName: Is a string expression.

Return type

empty

Examples

createCrossDiagram({"Region"},{"Q1"});

NotSetWeight.jpg

setWeight("W1");

print(getWeight()); //Result: W1

createCrossDiagram({"Region"},{"Q1"});

SetWeight.jpg