Hi,
Is there any possibility to execute a report by a double click on an object ??!!!
Thanks in advance;
Veto :-) I think it is possible to start a macro/report by double click. Jens showed in his ARIS Slot Machine how to register a macro to run on a double click. You can use this macro to kick-off other macros or reports.
Hello,
Mr. Woldt is right; it is not possible to start a report directly by double-click.
But there is a good workaround. Create a event based macro which will execute the report.
See the attached screenshot to have an overview of possible start events of a macro.
If you do not know, how to create a event based macro, do not hesitate to ask.
Regards,
Markus
Thanks all, the idea you provided is very useful.
But how to retrieve parameters that the maro passes to the report (report called when the macro is executed by the event)?
reportInfo = Report.createExecInfo("Custon_reports/d4fb8d50-a944-11df-2a77-080027a2c234", selection, Context.getSelectedLanguage(), Context.getSelectedOutputFormat(), Context.getSelectedOutputPath(), Context.getSelectedOutputFile(), Context.getEvaluationFilter());
Thanks again;
Hi Yassine,
From within your Macro set the parameter you want like this :
reportInfo.setProperty("ParameterName",ParameterValue);
and from the context of the report do the following to extract the value :
var value = Context.getProperty("ParamaterName");
hope that help.
Thanks,
Regards
Abdallah
Yes Abdallah, that helps a lot (Ramadan Mobarak :-) )
The problem is that I can't modify source code of the marco.
But there is a parameter "selection" like Mr Markus Werner said, How can I retrieve it on the report ?
hi Yassine,
Mobarak 3alina w 3alik Inshallah :).
Well i would say that you are not able to edit the macro code because yu generate the macro using the wizard.
you can copy the content of the current macro and create a new custom macro and paste your code in :).
please dont hesitate to ask for anything you may need.
Regards
Abdallah
Hi Abdallah,
your are right, it is not editable generated code.
Copy and Paste is always a solution.
The easiest way would be to change the macro properties to "user defined macro", and then you are able to edit it direct, without copy and paste.
Regards,
Markus