Code Monkey home page Code Monkey logo

cwc-select-element's Introduction

Select element CWC made for WinCC Unified

Icon

1. CONTENT

HTML sleect element

2. INTERFACE

  • rows : Array of element to show in the drop-down list
    // Example
    rows: [["element1"], ["element2"], ["element3"], ["element4"]]
  • current : Name of the element to be shown as default (leave empty to disable)
    // Example
    current: "element1"

3. EVENTS

  • ev_selectElement : This event is triggerd every time an user interact with the dop down element, as a result in the "rowId" object
    // Example
    rowId : "element2"

4. USAGE

  • OFFLINE MODE

    • You can test the behavior of the chart with custom data by setting "production" to false
    • Now you can change all the data from "WebCC.Properties"
    var production = false;
    //...
    WebCC.Properties = {
      current: "element1",
      rows: [
              ["element1"],
              ["element2"],
              ["element3"],
              ["element4"]
            ]
      };
  • ONLINE MODE (WinCC Unfied)

    • Set "production" to true
    var production = true;
    • To import the custom web control the hierarchy of folders and files must be compressed in ZIP format.
    • The name of the ZIP must be the GUID used the "manifest.json" file surrounded by curly brackets
      type": "guid://1B4B9F13-ADBF-49FD-B759-F04DF3647C93",
    • {1B4B9F13-ADBF-49FD-B759-F04DF3647C93}.zip

    • If you want this custom web control available for all your project, copy this file in the folder :

      • C:\Program Files\Siemens\Automation\Portal V17\Data\Hmi\CustomControls
      • replace "Portal V17" with your Tia version.
    • If you want to use this custom web control only in one project copy this file in the folder :

      • \path_to_tia_project\UserFiles
    • Refresh "My controls" to update the files in TIA Portal

    • Now you can place the custom web control in the Screen.

cwc-select-element's People

Contributors

david-plc avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

cwc-select-element's Issues

Error when changing rows via js script

Hi,
When i try to change the rows Property inside a Unified JS script, i get this error (TraceViewer):
session: 0024, trace: PROPERTY_SET Invoke failed (property='Screen->Items->Properties->rows', id=4, error=0x80000000)

Here is my code:

Screen.Items("SelettoreRicette").Properties.rows = [["a"], ["b"], ["c"], ["d"]];

Thanks
GiorgioT.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.