Recently active
Hello community, good to be here, my question:Use-Case: I have a DataTable with orders. A service (receiveNewOrder) is looking for new free orders for my machines. The machines are simulated with the Java Edge SDK. Issue: Every time I run my Application which ist providing all machines in state 'IDLE' with new orders I get the following ERROR when trying to set machine (thing) property (CurrentOrder) to new order (String):2020-08-11 12:57:00.346+0200 [L: ERROR] [O: S.c.t.d.e.DSLScript] [I: ] [U: Administrator] [S: ] [T: TWEventProcessor-4] Asset_M_011001.receiveNewOrder - Error [Line: 16]: JavaException: java.util.concurrent.TimeoutException: Timed out APIRequestMessage [requestId: 13, endpointId: -1, sessionId: -1, method: PUT, entityName: *xxxx_010719, characteristic: Properties, target: CurrentOrder] logger.debug(me.name + ".receiveNewOrder started."); try { var orderStatus = "FREI"; var sortColumn = "Erdat"; // result: INFOTABLE dataShape: "sapOrders" // FY
Hi We are trying to update data table during run time and we are encountering the following exception some times. We observed like after 3 or 4 continuous operations we are getting this error. java.util.concurrent.ExecutionException: java.lang.RuntimeException: com.thingworx.common.exceptions.DataAccessException: [1,018] Data store unknown error: [Error occurred while accessing the data provider.] The following is the data table structure snippet, we have 2 string columns as primary key and the max number of records are less than 50 in this data table. The following is the service we are using to update the data table. var params = {tags : tags,source : me.name,values : values,location : location}; // AddOrUpdateDataTableEntry(tags:TAGS, source:STRING("me.name"), values:INFOTABLE(IIOT_EN_DT_ResponsiblePerson), location:LOCATION):STRINGvar id = Things["IIOT_EN_DT_ResponsiblePerson"].AddOrUpdateDataTableEntry(params); It is a show stopper for us n
I have a drop down widget which is dependent on another drop down. So when I select the first drop down the second drop down get's populated respectively.My requirement is that when my second drop down is populated if the list has only one value(i.e 1 row) it needs to get auto selected, but if it has more than 1 value in the list I don't want the auto select option.So I cannot use the "Auto select first row" property as it will not satisfy in case I have a list with more than 1 value.Is there a way to configure my drop down such that it get's auto populated only if 1 value is present in the list.
Hi @nsampat @Elena2 , Has this probelm been solved? I probably meet the same problem. The Analysis Jobs cannot work any more but other modules of Analytics are all OK. we donnot know how to solve this probelm. we will appreciate it if you have some good ideas.
Hi TWX Gurus, I have a typical problem-I would like to pass variables from grid(which is on one mashup screen) to another mashup, my grid is populating from database. 1. I have tried creating variable in both the mashup & assign the variable from DB service to navigation panel/as well to local Mashup variables property. But when double click- new mashup is coming but not able to passing values. 2. I tried with creating one thing service and assign the values to property- but that is also not working. Can anyone please tell me - which event to fire to pass the variable to other mashup as well how to navigate. Thanks in advance! ~PC
Hi , I need to implement a java extension to export infotable, it would be feasible if writing the data via FileRepository and download it and then delete it , but it's a little bit tedious. Is it possible to return a servlet OutputStream ? Regards, Sean
Hi, I am trying to convert infotable data into JSON. The fields order available in InfoTable is not same in JSON string. How to reorder the fields in InfoTable? Fields not follow the infotable order in JSON. How to resolve this? My Infotable: Converrted JSON: {"rows":[{"Description":"Demo","AddedOn":1596949613100,"AddedBy":"Administrator","TemplateFile":"Report.xlsx","Template":"Report Demo"}],"dataShape":{"fieldDefinitions":{"Description":{"name":"Description","aspects":{"isPrimaryKey":false},"description":"","baseType":"STRING","ordinal":2},"AddedOn":{"name":"AddedOn","aspects":{"isPrimaryKey":false},"description":"","baseType":"DATETIME","ordinal":4},"AddedBy":{"name":"AddedBy","aspects":{"isPrimaryKey":false},"description":"","baseType":"STRING","ordinal":5},"TemplateFile":{"name":"TemplateFile","aspects":{"isPrimaryKey":false},"description":"","baseType":"STRING","ordinal":3},"Template":{"name":"Template","aspects":{"isPrimaryKey":true},"description":
Hello everybody, has anybody successfully tried the "new" way of developing thingworx extensions based on the twx_wc_sdk? I followed this guide (http://support.ptc.com/help/thingworx_hc/visual_sdk/) up to the step: npm install twx-wc-sdk/ptcs-library This gives me an error: npm ERR! Error while executing:npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t ssh://git@github.com/twx-wc-sdk/ptcs-library.gitnpm ERR!npm ERR! Host key verification failed.npm ERR! fatal: Could not read from remote repository.npm ERR!npm ERR! Please make sure you have the correct access rightsnpm ERR! and the repository exists.npm ERR!npm ERR! exited with error code: 128 Seem the repository at github is not valid. Greetings Andreas
Hello, We have added a time series chart widget in our mashup and configured it to see tool tips values (EnableHover property checked), but we don`t see the values when we hover over a marker. Has anyone had the same problem? We are using Thingworx 8.5.2. Thanks in advance,
Hi Team, I have multiple polar H10 heart rate Fitness band, So i want to get this bands data in the thingworx,How can i do that? I have no idea how to get this data in the thingworx i am totally blank.. Polar h10 video link for your help. please suggest the way.
I am currently trying to invoke a service but my params are not being set for some reason. This is the java code... //// Invoking a service on a Thing/////////////////////////////////////////////////////////////// // A ValueCollection is used to specify a service's parametersValueCollection params = new ValueCollection(); params.put("name", new StringPrimitive("testThing"));params.put("description", new StringPrimitive("Here is thing created from a service via Java."));params.put("thingTemplateName", new StringPrimitive("RemoteThing")); // Use the CreateNewThing service from SimpleThing_1 to create a new thing.// This service's result type is NOTHING, so we can ignore the response.result = client.invokeService(ThingworxEntityTypes.Things, ThingName,"CreateNewThing", params, 5000); And the service has this javascript within it... var params = {name: name /* STRING */,description: description /* STRING */,thingTemplateName: thingTemplateName /* THINGTEMPLATENA
Hi everybody, I am not able to set the Cache Method of a Remote Thing Template created via services. I am using the AddPropertyDefinition function. Since there is no option to set cacheTime directly, I included it in the remoteBindingAspects option, but I am not sure the syntax is correct or whether I can even do that or not: var remoteAspects={ cacheTime:-1, }; var params = { // defaultValue: undefined /* STRING */, remoteBindingAspects: remoteAspects /* JSON */, // description: undefined /* STRING */, // readOnly: undefined /* BOOLEAN */, type: me.PressProps.rows[i].DataType /* BASETYPENAME */, remote: true /* BOOLEAN */, // remotePropertyName: undefined /* STRING */, // timeout: undefined /* INTEGER */, // pushType: undefined /* STRING */, // dataChangeThreshold: undefined /* NUMBER */, // logged: undefined /* BOOLEAN */, name: me.PressProps.rows[i].PropertyName /* STRING */, // pushThreshold: undefined /* NUMBER */, dataChangeType: "ALWAYS" /* STRING */, //
Come faccio a scaricare i dati storici del sensore nell'applicazione Creo Product Insight da un server ThingWorx. Grazie
I created a PMML model with R and want to import it into Thingworx. In the Analytics Manager I created an Analysis model but I can't enable it because it's not ready for testing. I do I make it ready for testing?
Hi, Is there a particular guide or series of steps that we have to follow while upgrading from Thingworx 8.4.5 to 8.4.11. I mean is there any DB upgrade script or something else, or I can just replace the WAR file. I am using MSSQL as persistence provider. I know that when upgrading from Thingworx 8.4 to 8.5 we have to follow certain steps, which includes running DB update scripts and some backup, but I was not able to find any such information when I want to upgrade from 8.4.5 to 8.4.11. Thanks in advance Aditya Mittal
Is there a way to check the parent user group of a user group? Is there such a service?
Hi I wanted to know if there is way I can get the data provided in different widgets in a mashup as a group or like an infotable into my service. If I make this a bit clear, let's say I have a scenario where I have a mashup where the user will be providing details of the item they have purchased. I am having 2 text boxes (name of the item and price) and I also have a drop box to get the category the item belongs to. If the user have brought 2 items then there will be total of 4 text boxes and 2 drop boxes. If I am giving the values from these widgets directly to my service then I will have to limit on the number of items the user is buying but I need this to be dynamic.For this purpose I gave a grid where I had written a service to make blank or empty rows depending on the number of items (like if there are 2 items then the grid will have 2 empty rows). This grid was an editable grid too. But the issue then was that I was not able to give a drop box inside a grid. I also t
Hi, I need to use a different font family than the listed above in the style property of a themeable widget. Where can I add the value? I tried with custom CSS but not coming out good as expected, especially in checkbox label. Regards, Janakiraman P
Hello, I've the requirement like, in event chart its shows both start and end time which is able to bind.Attached screen shots for reference.In that screen shot it shows only start time but we need to end time also.
Hi Folks, @PaiChung @slangley Text Field widget is not focusing for latest Chrome browser update. It was running fine when used Chrome Version 79.0.3945.130. But recently I updated to chrome version 83.0.4103.116 and all the Textfield widgets have stopped focusing when user start typing into it. Cursor "|" is not visible upon focus. Can somebody please confirm whether its a bug in this particular Thingworx version? or there is any work around available. *TextArea widget is working fine with latest version of Chrome browser. Note: I'm using ThingWorx 8.5.4-b222
Hello guys, Let me expose some issue that occurs during learn step on Learn Path module. Exactly in the guide called “Use the Edge MicroServer (EMS) to Connect to ThingWorx”. In this guide the EMS can`t connect to the server. Appear code 201 error. I tried change the log level, changed to DEBUG. Like this link expose. https://community.ptc.com/t5/ThingWorx-Developers/ERROR-Connecting-WS-EMS-on-Raspberry-Pi/td-p/569910 Became the same error. I noted a little strange difference between the number of folders that appears in the example… Maybe it would be the problem? Or other procedure. Thanks. Att. Diego Tavares
I have recently been doing some things in the Java SDK tutorial and I have gotten to a point where I can connect to the thingWorx hosted trial server, create a remoteThing, and bind it to a Thing that has been created in ThingWorx with the same name. What I am trying to do now is either.. A) add a property via Java code and then add values to it, this way I can update these every n seconds. or B) Simply add values to a property created in ThingWorx already. For some reason when I use this code.... // Writing a property/////////////////////////////////////////////////////////////// LocationPrimitive location = new LocationPrimitive(42.36, -71.06, 10.0); // This will set the CurrentLocation property of the Thing to the GPS// coordinates of Boston, MA.client.writeProperty(ThingworxEntityTypes.Things, thingName, "CurrentLocation",location, 5000); I get this error... com.thingworx.common.exceptions.GenericHTTPException: Entity TunnelExample does not exist or is not yet
Hi, previously in 8.3 i have used a frame layout widget but after migrating to 8.5 the only one frame is visible in runtime.
how to select default tab in thingworx mashup?
This is related to consumption of external REST APIs from Thingworx. I am trying to use Content Loader Services for this. The problem is that external system uses OAuth 2.0 instead of basic authentication. So that means to consume any API we need to pass bearer token instead of Username password to get response each time. And to generate the Beaer token there is Auth API, but to consume that we need to pass username and password externally( login page comes up). I just wanted to understand if there is a way in Thingworx we can achieve this. Or any other examples you guys have tried accomplishing OAuth 2.0 mechanism.
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.