Ability to Define "Procedures" in App Connect

This request is for the ability to define the equivalent of a software procedure within App Connect.

So for those of you who know Bubble, it is the equivalent of a Custom Event, which Bubble users make much use of.

This would be a routine you could call when an event happens like a button click or database access success. On the event, you would call the procedure which would perform any number of client side acitons, especially the ability to assign different values to variables.

My immediate need is to use it for window control, so to have a procedure something like this:

procedure close_message_windows()
begin
  show_message_editor = 0;
  show_message_viewer = 0;
  show_shortcode_viewer = 0;
  show_notifications = 0;
  show_left_menu = 1;
end;

But for the user to be able to define this functionality graphically within Wappler.

In a complex app, where the same functions like this may be called from several different events, it can be very error prone to be working without a procedure… because then you need to copy and paste a set of statements like these to different locations and manage updates to them as your app grows.

Best wishes,
Antony.