Recently active
I am sending a SOAP Request from Thingworx to FactoryTalk Pavilion 8. I run the following script but get nothing back. The ldp in the code below is a tag whose value the SOAP call is supposed to retrieve. Thingworx 9.3 var content ='<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\<soapenv:Body>\<getTimeSeries>\<ldps>\<ldp>MAIN/Line1APQC/L1_QualityCtrl_KPIs/CV___Peel/data::output/Utilization/UnitUptime</ldp>\</ldps>\<starttime>2023-01-06T20:45:00</starttime>\<endtime>2023-05-26T00:10:00</endtime>\</getTimeSeries>\</soapenv:Body>\</soapenv:Envelope>'; var resultXML = Resources["ContentLoaderFunctions"].PostXML({url: "http://xxxxxxxx/integration/services/TimeSeriesPagingService" /* STRING */,content: content,password: 'xxxx' /* STRING */,username: 'xxxx
Like creating a Thing with code
Is there a way to audit how many assets and users I have consumed versus how many I have available? I am on ThingWorx SCP Cloud v 9.1.
So, it seems kind of simple, but I can't get it to work and not sure why.The arrow on Drag to Reorder fields when creating menus, data shapes or whetever else doesn't work... I tried in different ways and in different entities but it just doesn't do anything. Like I click on the 4 direction arrow and try to drag either above or below and when I drop it, nothing happens. When I have to reorder my fields I need to use the up and down arrow, which in situations where I have a large number of fields gets SUPER annoying. Wondering if this is expected behavior or am I missing something here? Thanks, Caio
Hi Team, I have added a new field in datashape.IN Mashup design, from "Configure grid column" property of grid , I have not checked any of the checkbox for "Exclude" and "Show" option.Then on runtime when I right click on grid header the, it is not showing the grid headers list. Expected: ON right click on grid headers it should shoe the grid headers name with checkboxes so user can manually check the box and see the data Please help!Thanks in advance!
Hi All, I installed ThingWorx EDGE C SDK of version 3-0-0-2317. While compiling a code with <twApi.h> header it showing error in SDK itself. /home/new/thingworx/include/thingworx/twOSPort.h:19:11: error: #include expects "FILENAME" or <FILENAME>19 | #include TW_OS_INCLUDE| ^~~~~~~~~~~~~/home/new/thingworx/twOSPort.h:54:24: error: unknown type name ‘DATETIME’54 | char twTimeGreaterThan(DATETIME t1, DATETIME t2);| ^~~~~~~~/home/new/thingworx/include/thingworx/twOSPort.h:54:37: error: unknown type name ‘DATETIME’54 | char twTimeGreaterThan(DATETIME t1, DATETIME t2);| ^~~~~~~~/home/new/thingworx/include/thingworx/twOSPort.h:64:21: error: unknown type name ‘DATETIME’64 | char twTimeLessThan(DATETIME t1, DATETIME t2);| ^~~~~~~~/home/new/thingworx/include/thingworx/twOSPort.h:64:34: error: unknown type name ‘DATETIME’64 | char twTimeLessThan(DATETIME t1, DATETIME t2);| ^~~~~~~~/home/new/thingworx/include/thingworx/twOSPort.h:74:1: error: unknown type name ‘DATETIME’74 | DAT
I need a print widget extension which takes "mashup entity" as input. I found some print widgets which takes screenshot of the current page. As scroll bar appears in mashup to see all the rows in collection widget, taking screenshot wont help. So we need a print extension which takes input as mashup, so that we can pass new static mashup in print widget to take print out.
Hi all, I'm currently trying to trace down the usage from some mashups. The idea is to create a service that will be triggered by auto refresh every 60 secs containing (user, datetime, mashupname, current session id). Does anyone know how to obtain the current session id from the opened mashup (see the link below). Is there any session parameter that contains this? e.g. https://thingworx-server/Thingworx/Runtime/index.html?mashup=Templatename&forceClose=true&__enableBMF=true&__fromNextGen=8587fe65-9d60-4cb0-bbcb-7d41a78d2169&features=#master=Mastertemplate&mashup=&forceClose=true&features=
hi @jensc I am trying to do the same thing in SQL , updating data from infotable to MySQL table. Above logic should be written in javascript service? If yes, How can i call below exec SP here? exec [StoredProcedure] @json = [[StringArray]]
Hi, I am using the following REST API: var WindchillData = Things["OData-connector"].getPartStructure({ $expand: "Components($expand=Part($select=Name,Number,Version),PartUse,Occurrence;$levels=1)", ID: "VR:wt.part.WTPart:XXXXXXXX" }); As of now, I can only pass one ID. Can I pass multiple part ids in the ID field? Thanks,
Can we create and modify services inside a Thing through REST API?
I am getting these two Errors while importing print extension in localserver. But same extension got imported in other servers.. Extension Exception: java.io.FileNotFoundException: C:\PROGRA~2\THINGW~1\ThingworxStorage\extensions\temp\OpenPrintButton_fb423bfc-0460-43e2-b53c-0503b46e52ae\OpenPrintButton\ui\OpenPrintButton\images\button-disabled.png (Access is denied) C:\Program Files (x86)\ThingWorxFoundation\tomcat\current\webapps\Thingworx\Common\extensions\chartWidget_ExtensionPackage\ui\lineChart\lineChart.ide.js (The system cannot find the file specified)
Hi all, I've been working with the Reference Lines feature on the Line Charts recently and while I can label them, I was wondering if it's possible to format and apply different styles to each line to help tell them apart at a glance? In my use case, the label's being used to show the value that the line is plotted at, so it'd be helpful if I could apply different colours, etc. to each line to give a little more info to them. I can't see anything in the style properties, but not sure if there's any CSS wizardry or something I'm missing that might help?
Hello Community. For a long time now I have noticed that when using a data table as a data source for a grid, there are some columns that show up in the grid even though you perhaps use a data shape in your service result that do not include these columns. Example: Is there any way of hiding/removing these without adding them to the data shape or having to loop over each row and removing field? Thanks,Jens
Hello, I have one device that uses the Modbus protocol. and Thingworx Kepware server connects that Modbus device and sends data to thingworx. And I have displayed device data in a mashup. In that mashup, I have added an on/off button. when I press the off button on mashup then my device will off How can I achieve this using Thingworx, and the Thingworx Kepware server?
Hi Community,Does anyone knows from where I can do PTC DPM training and does it provides any certification for same ? Thanks and Regards,Sid
Hi all, How to fetch which user has access to which thing in an info table! Thank you
Version : Thingworx 8.2.11-b1077 ( or Thingworx 9 ) I want to add Subscription when user want make property. (This subscription is essential when adding properties.) Thanks for reading.
Hi, We are using Thingworx 9.1.14-b1128 version and I am trying to move data from data table to stream through subscription whenever shift changes will happen but service execution is not happening properly and getting error like this,moveToStream ERROR at line: 55 JavaException: com.thingworx.common.exceptions.InvalidRequestException: Not authorized for ServiceInvoke on AddStreamEntries in AAL.Production.Summary.StreamKindly guide me what kind of permission need to provide for this.
I need to auto refresh or reload a mashup based on the change in the data. The mashup is made up of a data grid (advanced grid widget) that gets the data using a custom service that calls an REST API. Instead of calling REST API periodically to get the latest data and refresh mashup, I need to "subscribe", probably connecting thru websocket, so the mashup gets updated (advanced grid needs be refreshed) by calling service when there is new data available. Any solution for this mechanism? I have seen option of automatically updating/refreshing the grid data using the GetProperties "Automatically update values when able checkbox" in combination with ServiceInvokeCompleted event (which is based on websocket connection to property changes that mashup is subscribed to), but even then I am not sure how to update a property based on change in source data.
Hello Everyone Kindly someone resolve this issue. We have installed Mathcad 15 and trying to configured license path in user machine. When trying to open application we getting this error FLEXNET LICENSING Error : -5147 Thanks
Is Monaco Editor is available in ThingWorx? Is there any Matric Document and extension file available for the Monaco? If not what are the other Editors that we can install for more user friendly to code in TWX which are supported. Thanks.
Hi Folks, I have a requirement to show some loading message/gif before the mashup loads. I have tabs selection with lazy loading which takes some time to load the content (expected) once a tab is selected and want to show loading message/gif between this tab click and content load and message disappears once the Mashup load event is completed. But I don't see any event/service to trigger this message display before the mashup load. I can see SetGlobalSessionStringValue being invoked but that's an internal resources call and not part of Mashup design. Any idea? TIA.
The below action icons is not in thingworx ,how to implement on grid ,
Hi, I am trying to create a Thing and assigning a value to the Properties that are inherited from the Thing Template, below is the code. Resources["EntityServices"].CreateThing({ name: "testfty" /* STRING */, thingTemplateName: "testfty.TT.testfty" /* THINGTEMPLATENAME */, projectName: "comP" /* PROJECTNAME */, }); Things["testfty"].Enable(); Things["testfty"].Restart(); Things["testfty"].Property1= 32; Things["testfty"].Property2= 56; But I am getting the following error: Error executing service addSensor. Message :: TypeError: Cannot find function Enable in object com.thingworx.things.ConfiguredThing@a3e81bb. - See Script Error Log for more details. Thanks,
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.