Dashboard objects, Shapes collection
Represents an individual traffic light gauge in the Dashboard section.
This example shows how to display the source section name of the traffic light object in a text box.:
/Clear all TextBoxes except TextBox5 TextBox1.Text = "" TextBox2.Text = "" TextBox3.Text = "" TextBox4.Text = ActiveSection.Name var ActionName = "SourceSectionName" TextBox1.Text ="Start " + ActionName if (TextBox5.Text == "") { TextBox1.Text ="Step 1" try { var TargetWidget = eval('ActiveSection.Shapes["' + LBTargetWidget.SelectedList.Item(1) + '"]') TextBox3.Text = "SourceSectionName is: " + TargetWidget.SourceSectionName } catch(e) { TextBox2.Text = "Caught: " + e.toString() } } else { TextBox1.Text ="Step 2" try { var TargetWidget = eval('ActiveSection.Shapes["' + LBTargetWidget.SelectedList.Item(1) + '"]') TargetWidget.SourceSectionName = eval(TextBox5.Text) } catch(e) { TextBox2.Text = "Caught: " + e.toString() } TextBox1.Text ="Step 3" try { var TargetWidget = eval('ActiveSection.Shapes["' + LBTargetWidget.SelectedList.Item(1) + '"]') TextBox3.Text = "SourceSectionName is: " + TargetWidget.SourceSectionName } catch(e) { TextBox2.Text = "Caught: " + e.toString()
None
Read-write: AccessibilityText (Property), AppendObjectText (Property), Comments as String, Locked as Boolean, SourceSectionName as String, Subtype as String, Visible as Boolean
Read only: Type as BqShapeType
UserValues collection, Placement object, Subcomponents object, Themes collection, Data object