12 Replies Latest reply on Jun 23, 2016 3:41 AM by dcbb RSS
    dcbb Apprentice

    with out refresh button how to generate random values

    Hi

      Actually when I ran the java sdk code the properties values reflect in thing ,i mean generate random values.

    in Mashup values generate. But my thing i want to generate the values in Properties through Java Sdk.

      • Re: with out refresh button how to generate random values
        supandey Collaborator

        Have you considered writing a random number generator function in Java which you can call in the processScanRequest() via a setProperty(), thus every time the scan is performed the function will have a random number to set in the property in the Java SDK.

         

        int temp = <value>;

         

        write getter and setter for temp property and in the processScanRequest() you can call this setter(). Therefore, whenever the updateSubscribedProperties(); is called the temp property should have a new value

         

        Hope this helps.