Possible to reuse destination logic?
Question
Application Type
Reactive

Our Module has several screens where the destination of a button is dependent on logic. I would like to put that logic in one client action, but client actions do not allow destinations. Is there a way to consolidate the logic to one action and have the client action end in a destination action?

Hi Josh,

As client action doesn't have destination, you can achieve it by Javascript as below.

  • Create a client action and take a input for apply condition to navigate to destination screen under Switch as below.

   

Hope it will solve your problem and will get you idea how to do that. looking forward for positive response.


Dileep

Hi Josh,

To address this dynamic scenario we have an External Site option available in the OS platform. Create your business logic in the client action and return the URL parameter as the Output. And assign that parameter to the External site element. In the below example two different navigations happen via the same client action logic. Hope in your business case the common client action will be used in screen action of any web screen.

URL: https://saravanan-gamechanger.outsystemscloud.com/TEST/MAIN_SCREEN?_ts=637613953986456192

Regards,

Saravanan Santhanam

TESTDESTINATION09072021.oml

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.