Home > Sitecore OMS reports > Creating and Re-using Styles

Creating and Re-using Styles

To illustrate how to create styles in an OMS report we will change the heading in the Latest Human Sessions Report in Sitecore Analytics.

Latest Human Sessions example

Important
Open the Latest Sessions.mrt file in the report designer. Remember that Latest Human Sessions is the base report for all the following reports: Latest Human Sessions, Latest Company Sessions, Latest ISP Sessions and Unidentified Sessions

If you change the style in any of these reports you will change the styles for all these reports. Therefore it is good practice to first make a copy of the report file and save it to your own folder. This prevents you from over writing other reports.

How to Create a New Style

In the Style Designer, there are three different styles to choose from:

  • Component Style
  • Chart Style
  • Cross Tab Style

To create a new style to format the report header title:

1. Click Add Style and then select Component. You can use component styles to format reports that contain mainly text.

types of stryles

2. In the Name field, enter MyStyle1 or a name of your choice.

my style 1

3. Expand Text Brush and select the color Dark Grey.

4. Expand Brush and select the color Light Grey. This changes the background color behind the heading.

5. Expand Font, select Font Size and enter the value 21.

6. In the Style Designer, click Close.

7. In your chosen report, select the report header.

8. In the Report Designer ribbon Style panel, select the style you just created.

applying a style

9. In Sitecore Analytics, refresh the Latest Human Sessions report and view the new in the report header.

component style preview

You have now created and applied a new component style to a report.

Saving and Re-using Styles

Save Stimulsoft styles as a .sts file.

How to Save Styles

1. Open the Style Designer.

2. Click Save Style

Save style

3. In the Save Style dialog box, you can see any existing style files.

save styles dialog box

4. Give your style a name such as MyStyles and click Save.

my styles

You can see MyStyles added to the list of available styles.

How to Import Styles into another Report

1. Open a report, such as Metrics.

2. Open the Style Designer.

3. Click Open Style.

open style

4. Select the style you want to open from the Open Style dialog box, for example MyStyles.

open style dialog

Note
If the styles contained in the .sts file have the same names as in the existing report, they will automatically overwrite all the styles contained in that report. If the component style names are different, you must apply each style manually to the elements in the report that you want to change.

Next post: Changing Report Styles using the Properties Panel

Advertisement
Categories: Sitecore OMS reports

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.