Skip to content

Adding Styles

To manually inputed cells easier to see, we can create new styles and apply them to our workview.

To do this go back to our model page and in the top right click on Actions → Manage Model

Model Page

In the Manage Model screen we will click on New Style

Manage Model New Styles

We will be creating two new styles, manual-input and data-input. manual-input will be for cells that have a number manully input into it and data-input will be for cells where you can input data.

Create these two style using the below:

Style Name: manual-input

Style Value:background-color:#fcd98d !important;

Style Name: data-input

Style Value:background-color: #FFF7AB !important;

New Style Window

In the Price Planning workview, right click on Retail Price and click Edit Set to open the Set Editor.

Set Editor

Search up Apply Style using Formula and double click the set instruction and input the following.

js
IF(HASSTATICVALUE(),
    "manual-input",
    "data-input"
)
IF(HASSTATICVALUE(),
    "manual-input",
    "data-input"
)

Applying Styles

The workview will have cells that you can input into in yellow and highlight cells with a manual input in orange.

Applied Styles

Save the workview.