Recently active
The audit log use case requires capturing login and logout information (user and timestamp) in an external MSSQL database. Our FormLogin.jsp page in ThingWorx handles user authentication using ThingWorx Users. However, we need to capture login and logout events that occur on the ThingWorx page, which must be stored in an external MSSQL database. Please assist with the steps, sharing a code snippet would be greatly appreciated.
Hi,I have a mashup with two tabs. Despite setting the selected tab via an expression the other tab will not be selected, it seems like only the default tab can be selected via that event.When using the tab widget, despite setting the selectedTabValue to a number corresponding to the tab, the selected tab does not change, could someone provide an example of how to programatically change tab (with the correct bindings)?KindlyOskar Berntorp
We have a Remote thing, in which we have set of the properties, and it is remotely bound to Edge Thing. So far everything is good, but when we set the values for properties from Lua script (Edge Side), These values are not reflecting in Thing Worx Platform Side automatically. Every time we have to open a property page from composer and hit refresh button to see the property change value. Why are the values not updating automatically? How to overcome this? I have provided sample configuration and settings for one for the property called "ErrorMessageChanged" for your reference. Lua Script this is how property has been initialized:-----------------------------------------------------properties.ErrorMessageChanged = { baseType="BOOLEAN", pushType="ALWAYS", value=false} Lua Script this how the property has been Set:--------------------------------------------------properties.ErrorMessageChanged.value = true ErrorMessageChanged&n
Hi Developers, I have a parent mashup which has a collection widget. On collection widget, I have a textfield widget.Requirement is to refresh another service on parent mashup whenever a user enters value in the textfield widget. This service is used as input to second collection widget on same parent and we need to refresh values on second collection widget.Issue is that use of global parameter or session parameters are not allowed in our organisation.Kindly suggest some expression or way to achieve this. Thanks in Advance.
I have Thing, where I keep services and properties for my application.I want this services to be available for every user, so for this Thing I've set Permissions for group Users, with Property Write Allow, Service Executable Allow, but Property Write Deny.I have also some additional user A*, who is allowed to change properties, so for him I've set Property Write Allow, Service Executable Allow, and Property Write Allow.Finally, settings for User groups are treated as higher priority and this user is treated like Property Write set to Deny.How to cope it without creating extra group of users, including All the users, but not A?Or is there a way to create a group, that I will create today and all existing users except A, but will in future included all users added later? *this is virtual user to be used via timers, so datas are refreshed.
I have a requirement where I have to calculate the time difference between two instances of the PumpRunSignal property (Boolean), we need to determine the duration in minutes. The Pump Run Signal is a Boolean property that triggers an event data subscription and a service call when there is a change from true to false in the input from the PLC. We calculate the time difference by comparing the timestamps of index values 1 and 0 of the PumpRunSignal. However, there is a delay in loading data from Thingworx to InfluxDB when there is a false signal. To address this delay, we have implemented a 30-second Pause every time there is a false signal. While this pause logic seems effective, there is some uncertainty about its reliability, especially when dealing with multiple calculations for each Thing within Thingworx. Thank you!
I am looking to update multiple properties by making use of the service UpdatePropertyValues but I don't seem to be getting it right. I am using python to post my data and I get a 200 response back but the values are not actually updating when I use the service QueryNumberPropertyHistory. This is the URL that I am trying to access: url = "http://localhost/Thingworx/Things/Area_Thing5/Services/UpdatePropertyValues" I have also tried: url = "http://localhost/Thingworx/Things/Area_Thing5/services/UpdatePropertyValues" and i still get a 200 ok response, which makes it unclear which url is actually correct. my Payload looks something like this: {"name":"Item_Count", "value":1112, "timestamp":1702976380000, "quality":"GOOD"}And then I post it with a content type application/json I have also tried with a payload: {"name":"Item_Count", "value":1112, "time":1702976380000, "quality":"GOOD"}
Hello @VladimirN, @sabharees I am also facing a somewhat similar issue.I have checked the old discussion in above post and added the changes, but it is not working for me. I have a property with BASETYPE as NUMBER in custom widget, for which I have set "isBindingTarget" as TRUE and default Value of 15.In the Mashup Composer I am passing a value from service to this widget property, This value from the service is 30.When I am loading the mashup, I see that the widget is taking value of 15 instead of 30 when I am calling "this.getProperty()" to read the property value.As suggested in the URL discussion of previous post, I also added the updateProperty block of code. Also my value is not changing continuously.But the value for any property must be taken from the binding if any binding is present. What is it that I am missing here. Thanks and Regards, Bhushan
I am using collection widget. When I select the cell, It should get highlighted. So I tried to apply style from Style Properties, the CellSelectedStyle is not working. Even other styles from the properties are not working. I am using Thingworx 9.4.2 version. PFA files.
Hi, LocalizationTables["es"].DeleteToken({name: "1-Fire Defect Code 38#" /* STRING */}); Unable to delete token which is in es table using delete token service This token has been create using service AddorupdateToken on es table. Error in script logs : Error executing service DeleteToken. Message :: Token [[1-Fire Defect Code 38#]] not found But this token is present in es table but not in Default table.Please help me with this.
How to decrease the time width of time box and increase the width of date & year in new date time picker ok 9.4 version.
Hi everyone, I have a doubt I am attaching file for detailed understanding I want to use pie chart and in that I want to configure it a way so that whenever I select any section of that pie chart It should render to the source it may be another pie chart or may be a grid data associated with that particular section similarly other section as well Now for that please tell us how can I proceed please also write the service as well for the data I have given it in the attached Image. Regards, Rayon.
Hi, I updated a Thing shape with some new services and properties, and I changed the code from an existing service. This Thing Shape is added to a Thing template, which is used to created several Things based on this Template.On both the template and the derived things, the new properties and services are shown, but the existing service still has the old code instead of the updated code from the shape.I tried refreshing to clear cache, but still the old code is showing. I don't see any errors in the logs and if I try the same code on a new service, it works. So I'm pretty sure the code itself is ok.Is there anything else, that can prevent an inherited service to update?thanks in advance for you tips.
Hi Everyone, My Doubt is like suppose I have a service which store windchill data into Thingworx database from so what is I want is schedule a time on that service so that it will automatically get executed on each specified time interval for that I know there is auto refresh widget in thingworx but How will I get the timing that when this service get executed like I am Thiking to create a property (Date Time) which store the recent time when the service get executed so to to this what I have to do Like any code change or something else please suggest if anyone have any idea. Thanks and Regards,Lav
Given an array of integers, find the length of the longest increasing subsequence. A subsequence is a sequence that can be derived from another sequence by deleting some or no elements without changing the order of the remaining elements.For example: #include <iostream> #include <vector> int longestIncreasingSubsequence(const std::vector<int>& nums) { // Your dynamic programming solution goes here. // Return the length of the longest increasing subsequence. } int main() { std::vector<int> sequence = {10, 22, 9, 33, 21, 50, 41, 60, 80}; int result = longestIncreasingSubsequence(sequence); std::cout << "Length of the longest increasing subsequence: " << result << std::endl; return 0; } I'm specifically interested in implementing this using dynamic programming techniques. How can I approach this problem using dynamic programming, and what would be the C++ code for solving it? Any insights, code snippets, or exp
Hi,Please help on following , I want to get date field from CSV file. If I apply dataShape (Date column as Datetime). will getting error (tried many ways, still didn't get answer). let params = {path: "/PhysicalTestMachineData.csv" /* STRING {"defaultValue":"/"} */,columnMappings: undefined /* STRING */,hasHeader: true /* BOOLEAN {"defaultValue":false} */,longitudeField: undefined /* NUMBER */,dateFormat: parseDate(Date, "DD/MM/YYYY") /* STRING */,fileRepository: "SystemRepository" /* THINGNAME */,latitudeField: undefined /* NUMBER */,fieldDelimiter: "," /* STRING {"defaultValue":","} */,stringDelimiter: undefined /* STRING {"defaultValue":"\""} */,customFieldNames: undefined /* STRING */,dataShape: "Physical_E1" /* DATASHAPENAME */};// result: INFOTABLElet result = Resources["Parsley"].ParseCSV(params); .....>>> Error executing service GetPhysicalTest_CSV_1. Message :: Invalid format: "org.mozilla.javascript.IdFunctio..." - See Script Error Log
It's been a year since this post and there are newer versions released. Is there a solution for this? If it's not the built-in behavior, I'd like to specify that if the new value is null, then set the value to the default value. Why else would there be a default value? I've entered a default, value; I shouldn't need to write a bunch of code for the default value to mean something more than documentation.
Hi everyone,I am getting data from from windchill and then storing it into thingworx locally so what I want is user should have flexibility to refresh the data and it should also showing at the mashup UI like when the data refreshed last time like that so to achieve this what should I have to do like what is happening in the background (Windchiil system) may be some data gets updated so in that case user want to see live data and the time when he refresh so what should I have to do implement this kind of problem I am thinking of a scheduler which should be running after each specified time and also thinking to give user flexibility to see the data refreshed so how can I implement it Regards,Lav
How can I trigger a service in mashup A via a button click and display its output which is an infotable, within a grid in mashup B in Thingworx?
Hi,I am developing a Scanner Widget for ThingWorx using HTML5QRScanner. For some reason it can´t start automatically with the built in api when using the scanner within thingworx.What does work on the other hand is when using plain html/javascript outside of thingworx. So I thougth that this problem would be possible to circumvent with a webframe-widget, but then I would need a way to extract information from the page in the webframe. My question: is it possible to get some kind of output out of the webframe-widget, or to access the page in the webframe from thingworx?RegardsOskar Berntorp
Hi I created one model in thingworx analytics which have 0 lookbacksize and 5 lookahead and calling that model in thingworx service by executeJob() and trying get the 5 output data as there are 5 lookahead but unable to get the 5 output data. Can anyone help me to resolve this issue.
Hello, everyone,I need some advice. My goal is to send telemetry from OSI PI to Thingworx. Browsing the internet I have read various solutions to answer my question. I wanted to ask you, the community, for a solution for data transmission, which is not using the Capula connector, and whether these proposed solutions have additional licensing costs. Thingworx Version: 9.0.3 Thank you
Hi, We created thingworx analytics model with 0 lookbacksize and 5 lookahead now we are trying to create custom datashape to it and trying to add some fields into it but not able to create, after clicking on addorupdate button it is showing an error like "???". Kindly help with this issue. Thanks!!
what is this bank container in tis and how can I remove this
Hi,I'm actually regarding to make a WebSocket connection between ThingWorx and a WebApp using Angular Node.JS (17), the objective is to retrive and display data in real time on the web interface. After looking the ThingWorx Documentation and looking at all post on the Forum, I was thinking "Is this really possible ?", so I'm here to see if some other developers have already done that before ?Thank you for all future person will give me some answer to my question.
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.