• • • • • • 6.0
ACP offers a wide variety of styles and options to control the look and functioning of the user interface. Many of these go beyond what is (currently) available in Desktop Analytica (DTA).
The easiest way to set most of these styles and options is to use the ACP Style Library. Select Add Library... from the File menu and select the ACP Style Library to add into your model. This library lets you interactively select most ACP styles and options for Navigation, Frames and nodes using menus and checkboxes and menus. If you make choose configurations while running the model in ACP, you can see their effects immediately in your model.
Using ACP Style Library you don't need to understand the details below. This page is for those geeks who want to do something esoteric AcpStyles , or use those few AcpStyles not (yet) accessible in the ACP Style Library.
You set general styles and options that apply to the whole model by adding flags to the AcpStyles attribute for the main model. You set styles specific to a particular module or node by adding flags to the AcpStyles attribute for that object.
The easiest way to view and edit the AcpStyles attribute in Desktop Analytica is to use the Attribute panel. Select AcpStyles from the list of Attributes at the top of that panel. By default, AcpStyles is not shown in the Object window, so you first need to set it to be shown either with the right click menu in the Object window, or in the Attributes dialog.
The AcpStyles and their flags are not case sensitive.
When you put multiple flags in a AcpStyles attribute, you can separate them by commas, spaces, or newlines. We recommend putting each flag on a separate line for clarity. ACP just looks for the particular text values and doesn't care about the separators.
- 1 ACP styles inheritance
- 2 Model level styles
- 3 Model level styles for diagram nodes.
- 4 Acp styles used both at the model level and at node level
- 5 Node Level Settings
- 6 See Also
ACP styles inheritance
This is the order of inheritance of Acpstyles. Styles at a higher level take precedence over the lower precedence styles. Note that this is only applicable for styles that are usable for different levels eg. styles useful for both variables and Frame nodes..
- Variable (includes Tall nodes): Acpstyles applied to an individual variable will take precedence over all other styles. A variable with a style of
show_title:nowill not show the title, even if the model level style is
show_title:yes, and if that node shows it's result in a frame node the variable style will override the frame node style.
- Frame : An Acpstyle set for a frame node will affect any variable shown in that frame that doesn't have its own settings. These will also override any styles at the model level.
- Model ACP style defaults: Acpstyles that you can enter into the Acptyles attribute of the top diagram of your model. These will override the ACP3 defaults, and will be inherited by frame nodes and variables in the model that don't have their own Acpstyle.
- ACP style defaults for ACP3: The default style ACP3 uses if you have no specific setting for that style. Eg for show_index_menus the default is fly-in and that is what will show if you don't enter a different show_index_menus: Acpstyle flag in the Acpstyle for the top diagram (model level) or for frame nodes or variables.
Model level styles
These styles apply to the entire model. You set them in the AcpStyles attribute for the Main Model. (They have no effect when set for a submodule.)
These Navigation_style options control how a user can view and access the module hierarchy:
Navigation_style: Outline-- Show an expandable tree of modules on the left of the ACP window, similar to the outline view in desktop Analytica (showing only modules not other objects). This is the default style when you upload a model with no ACP styles set or no Acp styles library embedded, or if you have not yet set the Navigation style in the Acp styles library. A navigation flag is not needed for this style, but if you want to explicitly set this style you can add
Navigation_style: Outlineto the top diagram's AcpStyles attribute.
Navigation_style: Top diagram only-- Show only the top diagram, with no Outline and no tabs. This lets you make a simple web application with a single UI page.
For the next two 'Tabbed application' styles, each module in the main model becomes a tab. The order of the tabs follows the sequence of the module nodes in the main diagram, from left to right then top to bottom.
Navigation_style: Top_tabs-- The main modules in the top model appear as a row of tabs across the top of the window. Click a tab to show the diagram for that module.
Navigation_style: Side_tabs-- The main modules in the top model appear as a column of tabs on the left of the window. Click a tab to show the diagram for that module.
We describe each in more detail below.
By default, when using the Outline Navigation style, ACP shows an expandable outline tree of modules on the left hand side of the window, similar to the Outline view in Analytica on the desktop. This makes it easy to navigate a model with an extensive hierarchy of modules.
Show_outline: yes-- The default, and unecessary for Outline Navigation style. It is generally redundant with other Navigation styles since the tabs or hierarchy show the same information, and the Outline takes up screen space. But you can add it to the top diagram's AcpStyles attribute if you want to show the Outline tree with other Navigation styles.
show_outline: no-- When using the Acp Style library this is set by default for Navigation styles other than Outline. For small models, and most web apps, you may want to suppress the Outline view even when using the Outline Navigation style. Do this by inserting this text into the top diagram's AcpStyles attribute (See image below). (If a model has only one diagram, i.e. with no modules, it never shows the outline tree.)
Top Diagram Only
Set by adding
navigation_style: top_diagram_only to the AcpStyles attribute of the top diagram. The Styles library will set the flag
As an alternative to the Outline view, you can set the
Navigation_style to use use a tabbed interface which is often more convenient and familiar for web applications. By default, the main model appears as the first tab. You can change this with the style show_as_tab:no described below.
There are two tabbed styles, Top_tabs, with a row of tabs across the top; and Side_tabs with a column of tabs down the side. Top_tabs works well if you have up to 5 to 8 modules in the main diagram (tabs), depending on the length of their titles and the width of the ACP window. If you have a lot of modules, or they have long titles, it may be better to use Side_tabs.
'Top tabs or side tabs.' The first tab displays the top level diagram, and the remaining tabs display the modules present on the top level diagram of the model. (The modules will not display on the diagram, so you need to tweak your diagram for playing in ACP so that it looks right without these present).
navigation_style: top_tabs-- This setting instructs ACP to use the 'Tabs across top' navigation style.
navigation_style: side_tabs-- This setting instructs ACP to use the 'Side tabs' navigation style. Side tabs work better than top tabs when there are more module nodes present.
show_tabs: no-- By default, with the Outline Navigation style. ACP shows navigation tabs for "Diagram", "Object", "Table", "Graph" along the top. Use this flag to hide those tabs. If you display the model inputs and outputs on the diagram -- using embedded tables and graphs on the diagram -- your users may not need those tabs. (You can also use
show_tabs: yesto explicitly show the tabs in Outline and Top diagram only Navigation styles.)
Module hierarchy bar
Using tabbed navigation, ACP shows the model hierarchy in a bar at the top of the diagram by default. The model hierarchy header shows you where you are in a large model by listing the titles of the ancestor modules in which the current diagram is nested. You can click any ancestor to click up levels in the hierarchy. The Hierarchy Bar takes up much less screen real estate than the Outline Tree. ACP doesn't show the hierarchy bar when you are viewing a top level module, or if the module title is already in the selected tab.
Note that this setting is not based on a AcpStyles attribute, but rather on the Show module hierarchy check box in the model Preferences in Analytica. If you want to set this preference manually, with the model opened in Analytica, on the Edit menu, select Preference..., and check (or uncheck) the Show module hierarchy checkbox.
If you are using the ACP styles library, the Styles library will set this to the default setting automatically once you select a Navigation style. But you have the option of changing it if, for instance you want to show the Outline and the Hierarchy bar.
Use top diagram size for all ACP windows
Use_top_diagram_size:Yes-- Sets the size of all diagrams based on the size of the diagram window of the top level when the model was last viewed in Desktop Analytica (in non-maximized mode).
Use_top_diagram_size:Nois the same as if the flag is not set, and is the default - the ACP diagram will use the entire browser window.
Show or hide the Dashboard Title and Model title
show_model_title: no-- Hide the title of the model, which appears by default in the top Teal bar.
show_diagram_title: yes-- Use to show the dashboard title at the top of the diagram. Or
show_diagram_title: noto suppress the diagram title, but not really necessary because ACP does not show the diagram title by default.
Add_scroll_bars: yesYou can add this flag to the top level diagram's AcpStyles attribute if you want to add scroll bars on a large diagram. Scroll bars no longer show by default when you use a custom size for your diagram since they take up diagram space. (They will show when you use the default entire browser window).
Exclude diagram(s) from tabs
When using tabbed navigation, you can select those modules (from the top model diagram) that you want to appear as a tab in ACP. The default is for all to appear as tabs. You should use the Show modules as tabs choice menu in the
ACP Navigation styles section of the ACP Style Library if you want to set this flag,, and if you also want to hide the modules corresponding to these tabs hidden, so that the model viewer cannot see them.
- Optionally, Enter the text
Show_as_tab: noin the AcpStyles attribute of the modules you don't wish to show as a tab. The modules themselves will not be hidden with this setting, only the tabs.
When using Tabbed Navigation, you can use these flags to control how the color of the tabs display on your model in ACP. To use, add one of them to the AcpStyles attribute of the top level diagram of your model. They have no effect if added to a module other than the top diagram.
Tab_color: DefaultThe default. Non-selected tabs are bluish white. The selected tab uses the background color for that diagram.
Tab_color: BackgroundAll tabs use their diagram background color, whether selected or not
Tab_color: NodeThe selected Tab uses its diagram background color; The other tabs use the color of their Module node (not their diagram background color). You can use this to change the color of the tabs by modifying their node color in an Analytica functions.
Model level styles for diagram nodes.
You can set some styles for your model - at the top model diagram level - which will effect how nodes on the diagram are displayed. All nodes in the model will be effected.
show_hover_highlight: yesUsually unnecessary because this is the default. ACP displays a hover highlight -- a contrasting light rectangle behind a node -- when you move the cursor over the node. (The hover highlight is different from the Help Balloon described below.)
glow_hover_highlight: yesSet this flag to show a "glowing" highlight around each node, instead of the outline when you move the cursor over a node.
glow_hover_highlight: noSwitches off this behavior, and is usually unnecessary since it is the default behavior in ACP.
show_hover_highlight: noYou can suppress the hover highlight completely (no outline or glow) by including this style in the top level model object. It does have any effect currently when applied to individual nodes.
Enhanced Diagram Graphics
You can control the appearance of nodes, with bevels, shadows, by setting these in the AcpStyles for the model. By default (for now) ACP displays nodes without the bevels and shadows:
node_drop_shadow: yesSetting this flag, displays a drop shadow behind each node, giving a kind of 3D effect:
bevel_node_border: yesSetting this flag, displays a bevel border for each node, giving another kind of 3-D effect:
These effects are off by default. You are welcome to try them out, by setting AcpStyles for the main model. Eventually, these effects may become the default. Then you'll be able to turn each one off using
Node_drop_shadow: no, Bevel_node_border: no, and
When you move the cursor over a node, ACP usually shows a "balloon" popup next to the node with the title, units and description of the node (if it has one) to help end users understand what its for, or what to enter for a user input. If the node has no description, the balloon help will not appear.
show_id_in_balloon: yesUse this flag to show each node's identifier below its title in the balloon -- unless the identifier and title are identical (except for spaces which are replaced by underscores).
Acp styles used both at the model level and at node level
These styles affect how result graphs and tables are displayed in ACP, including in Tall nodes and ˞Frame nodes. They provide options not (yet) available in Desktop Analytica. ACP has default settings for these. You can override these settings for the entire model. You can also set them for ˞Frame nodes, which will apply to all results shown in the Frame and override the ACP and model level settings. And you can set these styles for individual variables, which will override any settings in the Model or Frame. As always, it's easiest to set the using the ACP Style library.
None of these styles apply to tab result views using the default Navigation_style: Outline.
Show or hide the Description
Show_description: nn' Where
nnis a number between 0 and 100, where it uses up to nn% of the vertical space available to show the description. If that isn't enough to show the entire description, it shows a vertical scroll bar. Set
nn = 0, if you don't want to show the description at all. Default if not mentioned, is one third, i.e.
Show_description: 33. This style can be used at the model level, for frame nodes or for individual nodes, but controls whether or not the Description shows in tall nodes or Frame nodes.
Show or hide the title
Show_title: yesto show or
Show_title: noto stop showing the Title and units of a selected variable. This style can be used at the model level, for frame nodes or for individual nodes, but controls whether or not the Title and units show in Frame nodes or tall nodes.
Show or hide the Graph-Table icon
Show_graph_table_icon:noHides the icon in the top right of a Result that lets you toggle between Graph and Table view. This applies to Frame nodes and tall nodes. This style can be used for the entire model, for frame nodes or for individual nodes . You set them in the AcpStyles attribute. Conversely, you can set *
Show_graph_table_icon:yes. This is the default so not usually necessary at the model level, but can be used in a frame node or variable to override the model default or override a frame node setting.
By default, in ACP, as in desktop Analytica, the Uncertainty views menu appears above each result graph or table to let you select Mid to display its deterministic value, or Mean, Probability distribution, and other ways to display a probabilistic value.
You can override this default behavior with this ACP style for the entire model, Frame nodes, or for individual variables. The Uncertainty view menu is always present in tab result views.
Show_uncertainty_view: NoNever show the uncertainty menu in frame nodes or tall result nodes. Suitable for models with no probabilistic values, or if you want to fix a particular probabilistic view for each frame node or variable so that ACP users can't change it.
Show_uncertainty_view: YesAlways show the uncertainty menu even for variables that are not probabilistic, as in Desktop Analytica. This is the default and not normally necessary at the model level, but can be used to customize which frame nodes or variables to show the uncertainty view menu when the model level style is set to
Show_index_menus: Fly-inBy default (the same as if there is no show_index_menu: setting) the index menus are not shown in [nodes or tall nodes] (but slicers are), since often the modeler has already chosen the pivot they want to use. And because these menus take up valuable screen space. But if you hover over the frame node (or tall node) there is a fly-in pivoter control. If you click this it toggles - on or off - the visibility of the pivoters; allowing you to pivot the result table or graph and then close the pivoters to give you more space.
Show_index_menus: YesIf you do want to allow users to be able to pivot or change the slice of the table or graph, without using the fly-in, then use use show_index_menus:yes. Always present in tab result views.
Show_index_menus: NoIf show_index_menus:no is set then the indexes and pivoters will not show and there is no fly-in, but the slicers will still be present.
Show_index_menus: Not_even_slicersIf you don't want to show any pivoters or slicers, you can set show_index_menus:Not_even_slicers.
In the ACP Style Library, Autocalc looks like a style you can set for a model, module or variable. It controls whether ACP evaluates each variable and shows its results automatically when you view a Diagram or tab showing the -- instead of the default Analytica behavior where the end user has to click on a Calc button to compute a result. With Autocalc on, a result in view also recomputes automatically when you change an input that influences it.
Autocalc is not actually an ACPStyle in ACP3. (It was in ACP1.) Autocalc is implemented using the Desktop Analytica functionality for Proactive_Evaluation.
Node Level Settings
These style flags and options apply to individual nodes (variables), rather than the model as a whole. So, you set these flags on the AcpStyles for selected objects (nodes).
Other node level flags
Prevent nodes from showing on the diagram
You can prevent nodes or modules from showing on the diagram of your model, by adding this flag to the AcpStyles attribute of the object you wish to hide. Once the model is shown in ACP the objects aren't visible.