Recently active
Hi all, I'm using the Menu bar widget for navigation in my Thingworx app. I'd like to implement an "Info"-button into the secondary navigation items of the main menu, which would navigate the user to mashup providing info and help related to currently selected mashup. It would be nice to have this as modal popup over the currently selected mashup.For example in the pic below, user has selected the "Factory" mashup from the Primary Navigation items, and it is open in the view:Now when user clicks the "Info"-button, I would like to have the "Info"-mashup modal over the selected factory mashup in the view area. Is such functionality possible to implement with the current menu bar in Thingworx 9.3.3? I know I can implement it in by including the info button and a navigation function into each mashup, but it would be nice to have it in the master and menu bar instead.
How to set minimum row height for adv grid widget?
Good afternoon! The mashup needs to be displayed at all times. But with a frequency of 1 week, it steadily stops displaying data or a page with an error opens. It would be possible to configure the update of the tab itself (f5), but in this case, the selected item in the drop-down list would have to be manually selected again.How can I analyze the error and try to fix it?
I am trying to convert json code to xml code. I am getting errors for the following code. Help me to fix it. js code: try{let JSON = "{College:{entry: [{ Student : 'shiv', Roll_No: 12},{ Student : 'yadav',Roll_No: 56}]}}";let result = OBJtoXML(JSON); function OBJtoXML(obj) {var xml = '';for (var prop in obj) {xml += obj[prop] instanceof Array ? '' : "<" + prop + ">";if (obj[prop] instanceof Array) {for (var array in obj[prop]) {xml += "<" + prop + ">";xml += OBJtoXML(new Object(obj[prop][array]));xml += "</" + prop + ">";}} else if (typeof obj[prop] == "object") {xml += OBJtoXML(new Object(obj[prop]));} else {xml += obj[prop];}xml += obj[prop] instanceof Array ? '' : "</" + prop + ">";}xml = xml.replace(/<\/?[0-9]{1,}>/g, '');return xml;}}catch(e){logger.error("jsCodeToConvertJsonToXml: error is "+e+" in linenumber "+e.lineNumber);} errors: 1. error is TypeError: OBJtoXML is not a function, it is undefined. in linenumber 3. 2.
Hi,We have Postgres as an Model DB, InfluxDB as an Time series DB. Will it be possible in a Thing, few logged properties can be stored in the InfluxDB and few on Postgres ?Because we run a retention policy every month for Influx DB, which purges Data on Monthly basis, there are few properties that are getting logged to be excluded from the Purge.So if I assign a Thing with ValueStream of InfluxDB everything gets purged, there are few properties that should be excluded for client data Analysis.Thanks,
Hi, I'm storing less frequent data in configuration table, however when i ty to fetch the data using getConfigurationTableRow service only one value is fetched that too old value. How to fetch latest value from configuration table. Is there any way that updates value of config table instead of adding more data,Thanks,Adarsh
How to convert infotable datas to xml in thingworx . Kindly tell me any rest call or js code or extension.
how to read and write .xml files in thingworx
Hi everyone. I have created a service that adds stream entries to only a few specified columns if a certain boolean condition is true. If the boolean condition is false then the service updates the stream entry by filling in the rest of the column values. I passed the infotable that holds the values and a current streamID to the updateStreamEntries snippet. This does not work, I keep getting the error : Invalid number of values provided to UpdateStreamEntry. How can I fix this?
I see that the maximum rows handled by INFOTABLE is mentioned as 500. Can we store more than 500 rows Infotable in a variable? like if we call a service say GetImplementingThings() inside another service which returns more than 500 rows, can TWx still can iterate through that INFOTABLE variable and carry out rest of the process say inspect or update a property? What is the best way to handle
Hi all, I want to reset all the properties of a thing to respective default values, how can this be done? Thanks,Sujith
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,We are trying to communicate a Allen-Bradley ControlLogix Ethernet with a Allen-Bradley ControlLogix Server Ethernet but without success, could you provide us an project example or give us some ideas of how to do that?We are using a ControlLogix running both Master and Slave in the same computer, and what we did were:1 - Create a Allen-Bradley ControlLogix Server Ethernet, create a LogixAddress and create an item pointing to the LogixAddress.2 - Create a Allen-Bradley ControlLogix Ethernet and set to connect to my computer IP. Create an item pointing to the LogixAddress.3 - Run the OPC Quick Client and we see that the Master tag has quality bad, follow image: Best Regards, Eduardo.
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 ?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.