Skip to main content
1-Visitor
June 22, 2016
Question

with out refresh button how to generate random values

  • June 22, 2016
  • 4 replies
  • 2023 views

Hi All,

  Can you please explain the code wise, I am new on thingworx...In MashUp generate the values but i want to generate in Properties values in thing

4 replies

1-Visitor
June 23, 2016

Hello Sanjeev Karna, you can use the Javascript's Math.random() method to generate a value for a property.

Let me know if this helps.

dcbb1-VisitorAuthor
1-Visitor
June 23, 2016

Actually My doubt is automatic values changes in composer(inside thing properties) through java sdk.i used like this double compressionRate = 1+20*Math.random(); . it worked where in mashup(Dashboard) through java sdk not reflected in thing properties.when i ran the program the values reflected in mashup not properties. if u idea please let me

dcbb1-VisitorAuthor
1-Visitor
June 23, 2016

I have one doubt

Dashboard.JPEG

See I Have created the Dashboard but here it is Overlapping the gadgets(Dashboard) but my requirement don't change position.How is it possiable or we can't do, Please tell me About dashboard.I saw the some videos they told They can add or remove gadgets, reposition gadgets on the page, and relocate gadgets to other tab like this.