Recently active
I have to develop a solutions that involve supervision of the model performance over time, and compare the production model against other models with different algorithms or trained with different data. The flow could be analogous to the below image, were the Production Model is the main one, but if any of the other models gets better results, e.g. Challenger 3 then it takes the position as the new champion.
Hi, I'm having trouble fetching the value from the service parameter, I have this in my code [ThingworxServiceParameter(name = "Name", description = "Name", baseType = "STRING")] string name but when the value Is sent from thingworx, I don't get the value in my application
Hi All, I follow this guide(https://developer.thingworx.com/en/resources/guides/connect-kepware-server-thingworx-guide/bind-industrial-tag) to step 4 In step 4, I found that the Industrial Thing I created was not connected to Kepware Server. According to the Guide, I have set the Base Thing Template and Implement Shape of Industrial Thing The thing used to connect Thingworx and Kepware server is also successfully connected. I want to know why I operated completely according to the guide, but the industrial thing shows no connection. How should I solve this problem?
I have a testUser inside a userGroup inside myOrganization I configured SMTP Mail Server for Outbound Messaging (using outlook) To test Service I use SendMessage method. It works fine My problem comes after using reset password inside myOrganization login form. I get the following messages: Warn User [testUser] is a member of [myOrganization] and has confirmed their personal information - sending reset email SuperUser S.c.t.s.a.ThingworxFormAuthenticator https-jsse-nio-8443-exec-56 then Error Error sending email to the following invalid addresses: null S.c.t.t.m.MailThing https-jsse-nio-8443-exec-56 and finally Error retrying to send an email to valid recipients after invalid ones caused a failure, or failure to send an error email about this event: 501 5.1.7 Invalid address_ S.c.t.t.m.MailThing https-jsse-nio-8443-exec-56 &
I am trying to conditionally style a checkbox widget, box background when both the box and any other part of the checkbox widget are hovered over. However I am unable to override the default background color. Through Google inspection tool I can disable the background color being applied and my styling apply as intended. How can I override the defaults using custom CSS? A theme with the custom css and a checkbox mashup have been attached for recreation. As well as pictures showing current behavior. Note, screen shots did not capture cursor hovering over checkbox label.
Hi , after bindings done to Grid in Mashup. i wanted to remove one field from Datashape which is connected with Grid. anyway i removed specific field from DataShape but facing below issues.. 1. Still deleted fields are showing in Grid. 2. Not showing at 'Configure Grid Column' of grid . but Showing at Grid in Composer or Runtime. FYI-I tried reloading the page and reloading the bindings. Thanks
Hi, Does anyone have a code example for connecting to thingworx with the .net sdk? I'm new to thingworx and the documentation is kinda of confusing. Just looking for a example that shows how the connection work.
Hi Team, Hope everyone is doing well. I would like to know how will I throw my custom event each time a user logs in and logs off ThingWorx. Thanks in Advance.
To create a user programatically there is this script: var userParams = { password: somePassword, name: someUserName, description:someDescription};Resources["EntityServices"].CreateUser(userParams); How to include user fields like Name, email and telephone programmatically?
hi, I need to controll the length of infotable, but it doesnt work. tried: if(infotable.getRowCount()==1){ .........} How do you do?
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.
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.