Recently active
Hi,This the code that I'm using to convert base64 code input into an image output, I have gathered this code from the community itself but it is not working for me... Showing No Image Available error.var input;var binaryString = "";for (var i = 2; i < input.length; i += 2) {binaryString += String.fromCharCode(parseInt(input.substr(i, 2), 16));}var result = base64EncodeString(binaryString); @Constantine
Hello Experts, I retrieves information in json format using rest api service and i need to show the result in the mashup!, any idea... I created a property of type info table called OPJ that has a datashap with few attributes that i need to retrieve from the output(json) and i use the following code: let params = { headers:{ "Content-Type":"application/json","Accept":"*/*","Accept-Encoding":"gzip, deflate, br","X-HP-HMAC-Authentication": "***********","X-HP-HMAC-Date": "*********","X-HP-HMAC-Algorithm": "SHA1"} /* JSON */,url: "********************************" /* STRING */,content: {"aaa-org-ids" : ["ed8eb542-5a5e-46b0-80bd-a1768cc43da8"],"start" : "2021-05-03","end" : "2021-05-09", "active" : "false"} /* JSON */, }; // result: JSONlet dj = Resources["ContentLoaderFunctions"].PostJSON(params);logger.warn(dj.length); for(let i=0;i<dj.length;i++){me.OPJ.AddRow({printed_date:dj.data[i].printed_date,build_unit_serial_number:dj.data[i].build_unit_serial_number, proces
Hello everyone, i want to use the collection widget for showing the same mashup with the same service but different service parameters. I did this tutorial here: https://developer.thingworx.com/en/resources/guides/collection-widget-how-to/create-thing-cwht But here it is using the service once and saves the results in to a infotable where each row and the corresponding columns represent one mashup in the collection widget. I am not saving the data to the infotable. I want to show timeseries data to which will not be possible if the data is only provided by an infotable. I am using multiple ones. One for timeseries data and one for some statistics.
I like to implement QR code reader on mashup so It should get user's QR, timestamps and other few string prop as a input. Someone please let me know if there is any widget for QR code or please suggest me the best method to achieve this. Thanks in advance.
I want to achieve a custom(or inbuilt) queue processor. The objective is to have a admin user who has Write permissions to write to a stream. Other non-admin users can queue write operations which later get processed by the admin user. I tried the same using event subscription and scheduler but the security context is passed on to the final service call and as the final service doesn't have the permissions set for the non-admin users, they are not able to execute. I hope my understanding of using the internal event queue is correct. Is there a way to use the event subscription queue be processed by a specific admin user? What would be the best way to implement and manage a queue using a single admin user who performs the write operations? Is there any option that the platform supports already? Note: For custom queue implementation concurrency, synchronization could be potential issues.
Can I put one stream data into two persistence provider as replica?i would like to stream data into two persistence data storage (one for master, one for backup or testing)Can I ?
Hi, We're going to implement a download function which is triggered from the server side , the code would like: String headerKey = "Content-Disposition"; String headerValue = String.format("attachment; filename=\"%s\"", downloadFile.getName()); response.setHeader(headerKey, headerValue); // obtains response's output stream OutputStream outStream = response.getOutputStream(); byte[] buffer = new byte[4096]; int bytesRead = -1; while ((bytesRead = inStream.read(buffer)) != -1) { outStream.write(buffer, 0, bytesRead); } inStream.close(); outStream.close(); The question is : how can I get the HttpServletResponse with Java SDK ? Regards, Sean
Hello, I have this scenario wherein I have to configure the Thingworx Directory Service settings programmatically. So, when a user specifies a setting from the UI, I need to update it into the respective configuration table on the Directory service. However, I need to call these services from inside another thing. When I invoked the services from another thing, all services from my Directory Service entity errored out with - Error executing service <serviceName>. Message :: ReferenceError: "DirectoryServices" is not defined. For example even the GetConfigurationTables services gives an error - // result: INFOTABLE dataShape: "EntityList"var result = DirectoryServices["Test.ActiveDirectory"].GetConfigurationTables(); Is this the default working for directory services in Thingworx or is there anything I am missing ? Any help is highly appreciated. Thanks! Note: Thingworx version is 8.5.6.
I am running the following code in the Expression, but there is no output from the Expression. Does QueryNamedPropertyHistory work in Expression? DataTable = Things["ThingName"].QueryNamedPropertyHistory({ propertyNames: { "rows": [{ "name": "PropertyName" }], "dataShape": { "fieldDefinitions": { "name": { "name": "name", "aspects": {}, "description": "", "baseType": "STRING", "ordinal": 1 }, "description": { "name": "description", "aspects": {}, "description": "", "baseType": "STRING", "ordinal": 2 } } } } /* INFOTABLE */ , maxItems: undefined /* NUMBER */ , query: undefined /* QUERY */ , maxDataItems: 500000 /* NUMBER */ , startDate: startDate /* DATETIME */ , endDate: endDate /* DATETIME */ , oldestFirst: true /* BOOLEAN */ , dataQuery: undefined /* QUERY */ }); if(DataTable.rows.length === 0) { Output = "No Data"; } else{ Output = " "; } Thanks,Shashi.
I need to capture logged in user id(through session) before mashup loads.
Hello Experts, I am using the PostJSON of ContentLoaderFunctions to retrieve some data form 3rd party application and i have this error as output: "error-info": "Fail to parse request json","http-status": 400 below the code of my snippet: let HmacHeaders = {'Content-Type':'application/json','Accept':'*/*','Accept-Encoding':'gzip, deflate, br','X-HP-HMAC-Authentication': '****************************************************','X-HP-HMAC-Date': '2021-05-26T12:31:19.292Z','X-HP-HMAC-Algorithm': 'SHA1',};let Hmacurl="https://*************************/api/3d/v2/jobs/_search-by-orgs";let Hmacbody={"aaa-org-ids" :"**********************************","start" : "2021-05-03","end" : "2021-05-09","active" : "false" }; let params = {headers: HmacHeaders /* JSON */,url: Hmacurl /* STRING */,body:Hmacbody};// result: JSONlet result = Resources["ContentLoaderFunctions"].PostJSON(params); and as output i have while i am expecting data in JSON format: {"headers": {"Accep
Hi there, If I have a long text that needs to be displayed in the grid, can I display it in a new line? Thank you! Just like this: Best Regards, Chason
I have used Collection which is having seven or more mashups. Each mashup is considering as a individual department. If one department user clicked any other department mashup, it should show "permission declined". The user should be allowed only in his department mashup in collection. All these dynamic activities should be done based on the datas stored in single DataTable. Is that possible? And how to do it?
I'm using a collection widget and have a thing with a InfoTable property which holds different fields to be used in a mashup. Some of these fields have as datatype InfoTable, but when I connect with the collection widget and with getproperty the InfoTable fields doesn't seem to work.All other numeric and string fields work normally, updating dinamically. Only the InfoTable ones seem to have a problem. Is there a way to use InfoTable as parameter into a collection widget? I followed this guide to make it work: https://developer.thingworx.com/resources/guides/collection-widget-how-to screenshots of both my thing with infotable property and mashup with the collection: As you can see the grid does not show the inftable values.
Hello everybody! I have the following interaction scheme: According to this logic, whenever the value of U in expression becomes greater or less than a certain number, the image becomes either visible or invisible. But it's happening only if I refresh the mashup by clicking "Reload". I need to do the same using the Autorefresh widget by checking the "AutoRefresh" for real-time updating. Having linked it to the service responsible for changing the U value, which is then passed to the expression, I see that in the grid, after the set interval of autorefreshing, the U value is changing - and the image becomes visible along with it. But, when the value of U becomes less than the border value and the image should disappear, it doesn't happen. The image keeps hanging until I click "Reload" in the mashup. If I binding the Autorefresh widget to the mashup Refresh-event it's not helping too.
Hello, like you can see in the picture below the chart widget is connection the dots wrong. It seems like it does not recognize the order by datetime/timestamp. When i update the chart sometimes its correct and then its wrong again. I am creating the data through a selfwritten service. See below: function CalculateRMS(arr){ let Squares = arr.map((val) => (val*val)); let Sum = Squares.reduce((acum, val) => (acum + val)); Mean = Sum/arr.length; return Math.sqrt(Mean); } function mean(nums) { return nums.reduce((a, b) => (a + b)) / nums.length; } function getCol(matrix){ var column = []; for(var i=0; i<matrix.length; i++){ column.push(matrix[i].value); } return column; } function getTimes(matrix){ var column = []; for(var i=0; i<matrix.length; i++){ column.push(matrix[i].timestamp); } return column; } function getTimeStamp(matrix,name){ var column = []; for(var i=0; i<matrix.length; i++){ column.push(matrix[
Unlocking the Power of Industrial Data Presentation by Mike Jasperson, VP of the IoT Enterprise Deployment Center his video presentation was performed at the Digital Transformations in Manufacturing conference of 2021, hosted by Enterprise Digital. In this presentation, Mike Jasperson goes over the benefits to modernizing and consolidating access to time-stamped data that is ingested from equipment and sensors into a central location like ThingWorx. Moving away from monolithic, legacy, and siloed systems, and towards more agile solutions, has never been more critical in order to increase machine, operational, and business efficiencies while also opening up visibility into data systems and infrastructure deployments. This video partners with InfluxData to help customers extract value from IoT data systems, maximizing both performance and operational capabilities of their monitoring systems. To stay competitive in the IoT market, it's important to review the best prac
I am not able to add the Hyperlink or URL in the WiKi text area in the Thingworx Navigate which can navigate me to the another page or can navigate to the other child wiki.
Hi , Need to use SCM 1.0.1 for CSDK C SDK 2.2.8 and 2.2.9 as per link . But SCM version 1.0.1 is not found in https://support.ptc.com/appserver/auth/it/esd/product.jsp?prodFamily=TWS . ( SCM-Extension-1-0-0-872 (2 MB) is available) Please help me with the download link for SCM version 1.0.1 for CSDK. Thank you !!
In ThingWorx 9.1 I have a Dropdown widget with MultSelect enabled. When I view the mashup and select the Dropdown, the "Select All" text at the top is yellow, hard to see with a white background. I want to change the color of that text but I can't find a style that changes it. I expect I need to use a CSS ID, but I never have much luck finding those. Any ideas?
Dears, My Thingworx version is 8.5. I have a very long mashup. Yesterday, the scroll bar was displayed normally and I can scroll down, but today there is no scroll bar, so I can’t see the bottom page. I tried to replace browser and restart the server, but nothing is resolved. What is causing this and how can I restore it? ,Thank you,
Hi All, While using advanced grid, I have changed the order of the grid columns in "Configure Grid Columns". But while viewing the mashup, the order is not changing. This happened after I sorted the output infotable based on one column using a service and passing it on to the grid. Have anyone faced the same issue? Can any one help on this? Regards,
I am beginner to Thingworx .Net SDK. Is any mechanism to identify and alert file name to thingworx or Edge, once new file created or generated in Virtual Directory in client. If no direct built-in functions or services, kindly let me know the best resolution to achieve it. Thanks Gopi
Hi, I am displaying some properties(decimal values) in property display widget. I need to restrict the values after decimal to 2 digits. How to achieve this in property display widget?
Hi How to read and write values from Influx DB through thingworx. Thanks 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.