Hello All,
We built some macro launch by events, mainly to assist then users while creating ObjOcc.
On the event Constants.EVENTID_OBJOCC_CREATED, a macro is executed and made some controls, ask some data in specific windows, and finally create the ObjOcc and save the model...
This works perfectly in Aris Archictect but does not works in Aris Connect.
I understand that to work in Connect, I have to associate a macro that launch a report.
This means all the logics previously coded in the macro MUST now be code in the report !!!!!
And they are some "object and method" in macro that are not available in report like :
- Designer.getDefinition, Designer.getModel, Designer.save, Designer.closeModel,......
- Context.getSelectedObjOccs, Context.getLoginInfo, Context.getArisMethod
Is my understanding of the situation good ?
Is there a documentation on best practice to do so ?
Is there a "translation" tool Macro 2 Report ?
Any help will be appreciated
Christian from Switzerland...
Hello Christian,
the solution suggested by Kay Fischbach: https://ariscommunity.com/users/rocks1996/2018-03-20-create-object-opened-model-report
appears to be the closest to your question.
The basics explained by Eva Klein are from DABC (the Dark Ages Before Connect) so read with care:
https://ariscommunity.com/users/eva-klein/2010-11-15-difference-between-aris-report-and-macro
Regards, Martin
Hi Christian,
Martin's suggestions are really useful- I can strongly recommend to check them out.
Meanwhile, the German User Group is planning a virtual session on exactly this topic: Macros. Most likely it will take place after our in-person event in Munich- thus, ~ November.
Feel free to join when the date is set and officially announced :)
Best,
Veronika