store the SQL result in a Datatable entity
Hi, hoping you're doing just fine..
I'm pretty new with thingworx and I need to develop mashups that read/write data from/to SQLServer and handle some of that data to do custom reports
So, I have some troubles to store sql results in a database entity to use in the example mashup that I've been working
what I did was:
- Create a test data shape with the sql table structure:
- Create a test data table with the adding the shapes I just create:
- Create a Database Thing that make the connection to SQL server and in a javascript do the query.... you'll se the results down (I also tryied to set the test data shape in the output and nothing)
- In the database thing I also added properties
From there I'm lost, I don;t know how to set the properties with the data returned
Can you help me with some code to base on, so I can store the values in the properties and display in a widget (can be a grid for start) in the mashup?
I've been looking for some complete examples and until now I haven't found any...
Best Regards,
Marcos




