Recently active
Hello Team, I want to get the output of a QueryPropertyHistory service via REST to a third party application, but I want to get it into the raw JSON format, to avoid parsing errors in the destination, Please, any ideas on what I should do as a custom service to get QueryPropertyHistory output to a raw JSON format? Tks, Chris
Spoiler (Highlight to read) Hi, I have a trial version Thingworx of 3 months installed on my computer. I downloaded and installed Httper APP on my smartphone and I´m trying to send information to thingworx via REST API but I can´t connect to Thingworx and the error message is: "Cannot access to the URL, check your connection and service provider" I have connected smartphone and computer in the same network. IP Computer= 192.168.1.22 IP Smartphone= 192.168.1.24 Port= 8080 This is the URL, headers and body: Request method PUT URL= http://192.168.1.22:8080/Thingworx/Things/DataLogger/Properties/Temperatura Headers= AppKey= b2245650-d77e-4f8a-8dbb-4acbabf85230 Content-Type => application/json Accept =>application/json Body= {
Hi, I have a data table and one of the fields is JSON type . I can write a JSON object into the table successfully, but when getting the JSON object back, the array property of the JSON object becomes {}. The workaround is that I have to convert the array field into String and then call JSON.parse to get the JSON array back . Is it a known issue ? I uploaded a reproducible XML file for the problem , you can run AddJsonValue firstly , then run GetJson to observe the log . ThingWorx 8.4.2 + PostgreSQL 10 Regards, Sean
Hi all, I need to format current date time on ThingWorx expression widget, but javascript functions do not work without libraries (i.e. dateFormat(newDate(), "dd-MM-YYYY HH:mm")). How can I format datetime with native functions? Thanks, Elisabetta
i am in a situation where i use 40 to 50 fields (textbox,label) in a single mashup, currently for showing values in that fields i use the same 40 to 50 service, each for fields.This huge amount of services results in a slow page with massive lags. So am searching for a way - there we can programmatically access all the fields(40 to 50 counts) in a single javascript service and manipulate it there itself, setting or getting text values of the fields like we do in native javascript(eg: that_specific_label.gettext())
Hey everyone, I am currently using Thingworx platform 8.3 and i need to upgrade to 8.4, i have gone through the document but i have a bit confusions in downloading the files from support site and upgrading my licensing. Regards, Deepak Rahul
Hello all, When script logs are used inside functions,they are not displayed in monitoring.. has anyone else observed this..any solution? Eg. function print(){ logger.info("1"); function print2(){ logger.info("2"); } } print(); logger.info("3"); 1 & 3 are printed in script log while 2 is not.. Thanks for any clues..
I want to load students data into a mashup which will be given by user. My vision is , on click of "Add student" button in main page, a window has to pop-up and ask for student name, age, department, photo (image) and so on. After giving all the values, the detail has to be shown in the same main page in addition to the "add student" button. Like this users will add as many students they need. I'm a newbie here. So step by step instructions will be appreciated. Thanks and regards, Rajesh
Hi,In our customer release, we need to download a file from Thingworx remote Repository to the system where C-SDK edge server is running.We are trying the same with get file api in the below format, but its giving some errors and we are not able to achieve this.twFileManager_GetFile("SystemRepository", "/", "test.txt", pConfigparam->m_ThingName, "twx", "\\test.txt", 0, TRUE, &tid);1) we have tried transferring from SDK to TWX repository, that works with below format.twFileManager_GetFile(pConfigparam->m_ThingName, "twx","test.txt", "SystemRepository", "\\", "test.txt", 60, TRUE, &tid);2) When transferring from systemrepo (Thingworx) ,we get errors using the twFileManager_GetFile api.Please suggest us how we can achieve this, provide us the steps/samples to do the same.
I m trying to display the data coming from property of base type infotable on mashup vertically. Vertically in the sense all the Headers should occupy first column and the values corresponding to it should occupy subsequent columns. Tried with creating a service to transpose the data, it didn't work out. It would be Great and Thankful if somebody helps me with an example code with which i can understand and implement it in my project as well. Please find attachment for required format. Thanks in advance.
Hello. I've got an issue. The problem boils down to one general issue: I've got an infotable with four boolean properties, and each property is assigned to a shape. Based on the value of the property, the specific shape is visible or not. I have connected the infotable properties (some are true, some false) to the shapes via Selected Rows, but all the shapes are visible, when in reality, some should be hidden. Can anyone help with this regard? Thanks.
OpenDJ is a directory server which is also the base for WindchillDS. It can be used for centralized user management and ThingWorx can be configured to login with users from this Directory Service. Before we start Pre-requisiste Docker on Ubuntu JKS keystore with a valid certificate JKS keystore is stored in /docker/certificates - on the machine that runs the Docker environments Certificate is generated with a Subject Alternative Name (SAN) extension for hostname, fully qualified hostname and IP address of the opendj (Docker) server Change the blue phrases to the correct passwords, machine names, etc. when following the instructions If possible, use a more secure password than "Password123456"... the one I use is really bad Related Links https://hub.docker.com/r/openidentityplatform/opendj/ https://backstage.forgerock.com/docs/opendj/2.6/admin-guide/#chap-change-certs https://backstage.forgerock.com/knowledge/kb/article/a43576900 Configuration Generate
I am stuck at configuring charts as there is no drop-down list for my LabelField. Link to the guide: https://developer.thingworx.com/en/resources/guides/display-data-charts/ddc-configure-charts What mine showsWhat is supposed to be shown
Hi Team, Is it possible export an appkey (or list of appkeys ) programmatically? I would like to select all the appkeys by Tag and export them, but I didn't find any information about how to do that. If possible, how can I do it ? Thanks in advance.
Hello. I've got an issue. The problem boils down to one general issue: I've got an infotable with four boolean properties, and each property is assigned to a shape. Based on the value of the property, the specific shape is visible or not. I have connected the infotable properties (some are true, some false) to the shapes, but all the shapes are visible, when in reality, some should be hidden. I have a thing shape with a service that populates an Infotable property. On my actual thing, when I click the infotable, I can see that one of the infotable values is modified from its default value. But it doesn't display on the mashup. I have connected the Dynamic Thing Template, and I have connected the GetPropertyValues service, from where I pull the infotable data. But it doesn't connect. Can anyone help with this regard? Thanks.
I have uploaded additional data to my dataset, but my model is not changed according to newly added data. Please suggest me that Is there any way to get it or I need to create new model and publish to Analytics Manager for every time I add new data into my dataset.
Hello, I want to disconnect the Websocket connection of a connected remote thing from the Thingworx server. Is it possible? I tried using the DisableThing service, but that only disallowed the client to update the properties, not terminate the WS connection. If it is not possible, what is the reason for it?
Hi there! I'm writing a service to convert any InfoTable to CSV text. The input is InfoTable without DataShape, it can be any InfoTable, with any filed definition. Now to make this service possible, I need to read data from InfoTable rows dynamically. Normally, I can use row.FieldName to get field value. But in my case, the feild name is a variable, so I want to use some function like row.values[myVariable]. And I cannot find any possible method to read data as I expected. Any advise? Thanks a lot!
Hi all, Like the subject, I would like to create a top-right delete image button for value display widget (like the image below) Is there any way to perform it? Any help is appreciated. Thanks!
I am trying to remove an extension which I have imported but there is no option for me to delete it under the import/export tab. Any suggestions? I am on localhost:8080 and using Thingworx 8.4.0
Hi Guys, Need help in enabling tunneling of a particular thing through Edge Java SDK. I was able to add the tunnel by invoking AddTunnel service through Edge Java SDK. Is there any service or property for EnableTunneling, so that i can invoke that service or else write the value to that property using SDK. Thanks in advance.
I am attempting to programmatically add a property to a remote thing. I need to set the push type to "Always pushed", but passing a value of "Always pushed" as a parameter yields the following error: Error executing service <Service>. Message :: Invalid Push Type : [Always pushed] - See Script Error Log for more details. I've experimented with every variation of "Always pushed" I can think of with no luck. What is the proper string input needed to specify the push type? The code for the service is below: try{Things["myThing"].property = 0;}catch(err){var error=err.message;if(error.match(/not found on myThing/)!=null){var params = {defaultValue: undefined /* STRING */,remoteBindingAspects: undefined /* JSON */,description: undefined /* STRING */,readOnly: false /* BOOLEAN */,type: "STRING" /* BASETYPENAME */,remote: true /* BOOLEAN */,remotePropertyName: 'remotepropertyname' /* STRING */,timeout: undefined /* INTEGER */,pushType: 'Always pu
I have a textbox that takes input from a scanner (I'm using a hand-held Android based scanner). The user can scan bar codes and then services are run in the background once a user scans something. The textbox auto-selects, so there is no need for the user to click anywhere - he can just continue to scan different bar codes again and again, etc etc. This is exactly the functionality I want, except I just want to make the textbox invisible. Once I change the 'visible' property on the textbox widget to be 'false', the textbox will no longer auto-select and all my functionality goes out the window. Anyone ever run into this?
Just downloaded Thingworx demo and KEPServerEX 6.6 When I tried to connect KepServerEX, I got the following error: "ThingWorx Native Interface Connection to ThingWorx failed. | Platform = <servername>:<server port="">/Thingworx/WS, error = unknown error." In summary, I think the issue was that you can not use the name "localhost" for your server name. I checked that I had correctly setup all my ThingWorx items in Property Editor (Enabled, host name, port, application key, etc.) However, I kept having problems. I thought the problem was the application key, so i entered a bad application key and I got a different error (authentication error). I tried changing the socket from 9080 to the example's 8080 and got a socket error. After going into the thingworx controls advisor and deleting the server and then adding a new server called "TestServer" instead of "localhost", it now works. I'm writing this post in hope that either someone experiencing the
Hi, I have DataTable containing ID and Name of several different Things. On my Mashup i want to click on Grid row, with specyfic ID and Name and populate TimeSeriesChart with data from Thing. And also - every Thing will be added by REST Api and there will be 300 of them, so adding it one by one to mashup will not work. What is propper way to do that? Please Help.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.