david-plc / cwc-table Goto Github PK
View Code? Open in Web Editor NEWA table view as custom web control for WinCC Unified
A table view as custom web control for WinCC Unified
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
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
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
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.