Hello!
I build some extensions with the usermenue.ael and want to distribute this to my collegue who did already some extensions in his usermenue.ael.
Does he need to paste the new code in or is there a better possibility to generate a second usermenue (usermenue2.ael) this is simply installed site-by-side?
And if this is not possible, is there any problem in simply appending the new ael code to the old (or already existing) one?
Best regards,
Martin.
I build some extensions with the usermenue.ael and want to distribute this to my collegue who did already some extensions in his usermenue.ael.
Does he need to paste the new code in or is there a better possibility to generate a second usermenue (usermenue2.ael) this is simply installed site-by-side?
And if this is not possible, is there any problem in simply appending the new ael code to the old (or already existing) one?
Best regards,
Martin.
You don't have to merge all the code into the usermenu.ael file. You can just define the menu picks in the usermenu.ael file. The callback functions for the menu picks can be defined in separate files if you like. Just add a load("myfile"); statement in the usermenu.ael file for each dependent file that you need to include.
Example:
usermenu.ael
------------
load("myfile1");
load("myfile2");
defun app_add_user_menus(winType)
{
// Your merged menu code here!
...
}