Recently active
hello, hope your doing all well. I have a thing with some thingShapes, binded to a kepware where it gets the data. the problem is some properties i created on shapes has string as a type, and on the kepware they are numbers, and this causes a problem for me when quering theme from influx with aggregate functions (mean....).i tried to modify adapt there types on the thing-> my properties (where there is an exclamation mark ) , i click on the property then i click on applay , it changes there type to the proper one, but after saving , it go back to the previous type. also tried to create new properties and deleted the wrong ones, they are not visible on influx, only the old (string) ones are there,my question is : -can i change a property's type after it's on influx without changing the name?- is there a way to force the types on the sources, not on the shapes ? thank you all*i am new to thingworx (few months).
Is there any benefit of wrapping whole service into anonymous function? eg. (function() { const someText = 'test'; logger.info(someText); })(); const result = function() { const someText = 'test'; return someText; }(); I'm not sure how local variables (service scope) are managed after the service execution completes/fails. Are those variables continue to exist, even if we cannot access them? If yes, it would make sense to wrap whole service into anonymous function, so we are sure they are destroyed after function returns.I saw this approach few times and it makes sense for me when the service returns value - we can use return statement in any place in the service, but I'm not sure about memory/security benefits.Is there any documentation on how ThingWorx manages the cleanup and disposal of resources associated with the service execution?
Hello I want to remove Display and Reset button and add new button at right side/ replace reset button with add button, how can I do this In below image I want to replace reset button and hide display drop down
Hi Team, I was doing a training for Analytics (https://community.ptc.com/t5/IoT-Tips/ThingWorx-Analytics-Training-Module-11-Part-1/ta-p/844948). I tried to import Things_dataSimulator.xml but the import failed. The error shown is: Please help me solve this issue, Thank you. Regards, Amelia W
Hello, I have thingworx 9.3 installed on my pc.I installed this extension :https://github.com/carlescm/ThingWorxConcurrencyExtensionthe extention works fine. However, when i restart tomcat, thingworx remove the extension automatically !do you have any aidea why i have this behaviour. Thank you for your help.
I am sending a SOAP Request from Thingworx to FactoryTalk Pavilion 8. I run the following script but get nothing back. The ldp in the code below is a tag whose value the SOAP call is supposed to retrieve. Thingworx 9.3 var content ='<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\<soapenv:Body>\<getTimeSeries>\<ldps>\<ldp>MAIN/Line1APQC/L1_QualityCtrl_KPIs/CV___Peel/data::output/Utilization/UnitUptime</ldp>\</ldps>\<starttime>2023-01-06T20:45:00</starttime>\<endtime>2023-05-26T00:10:00</endtime>\</getTimeSeries>\</soapenv:Body>\</soapenv:Envelope>'; var resultXML = Resources["ContentLoaderFunctions"].PostXML({url: "http://xxxxxxxx/integration/services/TimeSeriesPagingService" /* STRING */,content: content,password: 'xxxx' /* STRING */,username: 'xxxx
Like creating a Thing with code
Is there a way to audit how many assets and users I have consumed versus how many I have available? I am on ThingWorx SCP Cloud v 9.1.
So, it seems kind of simple, but I can't get it to work and not sure why.The arrow on Drag to Reorder fields when creating menus, data shapes or whetever else doesn't work... I tried in different ways and in different entities but it just doesn't do anything. Like I click on the 4 direction arrow and try to drag either above or below and when I drop it, nothing happens. When I have to reorder my fields I need to use the up and down arrow, which in situations where I have a large number of fields gets SUPER annoying. Wondering if this is expected behavior or am I missing something here? Thanks, Caio
Hi Team, I have added a new field in datashape.IN Mashup design, from "Configure grid column" property of grid , I have not checked any of the checkbox for "Exclude" and "Show" option.Then on runtime when I right click on grid header the, it is not showing the grid headers list. Expected: ON right click on grid headers it should shoe the grid headers name with checkboxes so user can manually check the box and see the data Please help!Thanks in advance!
Hi All, I installed ThingWorx EDGE C SDK of version 3-0-0-2317. While compiling a code with <twApi.h> header it showing error in SDK itself. /home/new/thingworx/include/thingworx/twOSPort.h:19:11: error: #include expects "FILENAME" or <FILENAME>19 | #include TW_OS_INCLUDE| ^~~~~~~~~~~~~/home/new/thingworx/twOSPort.h:54:24: error: unknown type name ‘DATETIME’54 | char twTimeGreaterThan(DATETIME t1, DATETIME t2);| ^~~~~~~~/home/new/thingworx/include/thingworx/twOSPort.h:54:37: error: unknown type name ‘DATETIME’54 | char twTimeGreaterThan(DATETIME t1, DATETIME t2);| ^~~~~~~~/home/new/thingworx/include/thingworx/twOSPort.h:64:21: error: unknown type name ‘DATETIME’64 | char twTimeLessThan(DATETIME t1, DATETIME t2);| ^~~~~~~~/home/new/thingworx/include/thingworx/twOSPort.h:64:34: error: unknown type name ‘DATETIME’64 | char twTimeLessThan(DATETIME t1, DATETIME t2);| ^~~~~~~~/home/new/thingworx/include/thingworx/twOSPort.h:74:1: error: unknown type name ‘DATETIME’74 | DAT
I need a print widget extension which takes "mashup entity" as input. I found some print widgets which takes screenshot of the current page. As scroll bar appears in mashup to see all the rows in collection widget, taking screenshot wont help. So we need a print extension which takes input as mashup, so that we can pass new static mashup in print widget to take print out.
Hi all, I'm currently trying to trace down the usage from some mashups. The idea is to create a service that will be triggered by auto refresh every 60 secs containing (user, datetime, mashupname, current session id). Does anyone know how to obtain the current session id from the opened mashup (see the link below). Is there any session parameter that contains this? e.g. https://thingworx-server/Thingworx/Runtime/index.html?mashup=Templatename&forceClose=true&__enableBMF=true&__fromNextGen=8587fe65-9d60-4cb0-bbcb-7d41a78d2169&features=#master=Mastertemplate&mashup=&forceClose=true&features=
hi @jensc I am trying to do the same thing in SQL , updating data from infotable to MySQL table. Above logic should be written in javascript service? If yes, How can i call below exec SP here? exec [StoredProcedure] @json = [[StringArray]]
Hi, I am using the following REST API: var WindchillData = Things["OData-connector"].getPartStructure({ $expand: "Components($expand=Part($select=Name,Number,Version),PartUse,Occurrence;$levels=1)", ID: "VR:wt.part.WTPart:XXXXXXXX" }); As of now, I can only pass one ID. Can I pass multiple part ids in the ID field? Thanks,
Can we create and modify services inside a Thing through REST API?
I am getting these two Errors while importing print extension in localserver. But same extension got imported in other servers.. Extension Exception: java.io.FileNotFoundException: C:\PROGRA~2\THINGW~1\ThingworxStorage\extensions\temp\OpenPrintButton_fb423bfc-0460-43e2-b53c-0503b46e52ae\OpenPrintButton\ui\OpenPrintButton\images\button-disabled.png (Access is denied) C:\Program Files (x86)\ThingWorxFoundation\tomcat\current\webapps\Thingworx\Common\extensions\chartWidget_ExtensionPackage\ui\lineChart\lineChart.ide.js (The system cannot find the file specified)
Hi all, I've been working with the Reference Lines feature on the Line Charts recently and while I can label them, I was wondering if it's possible to format and apply different styles to each line to help tell them apart at a glance? In my use case, the label's being used to show the value that the line is plotted at, so it'd be helpful if I could apply different colours, etc. to each line to give a little more info to them. I can't see anything in the style properties, but not sure if there's any CSS wizardry or something I'm missing that might help?
Hello Community. For a long time now I have noticed that when using a data table as a data source for a grid, there are some columns that show up in the grid even though you perhaps use a data shape in your service result that do not include these columns. Example: Is there any way of hiding/removing these without adding them to the data shape or having to loop over each row and removing field? Thanks,Jens
Hello, I have one device that uses the Modbus protocol. and Thingworx Kepware server connects that Modbus device and sends data to thingworx. And I have displayed device data in a mashup. In that mashup, I have added an on/off button. when I press the off button on mashup then my device will off How can I achieve this using Thingworx, and the Thingworx Kepware server?
Hi Community,Does anyone knows from where I can do PTC DPM training and does it provides any certification for same ? Thanks and Regards,Sid
Hi all, How to fetch which user has access to which thing in an info table! Thank you
Version : Thingworx 8.2.11-b1077 ( or Thingworx 9 ) I want to add Subscription when user want make property. (This subscription is essential when adding properties.) Thanks for reading.
Hi, We are using Thingworx 9.1.14-b1128 version and I am trying to move data from data table to stream through subscription whenever shift changes will happen but service execution is not happening properly and getting error like this,moveToStream ERROR at line: 55 JavaException: com.thingworx.common.exceptions.InvalidRequestException: Not authorized for ServiceInvoke on AddStreamEntries in AAL.Production.Summary.StreamKindly guide me what kind of permission need to provide for this.
I need to auto refresh or reload a mashup based on the change in the data. The mashup is made up of a data grid (advanced grid widget) that gets the data using a custom service that calls an REST API. Instead of calling REST API periodically to get the latest data and refresh mashup, I need to "subscribe", probably connecting thru websocket, so the mashup gets updated (advanced grid needs be refreshed) by calling service when there is new data available. Any solution for this mechanism? I have seen option of automatically updating/refreshing the grid data using the GetProperties "Automatically update values when able checkbox" in combination with ServiceInvokeCompleted event (which is based on websocket connection to property changes that mashup is subscribed to), but even then I am not sure how to update a property based on change in source data.
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.