Skip to main content
18-Opal
November 1, 2017
Solved

Identify the types of devices that have accessed Thingworx's MashUps

  • November 1, 2017
  • 3 replies
  • 3225 views

Hello

Can you tell what kind of device you have access to Thingworx?

The reason for this is that I use one user's AppKey to access MashUp.

You can create a user in Thingworx and associate it with Org, then specify Home and Mobile mashups.

However, I always see the same mashup to access the mashup through the user's appkey.

This is different in home and mobile.

So I'm thinking of two things.

The first is to use AppKey at "http: // localhost: 81 / Thingworx / FormLogin /" to show different mashups from home and mobile. Is it possible?

The second is to determine the type of access device and navigate to different mashups at home and mobile. Is it possible?

Or let me know if you have any other ideas

thank

Best answer by supandey

Hi Seonho, sorry I don't have a ready made example but the key here would be to create something like an extension (using ThingWorx Extension SDK) and you can use existing widget as examples to see how the CSS style sheet is called. Also I believe there's some example around using CSS/JS while creating custom extension in the extension development guide.

Will update here if I will end up creating a reference example for this.

3 replies

5-Regular Member
November 7, 2017

Hi Seonho, not sure if i follow your first question "...to show different mashups from home and mobile"? For 2nd one you'll likely need a custom CSS/JS with the current releases I think the easiest would be to create an extension in which you can call your custom JS/CSS script to detect the device and then based on that load specific styling/orientation for the UI

CHASEONHO18-OpalAuthor
18-Opal
November 7, 2017

Good morning Sushant Pandey

can i get some information about JS/CSS?

that about how to custom and how to call..

thank you

supandey5-Regular MemberAnswer
5-Regular Member
November 8, 2017

Hi Seonho, sorry I don't have a ready made example but the key here would be to create something like an extension (using ThingWorx Extension SDK) and you can use existing widget as examples to see how the CSS style sheet is called. Also I believe there's some example around using CSS/JS while creating custom extension in the extension development guide.

Will update here if I will end up creating a reference example for this.