Click a button do this calculation then output value

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • I need to make a really simple calculation app to run in Windows from entering 3 numerical values in text boxes, clicking a button and outputting the result to a string.
    The app is for creatinine clearance, it's a measure of renal function.

    This is the Cockcroft-Gault formula:

    (140 - age) X weight / (0.82 X serum creatinine)

    The serum creatinine is derived from a blood test.

    So I enter age, weight, serum creatinine and then I click the button and I get the creatinine clearance. For example a weight of 68 kg, 140 minus 67 years of age and a serum creatinine of 133 mg/dL = 46 mL/min.

    How do I enter this formula as an expression? And do I use edit objects for the 3 value parameters and a string for the result?

  • 3 edit objects for the input values will work - the tricky part will probably be having to convert the inputs from a 'string' to a 'value' so that Fusion can properly interpret the values to do maths on them.

    Here's an example - typing in the values will automatically update the creatinine clearance:
    Please login to see this attachment.

    This will convert each input from a string to a value (no need to enter units, just the number), perform the calculation, and store the result in Global Value A.

    It then takes Global Value A and turns it into a string so that it can be displayed

  • Also, I forgot the value is different for women. For women the creatine clearance result should be multiplied by 0.85. So a male's creatinine clearance of 46 would be 39 for a woman.
    How do I add this into the equation? Ideally from a radio button, one for male and one for female and can switch between them.

    Aaaaand, this is probably a bit more difficult. Not all labs give the creatinine value in umol/L. Some are in mg/dL. For example 133 umol is 1.5 mg/dL. It would be great to add another button that can switch between the two formulas. If entering the serum creatinine in mg/dL the formula changes to (140 - age) X weight / (72 X serum creatinine).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!