Recently active
I want to push values to child infotables dynamically using nested for loop, in the above code the "infoname" parameter is the child infotable names which are dynamic. While executing the code i am not getting any issue, but the infotables are showing blank.if i am passing the actual name instead of "infoname parameter" the values are showing in that particular infotable. Is there any way to pass values to child infotables dynamically?
I am logging the service checkpoints using logger.info and calculating the total time using logger.debug functions. But I cannot see these messages in script logs. Where else can I find them?
Hi,I am trying to add rows with new values to a stream.By doing the following: But I keep getting the error above. Can someone please help me understand what the error means and do you know how I can fix this? Many thanks 🙂
Hi team, I want to change the default tooltip format on the Line chart. We have a requirement where we are using the Line chart as a step chart on Thingworx 9.3 version. The default tooltip is "Wed Mar 02 2022 02:59:16 GMT +0530(India Standard Time), Signal:1", which I want to change to "2022-03-03 02:59:16, Signal:1". I came across the Localization tables in TW where you can customize the tooltip. By following this link https://support.ptc.com/help/thingworx/platform/r9/en/index.html#page/ThingWorx/Help/Mashup_Builder/Widgets/CreatingCustomChartTooltips.html I created a new token, now I am getting "Signal:1" on the tooltip, but I am not able to understand how I can customize the Timestamp. The default token is "${label}, ${series}: ${value}". Thank you!!
Hi , After clicking on upload button, Is it possible to disable the Upload button available in file Upload widget.After successful file Upload , Upload button should be Enable. Regards,Hareef
I am getting same error msg in TWX 9.3.1 while using GetText. However I was using it successfully in TWX 8.5.9 to receive JSON output data. But same code not working in TWX 9.3.1. Any alternative to get the result here?
Hi All,I used the REST api /Thingworx/ExtensionPackageUploader to upload a zip extension. The request was successful and I do see the extension in the server where it is running (/ThingworxStorage/extension). But for some reason I cannot see the extension showing up in Composer. Did I missed anything?
I am learning the Button, when it come to step 2, Click and drag the clicked service shown in the drop-down onto a free area of the Mashup canvas, i can't get the ResetInputsToDefaultValues service.the guide displays this:however i get this:
Hello, Everyone. I wnat to use a Proportional chart like as picture. I have completed the tutorial. A proportional chart was created. (https://developer.thingworx.com/en/resources/guides/display-data-charts/ddc-configure-charts) But, If I unchecked "Single data source" It doesn't work.I would like to show the operating time of the equipment at a specific time in a proportional chart.How can i do ?Please provide it. If you have a sample program. Best regard,
When using any data change input to Subscription to update a same property, say a JSON or an INFOTABLE, will that work synchronously for any given remote things. Because if all the property change in a very short span of time(sometimes no difference in time at all), will it overwrite the JSON or INFOTABLE? What is the best way to do the modelling in this case?
Hi, When we run the below script, we are facing an out of memory issue and Thingworx tomcat service restarts automatically. we have run the below script manually from composer with execute option in a batch of 25 & 50 vin's in input array, the scripts executes and prints the final array in the script logs but internally it is causing out of memory issue, Can any one please let us know what is the issue in this script and why this is creating out of memory issue becuse we do not see any errors in the logs also. Script: serviceName = "updateDeviceNum";//sample input format :{ "vin": ["123456786", "456782354"]} var inputArrayVin = inputVIN.vin;//logger.info(myName + " inputVIN " + inputVIN);var inputLen = inputArrayVin.length;logger.info(myName + " inputLen " + inputLen);var arValueUpdated = [];var arSkipped = []; for (var i = 0; i < inputLen; i++) {//calling the getAsset using VIN to get deviceIDvar getAssetByVINURL = "https://**********" + inputArrayVin[i];var apiPara
I'm installed ThingWorx Foundation more when I get on the screen I can not proceed already tried all bank password , bank user etc .
In slider widget, accuracy in selecting value is low. Any other widget available to select range or any extension available ?
Any Documentation available for project portfolio management?
Hello, I am sending data to my Things. Those data are in an infotable like this:my lastSession json looks like this: However, sometimes I will send the same data but my lastSession will change but keep the same ID.I want to log all my data. However, when a lastSession comes with the same ID as the old one, I want to replace the data and not log them.I tried to PurgeSelectedPropertyHistory but it did not work. Does anyone have an idea ?
Hi, community, I have been spinning my wheels with getting the differenthe ce between two dates and time.The aim is to find the duration between the time a device is turned off and when that device is turned on. I have two different services that output a datetime value. One service outputs the time the device is turned on and the second service outputs the time the device is switched off.I then created a third service that calculates the difference between the two times. Below is what I wrote in my third service:var date1 = parseDate(onTimes_Input, " dd-MMM-YYYY HH:mm");var date2 = parseDate(offTimes_Input, " dd-MMM-YYYY HH:mm");let result= dateDifference(onTimes, offTimes); when I execute the above, I get the following error: Error executing service getDuration. Message :: Invalid format: "1661387400000" - See Script Error Log for more details. Does anyone know what this could mean?Best RegardsJay_nisaa 🙂
How to attach certificates to perform certificate-based rest calls using the content loader function?
Hello,I am creating a csv file in the file repository for a historical data which is more than 100K rows and to be downloaded by the end user. 1. Is there a way where I can apply a compression on the file to be downloaded.2. If 1 approach where i am creating a file and getting the link from "GetFileListingWithLinks" of the file repository is not correct , what would be the better approach to achieve the file download. Thanks,Sunay
In the above screenshot i am getting value for propName in line 2 , but while using same value in (nested loop) line 3 getting issue as "org.mozilla.javascript.UniqueTag@5c998613: NOT_FOUND". But while using actual value instead of propName in line no 3, its working fine. Please let me know if any issue is there in code. Thanks in advance.
Thingworx/Groups/ getting html response how can i get json response by using this api in thingworx
Hi, I am doing a postJson method in ThingWorx. But it is not returning the response body. When I execute the method in swagger, it is returning the response body but TW is returning just the headers. It is not returning like swagger but I wanted to read the response exactly like Swagger. How can we achieve this use case? Swagger: TW:
Hello, I need to create a secured MQTT connection between my broker and thingworx.To do this I created certificate. The certificate is working fine when i use It with other program to test it.However, after following this guide: https://www.ptc.com/en/support/article/CS0246701I still have an error: OpenSSL Error[0]: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error Does anyone have any idea on how to fix this ?
How do you get data in the ptcspropertydisplay widget to display in two separate columns? The property from it's value. In propertydisplay widget it looked like: Now in the ptcspropertydisplay widget it looks like:
Hi, Can anyone explain how to store db data in data tables and how to retrive it in the mashup thankskeerthi
For certain conditions, how to terminate the code without throwing error.
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.