I disagree with that, it’s not that I disagree with their way, I’m looking for smarter ways of doing things. I’m new to AppSheet and looking to learn therefore asking.
code readability is smart programming. As an example if I have a chunk of code 50 lines long, copying and pasting that chunk of code 5 times then changing one line of code in each chunk isn’t good practice. Instead I should move that chunk to be it’s own function and change that one line to take a variable input.
if I needed to change the code, the id have to update it 5 times, easy to miss one of the 5 and then I have a bug, as well as it takes time to update those 5 and keep them the same.
that’s exactly what I’m looking at doing here. One form reused multiple times.
or a great example of this is my other post from I think yesterday regarding the template variables. Other people told me the obvious answer if to not try and use template variables to tell if the row was added or changed, simply create extra bots and extra templates, one for added, one for changed.
if I took that advice and gave up trying, I would have over 20 templates, over 20 bots already with where I’m up to in implementing notifications. Currently I only have 4 bots and 4 templates which handle those 20+ situations, because those templates have multiple expressions for combinations of add, change and delete plus combinations with other data.
so in this case, it has taken some extra time to work out how to use an expression to know if a row was added, changed or deleted, but it’s saved me dev time by having 4 templates instead of over 20, and in future if I need to change those templates, which I have already needed to do, it’s just 4 to update and not 20+.
you’re clearly a smart guy so please don’t be offended by anything I’ve said, I respect you greatly and highly appreciate the help you give me and everyone else on here, I’m just explaining why in this situation I disagree and think the mindset of just do it their way isn’t the best. I think the greatest changes in life and the greatest evolutions in history have been because someone wanted to do something a different way, often when everyone told them it’s impossible and can’t be done, but they went against the thoughts of others and through determination worked out a way, which turned out to be amazing and make a big difference.