Application Studio Calculation event widget

Hi, kind of new to Application Studio and would like to use the calculation widget for one of my event. However, seems the Initial Value and all Operands I try to add are treated as Text (ex: 1+2=12). Any way to force them as integer in the syntax? My test here uses hardcode values for testing but seems Im getting the same if im using numerical fields from my view. Using 2022.2.29


thanks,

2 Likes

Have you tried wrapping your number in {} e.g. {1} ?

I know early versions of Kinetic can seem to revert this back to just 1 after running, idk why it does that :man_shrugging:

1 Like

After doing a bit of digging it does seem to be a version issue, seems to be working in 2024.2 but 2024.1 and below have these exact issues where operand is treated as a string instead of a floating point.

If {} does not work I’m afraid there may be no solution to get the event to work, perhaps coding a function as a data directive may be a good workaround?

1 Like

Thanks for the digging James. Seems that {} wont do it unfortunately.

Any other way of updating a view column with a formula somehow? All the other workarounds I find, seem we need to click Save and then do the calculating. I would like to calculate and set the field before that.

thanks,

1 Like

row-update lets you use expressions to do calculations directly, target the view column, for the expression do your math. something like ({view.columna} * {view.columnb}) + 5

4 Likes

Thanks!! I misread the documentation and thought it row-update was committing to DB. I think this the best workaround for now.

1 Like