Please enable JavaScript to view this site.

CWT Software Configuration Handbook 4.40

Container        Path: <cwt><TARIFFPACKAGE><stepButtons>
Element        Path: <cwt><TARIFFPACKAGE><stepButtons><stepButton>

It is possible to define the values for up to four step buttons for each tariff package. This is useful since two different tariff packages may have very different rates, which in turn requires different values of the step buttons. The values can be defined in the <cwt><TARIFFPACKAGE><stepButtons><stepButton> element in the configuration.

attributes

buttonId

Value:1-4
Default:
Description:Defines the step button to set value, type and text for.

buttonText

Value:User defined string
Default:Empty string
Description:Defines the text to display on the button.

buttonType

Value:“Amount”, “Time”
Default:
Description:Defines the type of step button.

buttonValue

Value:–2147483648 to 2147483647
or a list of values, “Reverse”, or “Max”. See List of Steps
Default:
Description:Defines the step value for the button buttonId in the UI.

If buttonType is set to Amount, the attribute ButtonValue will be defined as ticks to step.

If buttonType is set to Time, the attribute buttonValue will be number of minutes to step.

Positive and negative values are supported for both Amount and Time.

Important!
To control the step buttons from the tariff package, the buttons need to be configured in a specific way in “ui.xaml”. The name of the button must be “stepButton1”, “stepButton2” , “stepButton3”, and “stepButton4”. Furthermore, the Click function for these buttons must be “OnStep”.

Example:

<stepButtons>
<stepButton buttonId="1" buttonValue="100" buttonType="Amount"
  buttonText="+1"/>
<stepButton buttonId="2" buttonValue="500" buttonType="Amount"
  buttonText="+5"/>
<stepButton buttonId="3" buttonValue="600" buttonType="Amount"
  buttonText="+6"/>
</stepButtons>