Revision as of 04:43, 15 October 2021 by Dpaine (Talk | contribs)

<<Back to Analytica Cloud Player


4.6  •  5.0  •  5.1  •  5.2  •  5.3  •  5.4  •  6.0  •  6.1

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 CloudPlatformStyles , or use those few CloudPlatformStyles 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 CloudPlatformStyles attribute for the main model. You set styles specific to a particular module or node by adding flags to the CloudPlatformStyles attribute for that object.

The easiest way to view and edit the CloudPlatformStyles attribute in Desktop Analytica is to use the Attribute panel. Select CloudPlatformStyles from the list of Attributes at the top of that panel. By default, CloudPlatformStyles is not shown in the Object window, so you first need to set it to be shown in the Attributes dialog.

The CloudPlatformStyles and their flags are not case sensitive.

When you put multiple flags in a CloudPlatformStyles 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.

Model level styles

These styles apply to the entire model. You set them in the CloudPlatformStyles attribute for the Main Model. (They have no effect when set for a submodule.)

Navigation style

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: Outline to the top diagram's CloudPlatformStyles 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.

Outline Tree

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 CloudPlatformStyles attribute if you want to show the Outline tree with other Navigation styles.

Outline tree 6.0 01.png

Market model with
Outline Tree
  • 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 CloudPlatformStyles attribute (See image below). (If a model has only one diagram, i.e. with no modules, it never shows the outline tree.)

Outline tree 6.0 02.png

Market model with
show_outline: no

Top Diagram Only

Set by adding navigation_style: top_diagram_only to the Cloudplayerstyle attribute of the top diagram. The Styles library will set the flag show_outline:no .

Tabbed Module Navigation

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.

Top tabs 6.0 01.png

  • 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.

Side tabs 6.0 01.png

Toolbar Tabs

  • 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: yes to explicitly show the tabs in Outline and Top diagram only Navigation styles.)

Show tabs no 6.0 0.1.png

Market model with
show_tabs: no

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 CloudPlayerstyle 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:No is 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: no to suppress the diagram title, but not really necessary because ACP does not show the diagram title by default.

Scroll Bars

  • Add_scroll_bars: yes
You can add this flag to the top level diagram's CloudPlatformStyles attribute if you want to add scroll bars on a large diagram. Scroll bars no longer show by default, since they take up screen space.

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: no in the CloudPlatformStyles 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.

Tab color

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 CloudPlayerStyle 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: Default The default. Non-selected tabs are bluish white. The selected tab uses the background color for that diagram.
  • Tab_color: Background All tabs use their diagram background color, whether selected or not
  • Tab_color: Node The 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: yes Usually unnecessary because this is the default.
By 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.)
Acp hover hl.png
  • glow_hover_highlight: yes
Set 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: no Switches off this behavior, and is usually unnecessary since it is the default behavior in ACP.
  • show_hover_highlight: no You 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 CloudPlatformStyles for the model. By default (for now) ACP displays nodes without the bevels and shadows:

Nodes no shadow or bevel.png
  • node_drop_shadow: yes
Setting this flag, displays a drop shadow behind each node, giving a kind of 3D effect:
Nodes drop shadow.png
  • bevel_node_border: yes
Setting this flag, displays a bevel border for each node, giving another kind of 3-D effect:
Nodes beveled border.png

These effects are off by default. You are welcome to try them out, by setting CloudPlatformStyles 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, andGlow_hover_highlight: no.-->

Balloon Help

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: yes
Use 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 can be set at the model level - which effects every node in the model. They can also be set at the node level and some of them can be set for ˞Frame nodes. When set for a Frame node, this style overrides the model level style and is used for all variables that display in the frame node. Unless there is an individual node style - which overrides both Model level and Frame node styles.

Show or hide the Description

  • Show_description: nn' Where nn is a number between 0 and 100, where it uses up to nn% of the vertical space available to show the description, showing vertical scroller if that isn't enough to show the entire description. Set nn = 0, if you don't want to show the description at all (and no scroller). 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. The description is always present in tab result views.

Show or hide the title

  • Show_title: Set Show_title: yes to show or Show_title: no to 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. The title is always present in tab result views.

Show or hide the Graph-Table icon

  • Show_graph_table_icon:no

Hides 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 CloudPlatformStyles 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. This icon is irrelevant and does not display in tab result views.

Show or hide the Uncertainty view menu

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: No Never 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: Yes Always 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_uncertainty_view: No

Show or hide the Index menus and Pivoters/slicers

  • Show_index_menus: Fly-in By 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: Yes If 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: No If 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_slicers If 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 CloudPlatformStyles for selected objects (nodes).

Input nodes

Other node level flags

Prevent nodes from showing on the diagram

  • Show_Object: no
You can prevent nodes or modules from showing on the diagram of your model, by adding this flag to the CloudPlatformStyles attribute of the object you wish to hide.
  • Once played in ACP the objects aren't visible, and if the outline is displayed the module will not be shown in the Outline either.

See Also



8 months ago
Score 0

Autocalc was a combination of autorecalcresults and calc_on_open. They were in the diagram style section of this page, but I just commented them out since they do not work (yet) in ACP3/suan and I don't think we have any intention of including them, since proactively evaluate can I think replace the functionality. These are still mentioned in the style library wiki page, but I intend to remove it.

I'll put a link to the proactivelyevaluate page though, and I will add it to new DTA features in ACP with a link to its wiki page.

You are not allowed to post comments.