Difference between revisions of "ACP Style Library"

Line 9: Line 9:
  
 
===To use the ACP Style library===
 
===To use the ACP Style library===
The recommended way to use the ACP Style library is to add it from the Options menu in the ACP GUI.
+
The easiest way to use the ACP Style library is from inside ACP. Start the model in ACP and from the Hamburger menu on the top right, select '''Load ACP Style lib'''
*Prepare your model in Desktop Analytica,  adding any Frame nodes or Tall nodes you want [[Embed_table_or_graph_with_ACP|embedded]]  on your diagrams.  
+
*Prepare your model in Desktop Analytica,  adding any Frame nodes or Tall nodes you want [[Embed_table_or_graph_with_ACP|embedded]]  on your diagrams.
  
 
=== Upload your model into ACP ===
 
=== Upload your model into ACP ===

Revision as of 02:11, 19 April 2022



Release:

4.6  •  5.0  •  5.1  •  5.2  •  5.3  •  5.4  •  6.0  •  6.1  •  6.2  •  6.3  •  6.4  •  6.5


The Analytica Cloud Platform (ACP) offers a variety of user-interface styles and features useful for web applications, and not available in desktop Analytica. These include navigation styles with tabs across the top or down the left side, node styles, and Frame nodes to show tables and graphs embedded in a Diagram. Using the ACP Style Library makes it much easier to select these styles than setting special flags and codes in the AcpStyles attributes of the model.


To use the ACP Style library

The easiest way to use the ACP Style library is from inside ACP. Start the model in ACP and from the Hamburger menu on the top right, select Load ACP Style lib

  • Prepare your model in Desktop Analytica, adding any Frame nodes or Tall nodes you want embedded on your diagrams.

Upload your model into ACP

If you have an ACP account, you can upload your model into ACP from inside Analytica on the desktop:

Otherwise, you can upload your model from inside ACP"

  1. Start up ACP from https://acp.analytica.com/.
  2. Sign in (or [sign up if you don't yet have an ACP account). more...
  3. When you see the Models tab, click the Upload button.
  4. Follow the file browser prompts to upload your model into ACP
  5. Click the name of your uploaded model to start it up in ACP.Once you have uploaded your model to ACP, launch the model by clicking on it's link in the model listing.
  • You can add the Acp Style library by clicking on the Options menu on the top teal bar (3 horizontal lines) and selecting Acp Style library.

ACP Styles hamburger01.png

What the ACP Style library does on model load

In ACP3, the styles library has had some major changes. This explains one of the new features.

  • The Acp Style library will set some Acp Styles automatically in your model (after prompting you to accept or decline) . This is to simplify the task of preparing the model.
  • If you add the ACP Style library to a model which has no model level AcpStyle attribute flags set, you will be asked to choose default settings (outline style) or Recommended settings (Top tabs). The library will apply the styles to the model to display using the settings you accept.

ACP Style library question01.png

  • In contrast, when adding the ACP Style library to a model which already contains one or more model level AcpStyles, you will be prompted to either change to the recommended defaults, or to keep the AcpStyles already present in the model.

ACP Style library question02.png

    • If you choose to keep the AcpStyles already present in the model, you will be asked to confirm...

ACP Style library question03.png
then the Acp style library will change to reflect these styles - eg if your model contains the AcpStyle show_description:10, the relevant choice menu in the Acp style library would be set to reflect this.


How to install the ACP Style library in Desktop Analytica

If you prefer you can add the Acp style library to Desktop Analytica before uploading to ACP. The ACP Style library is included as a standard Analytica library, but we recommend using the most recent ACP Style library version which you can download here: ACP style library.ana, since there have been major enhancements recently.


After downloading the library into a folder, you can read it into your model:

  1. Make sure you are in edit mode.
  2. Click File menu > Add Library...
  3. Select ACP Styles.ana' from the folder into which you saved the file and click Open

The 'ACP Styles library' will appear in the diagram:


{{Release|6.0||:Reading ACP Style library into a model in desktop Analytica.png


Once you've imported the ACP Styles library into your model, you can use it to set ACP styles in desktop Analytica. But, it's better to do in in ACP so you can immediately see the effects of each setting.

Upload your model into ACP

If you have imported the ACP Styles library into your model in Desktop Analytica, you can use it to set ACP styles in desktop Analytica. But, it's better to do in in ACP so you can immediately see the effects of each setting.

If you have an ACP account, you can upload your model into ACP from inside Analytica on the desktop:

Otherwise, you can upload your model from inside ACP"

  1. Start up ACP from https://acp.analytica.com/.
  2. Sign in (or [sign up if you don't yet have an ACP account). more...
  3. When you see the Models tab, click the Upload button.
  4. Follow the file browser prompts to upload your model into ACP
  5. Click the name of your uploaded model to start it up in ACP.

How to set ACP styles

The easiest way to see what each option does is just to select from the menu or (uncheck) the checkbox. ACP will immediately show the effect of the changed style. The Default styles for tables and graphs show in the "Preview result" just to the right. A few, like the "Fly-in" option for Index menus show the Pivot icon only when you move your cursor over the "Preview result".

ACP Style library w Preview result styles.png

You can also move your cursor over each control to see its description in a balloon, in the usual way.

Make the Acp Style library ready for Import into another model

More details coming soon....


See Also

Comments


You are not allowed to post comments.