{}

Våra varumärken

Impact-Company-Logo-English Black-01-177x54

Välkommen till Schneider Electrics webbplats

Välkommen till vår webbplats.
Hur kan vi hjälpa dig idag?
How to modify Original WebX to add or remove Buttons
DISCLAIMER

The example below is intended to demonstrate one or more features or methods and is presented as a configuration example only. Schneider Electric assumes no liability for the use or application of this example or any portion thereof.

ClearSCADA uses XML to pass information to the client web browser when using WebX. This XML is then transformed into XHTML using a set of XSL files found in:

C:\Program Files\Schneider Electric\ClearSCADA\WWW\XSL

The layout of the menu buttons themselves is handled through the following XSL file:

C:\Program Files\Schneider Electric\ClearSCADA\WWW\XSL\layout.xsl
Note: After making the changes shown below the browser cache must be cleared.

Adding Menu Buttons

To add a button, find the following section in "layout.xsl"


In the above code, a button is created for each "Links/Link" in the source XML document. To create additional buttons, expand this section with some additional customized buttons:


Removing Menu Buttons

Removing buttons is again done in "layout.xsl". Find the following section:

A button is created for each "Links/Link" in the source XML document. To remove a particular button, we need to prevent the Button template from being called in particular cases. This can be done by modifying the code as follows:

In this case, if the "text() != 'Lists'", the button will be created. However, If "text() = 'Lists'" the button will not be created and the List button will be removed.

The following button types exist and can be removed in this way:

  • 'Home'
  • 'Database'
  • 'All Alarms'
  • 'All Events'
  • 'Lists'
  • 'Favorites'
  • 'Diagnostics'
  • 'Log On'
  • 'Log Off'
  • 'Help'

Note: Any changes on the original WebX files will be overwritten by an upgrade. You may want to save the modified files on a safe place so you can reuse them after an upgrade.

Schneider Electric Sverige