Difference between revisions of "ShowAskAttribute"

(documented)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[category:Typescript Commands]]
 
[[category:Typescript Commands]]
 +
[[category:Inspection Commands]]
  
= Command ShowAskAttribute <objectClass> =
+
== Command ShowAskAttribute ''objectClass''==
  
(new to 4.0)
+
The [[AskAttribute]] command controls which attributes display on the object window or attribute panel. These can be changed by selecting ''Object &rarr; Attribute... from the menus.  These settings are stored with an Analytica model. 
  
The [[AskAttribute]] command controls which attributes display on the object window or attribute panelThese can be changed by selecting Object->Attribute... from the menus.  These settings are stored with an Analytica model.  The ShowAskAttribute provides access to the current settings.
+
The [[ShowAskAttribute]] provides access to the current settings. The command takes a single argument, which is the class of an object (variable, chance, decision, index, function, constant, module, library, etc)It returns a list of the attributes that should be shown for that object.
  
The command takes a single argument, which is the class of an object (variable, chance, decision, index, function, constant, module, library, etc).  It returns a list of the attributes that should be shown for that object.
+
== Example ==
 
 
= Example =
 
  
 
The following is a view of the typescript window:
 
The following is a view of the typescript window:
Untitled> ShowAskAttribute Variable
+
:<code>Untitled> ShowAskAttribute Variable</code>
[Class,Identifier,Title,Units,Description,Definition,Inputs,Outputs,Domain]
+
:<code>[Class, Identifier, Title, Units, Description, Definition, Inputs, Outputs, Domain]</code>
 
 
= Known bugs =
 
  
* EW4982: May cause a fatal stack underflow when provided with a bad (or too many) arguments.
+
==See Also==
 +
* [[AskAttribute]]
 +
* [[Inspection Commands]]
 +
* [[Typescript]]

Latest revision as of 21:33, 21 January 2016


Command ShowAskAttribute objectClass

The AskAttribute command controls which attributes display on the object window or attribute panel. These can be changed by selecting Object → Attribute... from the menus. These settings are stored with an Analytica model.

The ShowAskAttribute provides access to the current settings. The command takes a single argument, which is the class of an object (variable, chance, decision, index, function, constant, module, library, etc). It returns a list of the attributes that should be shown for that object.

Example

The following is a view of the typescript window:

Untitled> ShowAskAttribute Variable
[Class, Identifier, Title, Units, Description, Definition, Inputs, Outputs, Domain]

See Also

Comments


You are not allowed to post comments.