Skip to main content
Chris-sy
Known Participant
September 13, 2017
Question

Combining advanced actions in CP9

  • September 13, 2017
  • 2 replies
  • 364 views

Hi everyone!

The question is really simple: Is there a way to combine advanced actions?

See example: With button #1 I want to activate the advanced actions of buttons #2, 3, 4 and 5. Otherwise I need to handle A LOT of variables in #1 and that would be horrible - because every button #2-5 deals with a lot of variables themselves.

Thank you for all your help!
Chris

This topic has been closed for replies.

2 replies

RodWard
Community Expert
September 14, 2017

If your output is HTML5, CpExtra widget does provide a way to call another Advanced Action from within an Advanced Action.

Check it out here:

Events and Actions | Infosemantics Pty Ltd

Lilybiri
Brainiac
September 13, 2017

Maybe you could use another approach, maybe I could help if you explained what you have in those actions, why you need so many variables.

The title confused me: I thought you wanted to embed another advanced action in an advanced action, but that seems not to be the case.

Chris-sy
Chris-syAuthor
Known Participant
September 14, 2017

Hi Lilybiri,

this is why I need a lot of variables: One button makes a lot of elements visible (see pictures). I know I could also use groups and then the amount of variables would decrease. But anyway, in the end, for the "Show all" / "Hide all" Button it's still a lot.

I would prefer to activate button #2-5 with only one button if possible.

THANKS everybody.

Chris

Chris-sy
Chris-syAuthor
Known Participant
September 14, 2017

I think Rod is confused as well, still don't understand your question. What do you exactly want (I understand German, will not write in Goethe's language however).  If my understanding is correct, you don't want to embed another advanced action in an action, where CpExtra widget would have been my recommendation as well, but you want to execute an advanced action on one button, and that execution should at the same time also launch the actions on the other buttons?

Anyway I would certainly recommend to cut down on actions and on variables. Hiding and showing works perfectly on groups. I see no reference to variables in the screenshot at all: how do you use the variables?

Try this: explain the situation, and what you want to achieve in very simple language, no reference to advanced actions. Maybe that way proper help could be provided.


Lilybiri  schrieb

... but you want to execute an advanced action on one button, and that execution should at the same time also launch the actions on the other buttons?

Yes, this is correct - I want one button that executes the actions of other (already existing) buttons Is this possible?

Sorry if my message was confusing for you! I hope, the situation is clearer now.