Recently active
Hi Team,I am working on POC for which I need to generate simulated values using kepware. Requirement is to simulate production volume in gallons per second for each batch in production plant. Kindly refer screenshot for reference.Tag1 : random number in range 0 and 1 per second Tag2 : Custom Name in word and linking together to generate (Tag should be in string format e.g. "20OZ ABC")Kindly, suggest how I can achieve this.Thanks,Sid
Hi PTC Developer team,I am looking for example code of how to connect to IFS Cloud where I need to use OAuth 2.0 Client from ThingWorx Platform. (I would like to find a way without using ThingWorx Flow) Steps I like to perform:1. Connect with OAuth 2.0 from the platform (looking for example code).2. Extract data using the REST enpoints (this we have already done in postman and will be able to use in TWX when the auth is configured). Link to IFS Cloud documentation: https://docs.ifs.com/techdocs/22r1/030_administration/010_security/005_security/030_authentication/#bearer_token_usage
Dear TW community We would like to connect a smart torque wrench, which can send and receive torque values, to thingworx.If you could can share know how for any of these issues, we would be very grateful:What are the options for connecting these tools (Kepware or direct to TW)Which products are available?Does someone have experience with connecting torque tools?Best wishes Alex
Hello Community, As I have started working more with permissions in Thingworx recently.I was wondering how other people in the community use permissions when setting visibility or disabling widgets in mashups. My current thought is to set some different session parameters when the master mashup loads like;Master loads -> SetGlobalSessionPermissions The service SetGlobalSessionPermissions could look something like this:const userGroups = Resources["CurrentSessionInfo"].GetCurrentUserGroups(); const isAdmin = userGroups.rows.toArray().find(e => e.name === 'Admin'); if(isAdmin) { Resources["CurrentSessionInfo"].SetGlobalSessionBooleanValue({ name: "IsAdmin", value: true, }); } const isViewer = userGroups.rows.toArray().find((e => e.name === "Viewer")); if (isViewer) { Resources["CurrentSessionInfo"].SetGlobalSessionBooleanValue({ name: "IsViewer", value: true, }); } Then in any mashup we could use these session parameters to set visibility or
I use logged property functionality to save history change of the value, very fast to use.On the advanced settings it's possible to set the "data change type" (and thresold if needed) is it possible to disable the "automatic" logging, but trigger it with a service call? It would really useful for example to save the value every 1 hour (timer subscription+service_call), but keep the current live value to change normally. This would save unnecessary data logging ... because for historycal analysis may be a point every 1 hour is enough.
Hello community, I have a use case where the users wants to be able to export an asset structure using either the export widget or by sending an email. In the end for both options I will create a CSV file. From the export widget and from the WriteCSVFile service to be able to attach it to an email. The issue is that I have structures in several different languages.Portuguese, Swedish, French and others. What I noticed was that out of the box, both the export widget and the WriteCSVFile service provide quite strange encoding for some languages: "Associação" for what should've been: "Associação". I found this PTC support article which provides a fix for the export widget by using the "IncludeBOM" option of the widget. However, I can't seem to find a way to do the same with the WriteCSVFile service.There is some setting that is described in this PTC support article.But I don't know if I can or should use UTF-8 for everything as some languages doesn't play w
Hi all,This question seems super basic but I still don't quite understand the significant difference (e.g. in using) Display Field, State Field, Value Field in Drop Down widget.Thanks in advance!
dear expert ThingName already exists or not how to find any services , any script share requirement: I write JavaScript code ,how to compare already thingName present or not
Hi,I have been following article https://community.ptc.com/t5/IoT-Tips/Connect-Azure-IoT-Devices-Part-1/ta-p/833021As per article version of HubConnection Extension should be azure-iot-hub-adapter-extension-4.2.0.4 but I found for thingWorx 9.2 has version "Thingworx-Azure-IoT-Hub-Connector-4.3.0.3". I also notice that azure.iot.conf (below) has just 3 properties but article has 10. I dont know from where read value for "hub-thing-name". When I run "azure-iot.bat" I get "java.lang.RuntimeException: Unable to connect to platform" error.Please help to point to most current article/lab or fix existing one. cx-server {protocol {file-upload-events {// Should the receiver for file-upload notifications be started?enabled = true// Name of the Thing (using template AzureStorageContainerFileRepository) which is associated to the storage container// linked with this IoT Hub (within Azure Portal: Hub > File upload (under Messaging) > Storage container).//// This thing doe
Is TWX Apps - AMU (AMU 2.0.2 and MnfgCommon_Extension 4.1.0) compatible with TWX 9.3.5 in cluster mode (active - active)?
All the authentic sources from PTC here in this community discussion has talked about double click event of the Grid. However, I dont see 'Double click' event exists in TWX 9.3.1 release. Has this event been renamed to something else or removed at all? If it is renamed what is the new name and if it is removed, then why and is there a plan to reintroduce it in future release? Link to post: (doubleClicked event of grid?)by @paic https://community.ptc.com/t5/ThingWorx-Developers/doubleClicked-event-of-grid/m-p/511533#M8565 Hi Lu Wen, you can use the Navigation widget for this. So the Navigation widget itself can bring up mashup in either the same window (replacing), a new tab (new) or as a pop-up both as regular or modal. It also has a Service called Navigate which you can invoke with the Grid double-click event. The Mashup you specify for the Navigate widget, should have Mashup parameters that can be used to pass information in from the Selected row of the data source to the grid into t
We have a thing template that is used as the base template for 30k devices. We just had to make a change to one of the thing shapes that is applied to that template and that shape is part of an external extension. I can validate the extension in Composer in a matter of a few seconds. However, when I try to officially import the extension it will fail after 10-15 minutes with no specific error in the application log. My suspicion is that this is a thundering herd issue with all of those things attempting to be restarted simultaneously. Is there a way to stop the devices, perform the extension import, then throttle the starting of those things in batches?
i wanted to create an MQ connection, but could not find the extended download address
Hello , In thingworx 9.3.8 version i am unable to find the + icon of the datashape where we were able to create the datashape out of the result after execution of any query or script , If i try to create the new datashape then i will not get anything created in the fields definition .Kindly help me out with this as soon as possible , if this issue is not solved then i can;t fetch any data to the mashup. Below is the image where you can make out the difference what the problem is! Regards,Shree
Hi, I am new in Thing Worx I have just completed thing Worx help center module and tried to create 100 user in Thing Worx using services like I created a Thing Template and a Thing the I tried to write script code in services section of Thing Worx Template for creating 100 user and my code is like this way: var params = {name: "UserTemplate", // Replace with the name of your templatedescription: "",thingShape: "GenericThing", // Replace with the name of your thing shapetags: ["UserTemplate"],aspects: {}};var template = Resources["EntityServices"].CreateEntityTemplate(params);var result = "";for (var i = 1; i <= numberUsers; i++) {var name = baseName + i;params = {name: name,description: "",template: template,persistUserData: true};Resources["EntityServices"].CreateEntity(params);result += "User " + name + " created.\n";}me.result = result; but after executing this service I am getting error like:TypeError: Cannot find function CreateEntityTemplate in
java.lang.Exception: Could not bind things: Client binding limit exceeded. How to solve this exception ------------------------ Translated text from traditional chinese to english using google translate on 17th April 2023 at 10:44am IST. Translated by vnamboodheri 這個異常怎麽解決 ------------------------
Hi @Willie Were you able to find any solution for this? I have come across similar issue where multiple entries are being updated simultaneously and UpdateStreamEntry leaks few of the entries. Note: My Stream datashape has String,Number and Infotable type columns.
I started working with CWC for 2 weeks. The assembling execution is very clear, but i didn't understand the purpose of fabrication execution. For example when does fabrication execution end? And in which case do we use this execution?
When trying to convert a process plan using convertProcessPlanFromID we get this error: We think this is because within the process plan is a "longdescription" that has over 4000 chars and the sql tables only allow for 4000 chars max as shown below. We removed this longDescription, and shortened it, and both instances worked so we are pretty sure this is the cause.We then tried to change this from (4000) to (max) but we still get a similar(but not exactly the same) datashape error in thingworx. Has anyone encountered this before? How can we resolve this?
Hi Developers, I have created a master mashup which has 3 buttons and 2 labels which are working fine on Click of View Mashup and properties of these buttons and labels are working fineBut when I try to use master on a mashup and open it on server post deployment, Font size, font weight, border-color, border-radius, etc shows some different Style properties like color gets change and value gets increase.Also, On refresh of mashup, it gets back to desired properties and works fine.When i tried to import same master on some other server, Style properties were coming different. Which is very weird because I just exported and imported it.I used CSS to make it correct but !important is not working as it is throwing disallowed warning for this.I am not able to post screenshots as it is from server for client. Kindly suggest.
Hi. I am trying to use the store and forward feature for sending data from kepware to thingworx. For the value stream, i use influxdb persistence provider. But, after testing, we don't find the stored data on the db. we tried using postgresql persistence provider and it works. Is there any configuration that we need to change for using influxdb? or, is the store and forward feature not supported to use with influxdb persistence provider?
HI Developers, I am facing an issue where Waiting for server response is high for only one service. It is coming 20 ms seconds for same service but then 1.6 seconds on second call when I am passing data back to SQL.I have checked and CPU utilization is normal.Also, many services are getting called before its execution. is it possible that this can cause increase in Waiting for server response time.Kindly suggest.
How to write a service that gives 300 user name in ThingWorx
Hello community, I have a requirement for one customer. The customer would like to export in csv 1 millon of rows.To clarify the use case: Take the data in csv from one year from 100 devices.I'm using the CSV Parser extension (https://support.ptc.com/help/thingworx_hc/thingworx_8_hc/en/index.html#page/ThingWorx/Help/Extensibility/CSVParser.html) & the Data Exportation Widget (https://support.ptc.com/help/thingworx_hc/thingworx_8_hc/en/index.html#page/ThingWorx/Help/Mashup_Builder/Widgets/DataExportWidget.html)but the both using infotables to process the data and im not sure if a infotable is a good element to do this...1. Exist any other method or solution for massive data exportation?2. Exist a way to put in "second plain" the generation of the csv? Thank you in advance,Luis.
Hi,I am using "gridAdvaced" widget in Thingworx (9.0) Mashup.The grid configuration is written in one service.In the service JSON is created with following code to clear the selection of grid : "columns":{ . . . }, "rows": { "selection":"multi", "defaultSelectedRows":(NoOfRecords+1).toString(), "autoScroll":false }, "styles":{ . . . } I want the selected rows to get disselected whenever I change the page/ or data in the grid is changed.The service is triggered on grid view button and page change event.But if I select any row in the grid and then change the page or click the view button again (to trigger the configuration service), the selected row remain selected even if the data in the grid is changed.Please suggest a workable solution ASAP.Thank you in advance.
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.