AcpStyles
Awp_attrib
By adding a user defined attribute called 'Awp_attrib' to your Analytica model file, you can enter a number of configuration flags to tell AWP to do certain things differently when playing this model.
Model level settings
So one can add the text values outlined below to the Awp_attrib of the object window of the Model. I.e. The object window for the top level diagram. So far, all the Awp_attrib flags should be applied to the top level Model (otherwise it will be ignored and have no effect).
- no_outline - The outline tree of a model's modules is usually presented on the left hand side of AWP when the model being played has submodules. Some modelers have requested a flag for supressing the outline tree. So you can now add the 'no_outline' to the Awp_attrib so ensure the outline tree is not displayed when the model is viewed in AWP.
- calc_on_open - For some models, e.g. dashboard views, you may want to simply have all the output nodes display there results when the diagram is loaded. Thus, the uses doesn't have to click on the output nodes to view the nodes results (at least if they a single value or an embedded table on the diagram).
- restrict_navigation - For some models, you might just want to make not make all the diagrams available for playing by the end user. For example, you might want to limit the navigation to one or more diagrams for entering inputs and viewing results. By setting this flag, you can remove the various builtin GUI elements used to navigate the model. This flag will remove:
- The 'outline tree' for navigating modules
- The 'Go into Parent' button which usually displays the diagram that contains the module currently being viewed.
- The navigation tabs i.e. Diagam, object , edit table, result table, and graph tabs. So instead of having these tabs, tables and graphs need to be embedded in the diagram.
- Right click popup menu for displaying the object view.
- no_save - If this flag is set, the 'SAVE MODEL' option usually located on the upper right is removed.
- top_diagram_only - This flag will have the model with only the top diagram displayed. Any actions that would normally bring up a different diagram instead just reload the top diagram.
- show_parent_diagram_button and hide_parent_diagram_button - Flag to control the display of the 'Go into Parent' button. Currently the button is shown by default.
- hide_tabs - Flag which tells AWP not to display the naviation tabs for "Diagram", "Object", "Table", "Chart" at the top. If you display the model inputs and outputs on the diagram e.g. using embedded tables and graphs on the diagram, then you may not need to have the tabs.
- show_diagram_title - You can control whether or not to display the diagram's title at the top of the diagram. Use show_diagram_title:no to suppress the diagram title. You can also explicitly tell AWP to show the diagram title by using show_diagram_title:yes, but this is not really necessary because the currently AWP shows the diagram title by default.
Hover Balloon
In Awp, when you move the cursor over a node, it shows a "balloon" containing the description of the node (if it has one). You can modify this feature to show also its identifier and/or definition.
- show_id_in_balloon - Shows the node's identifier below its title in the balloon -- unless the identifier and title are identical (except for spaces -> underscores), in which case it does not show the identifier.
- show_definition_in_balloon - Shows the node's definition in the balloon below the description.
The show_id_in_ballon and show_definition_in_balloon flags should be placed in the awp_attrib of the model. There are two other flags which can be specified in the awp_attrib of a particular node to control the hover balloon behavior for that node. They are show_hover_balloon and show_hover_balloon_title.
- show_hover_balloon - For any particular node, one might desire that the hover balloon not appear when someone hovers the mouse of that node. In that case, just include the flag show_hover_balloon:no.
- show_hover_balloon_title - Again, for any particular node, you can cause the hover balloon not to display the node's title. Just include the text show_hover_balloon_title:no in the awp_attrib.
Enhanced Diagram Graphics
Because AWP runs in Adobe Flash Player, it is fairly easy to add some graphical effects.
- use_bevel_border - Adds a gradient bevel to the edges of nodes giving them a 3-d effect. There's also a flag to explicitly tell AWP not to use the beveled border, dont_use_bevel_border. This is the default behavior in AWP, so if neither of these flags are present, then AWP will not use the beveled border.
- use_drop_shadow - Adds a shadow effect below the node, again giving the nodes a 3-d effect. There's also a flag to explicitly tell AWP not to use the drop shadow, dont_use_bevel_border. This is the default behavior in AWP, so if neither of these flags are present, then AWP will not add the drop shadow effect.
- use_glow_hover_highlight - When a user hovers the mouse over a node, this effect adds a "glowing" highlight effect to the node. There's also a flag to explicitly tell AWP not to use the glow effect, dont_use_glow_hover_highlight. Not using this effect is the default behavior in AWP, so if neither of these flags are present, then AWP will not add the glow hover highlight effect.
So to summarize, these effect features are somewhat new and need to be tested and refined, and thus they will not be used by default in AWP. If you want to turn them on and try them out, then you'll need to add the AWP attribute to use them. Eventually, using these effects will probably become default, and when that happens you can turn them off by adding the attribute to not use them.
When you have multiple flags in a particular awp_attribe, you can separate them with commas or spaces, or whatever you want to (including no delimiter). AWP just looks for the particular text values and delimiters don't really matter.
Node Level Settings
Input nodes
- textalways - For text input nodes, if the data is going to be textual, then you can use this flag to tell AWP to treat all input as text. Thus the user playing the model doesn't have to surround data she enters in quotes.
- tabindex - For a form, i.e. series of input controls. You can set the tab order by adding this flag. For example the first form node would have tabindex:1 set in the awp_attrib. The second node would have tabindex:2, and so on.
Embedded Tables and Graphs
In AWP it is possible to display graphs and tables directly on the diagram. The Awp_attrib can be used to specify the region on the diagram to display these tables or graphs. CLICK HERE FOR MORE...
Enable comment auto-refresher
Dpaine