Facility Control

 View Only
  • 1.  Adding values in Dashboard

    Posted 12-12-2016 17:40
    Good afternoon,
    I'm building a panel to track gymnastics scores. I think I've figure out most of the issues I was having in regards to adding the user-entered values. The trick was to format the parameters as "float" and the precision set to 3 (for 3 decimal places). I've used a combination of visual logic scripting and ogscript for the calculations. The other key was to use "toFixed" to control the number of decimal places on the final number calculations - this parameter is added in Visual Logic, but can be added by hand to the ogscript as well.

    The remaining question I have: all of these calculations are assigned to a button. Is this necessary or can these values be calculated automatically?

    Thanks!
    Brian


  • 2.  RE: Adding values in Dashboard

    Posted 12-13-2016 14:10
    Hi Brian.
    When you say you want your calculations to happen "automatically", do you mean you'd like them to happen whenever the parameter(s) into which the user is typing the data changes?

    If so, you can attach a to the tag where the parameter is displayed on screen or, if the parameter is never shown in the UI, you can use to attach a change handler to the param.

    If you meant something different, just let us know and we'll try to point you in the right direction.

    Cheers.

    James
    #DashBoard


  • 3.  RE: Adding values in Dashboard

    Posted 12-13-2016 20:24
    Hi James,
    Yes, when a parameter's value changes, I'd like it to perform all the associated calculations. I have to decide if we want calculations to happen automatically or have the user trigger the changes. I'll let you know if I get stuck... thanks!

    -Brian
    #DashBoard