Re: Invoking an Action Programmatically

2016-06-16 Thread Fabio Purcino
Hi Dan, Yes, It would be perfect. I'll be watching ISIS-1196 to check releasing. Thanks, Fabio 2016-06-16 9:34 GMT-03:00 Dan Haywood : > OK. > > We actually have ISIS-1196 [1] raised already to provide this sort of > capability, but baked directly into the

Re: Invoking an Action Programmatically

2016-06-16 Thread Dan Haywood
OK. We actually have ISIS-1196 [1] raised already to provide this sort of capability, but baked directly into the Wicket viewer. What we envisage is something similar to the "more actions" in JIRA, or the cmd-alt-A in IntelliJ , as per [2] Would this suffice? Thx Dan [1]

Re: Invoking an Action Programmatically

2016-06-16 Thread Fabio Purcino
Hi Dan, It's exactly what I'm trying to do. I want to make an Action with an Autocomplete Parameter listing All Services and Actions. After user select some action this action will fire the action as if I clicked. I'm thinking about the growing complexity keeping navigation fluidly and easy.

Re: Invoking an Action Programmatically

2016-06-16 Thread Dan Haywood
Hi Fabio, What Stephen has said is all true, of course, but I'm just wondering if what you want is some sort of intercept in order to influence the action prompt that's rendered? If so, then the answer to that is "no", I'm afraid. That said, I'm not certain if I fully understand the objective.

Re: Invoking an Action Programmatically

2016-06-15 Thread Stephen Cameron
At the code level its just OO programming, so whatever your action 'method' returns is what Isis will display to the user, as long as it knows of that class in its metamodel (from which it builds the view) so the Doenca class needs to be annotated with @DomainObject. then: @DomainService(nature

Re: Invoking an Action Programmatically

2016-06-15 Thread Fabio Purcino
Hi Jeroen, Thanks for your reply. Following are some code snippets: First of all I have this Domain Service with an action buscarTransacao that shows an parameter screen. It works fine. My goal is call a method like this: manager.InvokeAction("Doenca","create") ; And the action be called

Re: Invoking an Action Programmatically

2016-06-15 Thread Jeroen van der Wal
Perhaps you can specify your question with some (pseudo) code? On 15 June 2016 at 16:41, Fabio Purcino wrote: > Hi all, > > Is it possible to invoke an action programmatically from another action? > > The called action has parameters and I'd like to show the same screen

Invoking an Action Programmatically

2016-06-15 Thread Fabio Purcino
Hi all, Is it possible to invoke an action programmatically from another action? The called action has parameters and I'd like to show the same screen as I click on the service menu. Thanks and best Regards, -- Fábio Purcino Aragão