Forums
A better way to have multiple similar controls. - Printable Version

+- Forums (https://forums.appli.io)
+-- Forum: Support (https://forums.appli.io/forumdisplay.php?fid=7)
+--- Forum: Feature Requests (https://forums.appli.io/forumdisplay.php?fid=9)
+--- Thread: A better way to have multiple similar controls. (/showthread.php?tid=661)



A better way to have multiple similar controls. - alextweedly - 05-07-2024

I have an app with multiple buttons, each of which should do an almost identical thing:
    log the fact that the button has been pressed (and the date, time, ....)

If I was doing it in Livecode, I could :

1. put the buttons in a group, and have the group script do "   .... logmessage(the short name of the target) ..."
or
2. have a behaviour script that did logmessage(the short name of me), and use that for all these buttons
or
3. at the very least, do "logmessage(the short name of me)" in the script before copying/pasting/duplicating the buttons.

I can't see any way to do anything similar in Appli - currently I am copy+pasting the buttons, and then editing each one to change the text string of the button name in the code.


RE: A better way to have multiple similar controls. - linda - 05-10-2024

Hi alextweedly,

I will add a feature request for simplifying actions and low-code in multiple, similar elements.