Profile picture for user mahlaoui

Hi,

Is there any possibility to execute a report by a double click on an object ??!!!

Thanks in advance;

by Roland Woldt
Posted on Tue, 08/17/2010 - 03:37

No, you will have to right click on the corresponding item (database, group, model, object, filter) and chose Evaluation > Start Report.

0
by Sebastian Stein
Posted on Tue, 08/17/2010 - 09:55

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.

0
by Markus Werner
Posted on Tue, 08/17/2010 - 09:57

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

0
by Yassine Mahlaoui Author
Posted on Tue, 08/17/2010 - 13:02

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;

0
by Markus Werner
Posted on Tue, 08/17/2010 - 13:09

Hi,

if you create the macro, you may choose the report you want to execute. All the parameters which are available are defined in the Macro. So as an example the selection is passed. The output formats also need to be specified in the macro.

Regards,

Markus

 

0
by Abdallah Bekhit
Posted on Tue, 08/17/2010 - 13:10

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

0
by Yassine Mahlaoui Author
Posted on Tue, 08/17/2010 - 13:16

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 ?

 

0
by Markus Werner
Posted on Tue, 08/17/2010 - 13:21

It is the start context of your Report.

So if you want to run the report on Object Definitions you may use:

 ArisData.getSelectedObjDefs()
0
by Yassine Mahlaoui Author
Posted on Tue, 08/17/2010 - 13:32

Thanks Markus

0
by Markus Werner
Posted on Tue, 08/17/2010 - 13:33

You are welcome.

0
by Abdallah Bekhit
Posted on Tue, 08/17/2010 - 13:33

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

0
by Yassine Mahlaoui Author
Posted on Tue, 08/17/2010 - 13:37

@ Abdellah

You are right, I've created the macro using wizard because I want to execute it after an event (Double click on an object).

 

Best Regards

0
by Markus Werner
Posted on Tue, 08/17/2010 - 13:38

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





 

0
by Abdallah Bekhit
Posted on Tue, 08/17/2010 - 13:56

Hi Markus,

 

I would say that yours is much cleaner :)

 

Regards

Abdallah

0
by Yassine Mahlaoui Author
Posted on Tue, 08/17/2010 - 15:39

Thanks all
You were very helpful

I hope to speak again soon

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock