I had it working the way I wanted initially but I have changed focus so I can capture the values more easily to pass to other components. Currently, the text value of each label is bound to the respective tag string value. In each label component I have a custom value 'percent' with an expression binding to convert the text string to a number value:
Each of the five string values needs to be converted to a number and summed up into the LxxProjectOverall tag so I can use that tag value to bind to the gauge instead.
Any help to push me in the right direction is greatly appreciated!
I'm not very used to Perspective so take what i have to say with a grain of salt.
1.
A text field could mean that the user would be able to write anything in there, right?
Why not use a dropdown instead? Other than limiting what the user can input, for each option the component also has a label and a value field so you can have a label as a string and your value as your int. So in the end you would just bind your gauge to the sum of props.value of each dropdown.
Still on the same subject, whats missing, exactly?
If your problem is that your write seems to not be happening, it might be that since you're writing to a tag that indicates tag quality, something else is constantly overwritting what you input.
What i would do is to change the way your "Percent" binding works for each text field. You can change it to a dropdown, in which case your guge's value binding, assuming you would adopt the same name for the dropdown as you did for the text fields, it would look something like this:
This would avoid all those toInt() in every line, at least looks cleaner.
If you want to keep the text fields then i would change how the percent value is bound, i would use a Tag Binding with a map transform so it would look something like this: