Giter Club home page Giter Club logo

cwc-table's People

Contributors

david-plc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cwc-table's Issues

columnsEdit

I populated the columns and rows with a query.
But every time I change the lines and assigned true or false in the columnsEdit the table goes wrong.
How can I fix it?
Or better , if I make a query with 5 columns rather than an 8 how do I assign the columnsEdit without it going wrong.
Thanks for the support

Example of using the control

Hi David,

could you provide an example of how to use the control in WinCC unified. More specifically, how to access and set the rows property of the control's Interface. I am able to provide a static data to rows via WinCC Inspector window, however I am not able to change the rows property dynamically from the code in run-time.

Do I need to change something in control's source code (var production= true;)?

Thank you

Using the "ev_SelectRow" event

Hi David! I want to start saying that your CWC table is great and it's exactly what I was looking for! (Too bad Unified does not have a native table that reads values from an SQLLite Db)

Now, I was able to "populate" it with the results from a query. What I would like to do now is to take all the values from a row, when the user clicks on it an move all the values to different internal tags.

I know this may sound stupid to you, but I'm kind of a newbie when it comes to CWC and JS

My table now has this rows:
["Cliente","Articolo","Descrizione","Lotto","UM","Qta.","Carico","Barre","Ricetta","Stato Lav."]

For each column I have an internal tag (lets say v_Cliente, that is a WString) and I woul like to write the values with the values from the rows

Hope you can help me

Thanks in advance

ps

I tried to add some JS code on the event property side:
//
export async function Table_1_Onev_selectRow(item, rowId) {
HMIRuntime.Trace(rowID);
HmiRuntime.Trace(item);

Tags("v_Cliente").write(rowID);
}
//

But it doesn't seem to work. So I think I might be pretty far from understanding how the ev_SelectRow event works

Add new rows in runtime

Hi, good work.
Is it possible to add new rows in runtime?
For example populating the table with the result of a sql query . Could u provide some examples?
Thanks

How to use ev_selectedRow?

Hi David,

I'm working with wincc unified cwc table and now I need to get data from selected row using ev_selectRow but never works. How to do that? Could you please show me the code and where exactly I have to put that code? I'm new with html and javascript.

I really appreciate your help, thanks in advance.

Regards,
Atabik

Typo

You have a typo in in the line: «replace "Portal V17" with your TIA version.»
Gest repos btw!
image

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.