Recently active
The UserManagementSubsystem has Session Management Settings where we can set the "Idle Session Timeout (min)". My use case requires redirecting the user to the login mashup screen when the idle session timeout expires. As far as I can tell, I don't see the redirect URL to configure the same in ThingWorx. Could you please share the code snippet for this scenario?In ThingWorx, even though the mashups are active, the session expires when the session timeout is reached. Does ThingWorx behave this way by default? I want to implement the timeout in such a way that only the session expires if the system is idle for the set period of time.Thanks
Data, Properties, Explore, Widget, Layout Panel is not visible in Thingworx. Can anyone please help me out here. I already tried restarting the tomcat.Thingworx version is : 9.3
Hi! I'm trying to get all the entries from one Stream Thing and transfer them to another. My code looks like this: new_entries = Things["TemporalStream"].GetStreamEntriesWithData(); var params = { values:new_entries }; Things["MainStream"].AddStreamEntries(params); I'm getting the error message :: Wrapped java.lang.NullPointerException - See Script Error Log for more details.Could someone please tell me what I'm doing wrong?
For the american eastern time zone, the UTC Offset is -5:00 during standard time and is -4:00 during daylight saving time. For this year, Daylight Saving time started at 2:00am on 3/12/2023 and ends at 2:00am on 11/5/2023. So, I expect that this service should return -4:00 for this time period and -5:00 for all times before and after those dates. However it actually returns -4:00 between 3/11/23 9:00pm and 11/4/23 9:59pm. So, it's like the service thinks that DST starts at 2am UTC, instead of local time. So, to figure the offset it converts the given time to UTC and if it is between 3/12 2am UTC and 11/5 2am UTC it returns -4:00. Here's a screen shot of the service:Am I correct in thinking the service doesn't work properly? Thanks,Steve
Good day Community, I have an Info table that stores the sales of fruit a day. See (MyTable.png)<MyTable> I want to add the number of fruits I sold each day then reorganize my table to that the day that has the highest sales can appear at the top of my list, and the day I on which I had the least sales should appear at the bottom of the info table. See the image below: I've written up a piece of code, however I have hit a wall because the sum of the sales per day is not correct. How can I fix this:let Total_Sales_Per_Day = 0;for(let c=0; c<Fruit_Names.length; c++){//the column names from the inputFruit_Input = Fruit_Names[c].Fruit_Names;Value = MyTable[Fruit_Input];Value = parseFloat(Value);let Total_Sales_Per_Day = Total_Sales_Per_Day + Value;}let result = Total_Sales_Per_Day Regards,
I'm currently using the following lines to create an infotable from json: var json = { rows: jsonData.run_history, //an array of objects dataShape: DataShapes["SomeDataShape"].GetDataShapeMetadataAsJSON() }; /////////////////// //Loads json data to an infotable var data = Resources["InfoTableFunctions"].FromJSON({ json: json }); I'd like to add more data from jsons to the infotable, but the FromJSON service replaces the previous data. Is there a service that adds JSON data to the infotable? Kind of like .AddRow? I'd like to avoid using a for loop to add each row one-by-one as there are many rows. Also, is there a limit to the size (MBs) of the infotable?
Is it possible to connect ThingWorx with PLC without using kepware? If yes, what is the best way to do this? Translated by the Community Moderation using Google Translate É possivel conectar o ThingWorx com o PLC sem usar o kepware ? Se sim Qual a melhor forma de fazer isso ?
We have established a connection with opcua via Kepserver and we created a industrial thing and from that we created a remote thing. After creating remote thing if we press refresh the data use to be updated.I connected the thing to Label widget in vuforia studio there also the real time data was available. But after doing all this if I click the save button of remote thing once more it will stop the data pushing into studio and also data refreshing. I got the error in kepserver as shown in image. (error pushing property updates to thing). even i tried by writing services still the thing is not refreshing. If we create new remote thing it will work fine until I press a save button on second time. Is there any solution to overcome this problem. Help will be appreciated.
Is it possible to programmatically create a Scheduler in thingworx 8.5.3? I saw the following article, but I don't see this template in 8.5.3. https://www.ptc.com/en/support/article/cs382629 I'd like to create a mashup where users can schedule email reminders for preventive maintenance. The emails will be sent out to the users on the scheduled date/time. In order to implement this, I think I need to be able to create a scheduler programmatically, where the subscription on the scheduler would be created automatically as well.
I followed the instructions in the link below to add pagination to grid advanced. It works. https://www.ptc.com/en/support/article/CS311123 I typically add the following code to add query to grid advanced. if (query) { result = Resources["InfoTableFunctions"].Query({ t: result /* INFOTABLE */ , query: query /* QUERY */ }); } For the paginated grid advanced, I tried the code below to match the output infotable, but it's not working. Is there a way to add query to a paginated grid advanced? if (query) { result = Resources["InfoTableFunctions"].Query({ t: result.Data /* INFOTABLE */ , query: query /* QUERY */ }); }
I was trying to create a Gauge in the mashup for which I cannot bind the input values, No error is showing in the log! Can anyone help me on this!
I would like to understand limitation about Local Account on Thingworx Application 9.3.2*Thingworx SCO Enterprise Package License , How about user account per license?- Admin Limited??- User Limited?- User Group Limited?
Hi, How to add UserSessionShapes in User Management Subsystem programmatically. I'm using the below code to update it // table: INFOTABLE dataShape: "" let data = Subsystems["UserManagementSubsystem"].GetConfigurationTable({ tableName: "UserSessionShapes" /* STRING */ }); // Provide your filter using the format as described in the help topic "Query Parameter for Query Services" let query = { "filters": { "type": "And", "filters": [{ "fieldName": "name", "type": "EQ", "value": "MYSHAPE" }] } }; let params = { t: data /* INFOTABLE */ , query: query /* QUERY */ }; // result: INFOTABLE let sessionData = Resources["InfoTableFunctions"].Query(params); if (sessionData.length === 0) { data.AddRow({ "name": "MYSHAPE" }); Subsystems["UserManagementSubsystem"].SetConfigurationTableRows({ values: data /* INFOTABLE */, persistent: true /* BOOLEAN {"defaultValue":true} */, tableName: "UserSessionShapes" /* STRING */ }); } var result = data; When I e
Hi All, I have a lot off error messages in application_log like : Unable to dispatch [ uri = /Things/PersistentSession124f3131-c19f-461d-b5ac-0bf932cadad1/Services/AddDynamicRemoteSubscription/]: Unable to Invoke Service AddDynamicRemoteSubscription on PersistentSession124f3131-c19f-461d-b5ac-0bf932cadad1 : Not authorized for ServiceInvoke on ForwardEvent in PersistentSession124f3131-c19f-461d-b5ac-0bf932cadad1 And this: error executing APIRequest Message: Not authorized for ServiceInvoke on ForwardEvent in PersistentSession124f3131-c19f-461d-b5ac-0bf932cadad1, sending ERROR ResponseMessage to caller! I did find the CS386233 and tried the solution , i did change the permission on User level and UserGroup level only the error messages still come in the application_log. anyone got an idea how to fix this.We use TW version 9.3.8. Best regards,Emiel
To make a simple IoT we need 3 things1 Device- Which we will be connecting with the cloud.2 Gateway- To provide a safe path to transfer data and services to cloud using protocols.3 Cloud-These will be used to store data and display it using a dashboard. I want to know whether these sequences are correct or notDevice = PLCsGateway = KEPServerEXCloud = ThingWorx
Hello There, i have an Infotable that contains a nested infotable. Let's call them parent and child infotable. I'm able to add anything to the parent and update if i want. For the child infotable i'm somehow limited. I'm only able to add entries with AddRow() but update is not possible. This is the code i'm using for testing that: // check if an entry already exist and apply to the variable named project let project = Things["test.outer.DT"].QueryDataTableEntries({ query: { "filters": { "type": "And", "filters": [ { "type": "EQ", "fieldName": "timeStamp", "value": timeStamp }, { "type": "EQ", "fieldName": "position", "value": position } ] } } /* QUERY */ }); // create empty holder for the outer DT let values = Things["test.outer.DT"].CreateValues(); // create empty holder for the inner DT let versionData = DataShapes["test.inner"].CreateValues(); // create empty holder if no entries exist at the inner DT let innerValues = new Object(); // check i
Hi I'm following this guide to develop a custom extension - ThingWorx Extension Development Guide (ptc.com) When I try to debug an extension from Eclipse I'm getting the below error I have added the below Java options in tomcat -agentlib:jdwp=transport=dt_socket,address=*:8000,server=y,suspend=n Tomcat Service : [Unit] Description=Tomcat 9 servlet container After=network.target [Service] Type=forking User=tomcat Group=tomcat Environment="JAVA_HOME=/usr/lib/jvm/jdk-11.0.11" Environment="JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,address=*:8000,server=y,suspend=n -Djava.security.egd=file:///dev/urandom -Djava.awt.headless=true" Environment="CATALINA_BASE=/opt/tomcat/latest" Environment="CATALINA_HOME=/opt/tomcat/latest" Environment="CATALINA_PID=/opt/tomcat/latest/temp/tomcat.pid" Environment="CATALINA_OPTS=-Dserver -Dd64 -XX:+UseG1GC -Dfile.encoding=UTF-8 -Djava.library.path=/opt/tomcat/latest/webapps/Thingworx/WEB-INF/extensions" Ex
Hi all, I'm facing an issue with Date Time Picker widget that auto converts the picked time (e.g. 03-08-2023 00:00:00 GMT+2) to the GMT 00 Time (e.g. 02-08-2023 22:00:00 GMT 00). And because I'm in Germany this is can be solved by statically adding +2 to the selected datetime, but it has to also check the so called Daylight Save Time that sometimes can affect the time shifting between GMT+2 and GMT+1. Applying getTimezoneOffset() won't work because it's already converted directly to GMT 00 (UTC) which means applying getTimezoneOffset() will always return 0. Is there a way to avoid the timezone conversion between the Date Time Picker widget so that if my customers from all over the world select 03.08.2023 00:00:00 on the Date Time Picker widget it will be also understood and processed further as 03.08.2023 00:00:00 GMT 00 no matter where they are, and regardless the Daylight Saving Time that may vary.
Hello Community, I wanted to set localization on my grids filter hint in 9.3.5, however there doesn't seem to be any way of doing this.Am I missing something or is this just missing functionality? Thanks,Jens
Hello all, So I have been trying to write some HTML to open a popup from the HTML widget.However this has not been going so well. I can easily make a link to "change" the website I am currently in, but can't seem to get it to open as a popup... Here is the HTML string I have tried:var htmlString = '<a href="https://url.com/Thingworx/Runtime/somemashup" ' + 'target="popup" ' + "onclick=\"window.open('https://url.com/Thingworx/Runtime/somemashup', 'popup', 'width=600,height=600'); return false;\">" + "Open Link in Popup" + "</a>"; I have a strong feeling that it might not be possible, so for now I guess I'll try to find a way to use a button or something to trigger a navigation function instead... Thanks,Jens
Hi all, Currently i am using a styletheme for my work. I would like to check if there are anyway to also customize/privitize the shapeStyle as it is a default option shared among my colleagues and they sometimes accidentally edit it. Let me know how i can go about doing it. Thank you.
Dear community, I am looking for a solution where by i can change a word based on a change in another field. exampleWhen the square is green, the label shows "is working". When then square is Blue, the label shows is not working. Hope someone can guide me step by step on how to do it.
Calendar date and weekday are not matching when Italian language is selected. Calendar is good with English language.Attached Italian Calendar snapshot, L = Lunedì = Monday apr 11...this is wrong..11th April should be Tuesday.Also attached English calendar for reference.ThingWorx version ThingWorx 8.5.6-b110.
I am currently using version 9.3.8. My mashup has a "Bar Chart (ptcschartbar)" that is loaded by an infotable containing values with thousands separator and decimal places. The widget has a property - ValuesTooltip - with the value of "BarChartDefaultTooltip" which in my localization table (pt_BR) has the value of "${label}, ${series}: ${value}". How can I change the format of the ${value} field to my language (Example: 123,456.78)? The attached figure shows the value without formatting.ps. In my previous version (9.3.2) I used a "Label Chart" and the tooltip was shown with the correct format (attached figure too).Regards,
Which version of windows(windows 2019, windows 2022) in supportable for Thingworx 9.3/9.4 installation.
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.