thijs
June 3, 2025, 4:47pm
1
Hi!
Is there a no/low code friendly way to apply a ‘try catch finally’ function in Weweb?
I’m asking for a friend, my webapp never bugs
In all seriousness, it takes quite a detour (with conditional filtering) to imitate this function - causing unnecessary complication in my webapp.
Thanks!
sam1
June 3, 2025, 10:13pm
2
There is the error path for workflows you can use but its not a useful as the try catch methods.
Master WeWeb triggers - learn how to respond to user actions, system events, and lifecycle events, handle errors effectively, and create interactive applications through various trigger types.
thijs
June 4, 2025, 7:43am
3
Thank you @sam1 !
And what about formulas when binding a value? That field allows for ‘Javascript’ and ‘Formulas’ →
I see this example on the w3schools.com in Javascript, is it possible to translate this into the Formulas-field?
sam1
June 4, 2025, 10:08pm
4
yeah you can do that
try{
return x+y;
}catch (err) {
return err
}
bind this to a text and see what happens
2 Likes
thijs
June 7, 2025, 10:43am
5
Hi @sam1 ,
Thanks for this! This function works in the Javascript field, but - since that’s out of my league - it would be amazing if the Weweb editor is able to translate this into its Formulas field. I tried it, but it didn’t recognize. I’ll submit a feature request.