So, long story short, four things I would like to see change in the function editor:
- Linking a table result to a variable should update all prior references to that logic block to the variable. If this can not be reversed the same way, so be it, but at least the first linking should not destroy everything.
- Decision blocks should be able to read logic block results
- Losing a variable / logic block that has been linked to a field in a table record write block should not remove the field, it should just leave it blank. You can already save the function with these blank, so that tells me there isn’t really an issue doing this.
- In general, if a button seems to merely toggle a layer of abstraction (like unlink/link to variable) it should not delete my work. At the very least, it should warn people before doing so, as the results of clicking this button in a complex function could be devastating.
When editing functions and pulling up a table record, I assumed linking Table records to variables was just for convenience. It changes the way it is referenced in expression editor and variable selection from a generic “Logic Block Results” to whatever variable it was set to. My choice to do it was based on whether I was going to be using that data in many places or in long expressions where typing the “logic block results.results.result” would get cumbersome.
That is, until now, where I looked and looked and realized you cannot use logic block results in expressions for decision blocks! I was disappointed, because I already know the act of changing it from a logic block result to a variable breaks every single piece of logic referencing the former logic block result.
I was transcribing a significant number of these record fields into a new record in a different table.
Not only did changing this wipe all the fields reading this variable, but it actually removed those fields from the list. So, I can’t just go back and link them all to the new variable, I have to redo the work of figuring out which fields need to be added in the first place.
Now, it’s alright, I didn’t lose that much here. I just feel I have to warn my coworkers to be careful as these link to variable buttons can easily undo hours of work without warning.