How to automatically switch between 2 mashup in a particular time interval?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
How to automatically switch between 2 mashup in a particular time interval?
I have 2 mashups and i need to switch and display each in a time interval of 5 mins. How can i achieve this in thingworx?
Can this be achieved using Timer? If so, can you please provide some examples? Also please share any other methods used to achieve the same
Solved! Go to Solution.
- Labels:
-
Coding
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Maybe you can put an Auto-fresh widget (5 mins) and a Navigate widget (replace, pointing to another mashup) in the mashup; And in the other mashup, do the same thing.
You can make both widgets invisible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You can use a contained Mashup, combined with a Thing dedicated to serve your Mashup, e. g. "YourMashupServices". The secret is to get a property of Type "MASHUPNAME" which can be bound to the contained Mashup. Two alternatives:
- Add a service to YourMashupServices, it returns an InfoTable, the used DataShape must have the mashup name. Put your 5 minute (and all additional) logic in this service, call the service at whatever preferred interval from AutoRefresh.
- Add a property and take care this property is set correctly, e. g. with a subscription to a Timer Thing. With AutoRefresh call GetProperties.
Honestly, I don't know there are any better solution or which is the better of the two alternatives above, I personally prefer 1. I think this is also the solution provided by the tutorial videos for UI.
Hope that helps.
Benny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Maybe you can put an Auto-fresh widget (5 mins) and a Navigate widget (replace, pointing to another mashup) in the mashup; And in the other mashup, do the same thing.
You can make both widgets invisible.
