Support Article
Calling Show-Harness Activity on-click in action does not work
SA-9803
Summary
You are calling an activity on click of a button using action - Run Activity/ Refresh Section and calling Show-Harness in that activity to display desired Harness but it isn't happening.
Error Messages
None
Steps to Reproduce
In a Button control, execute an Activity, confiure on-click to call Show-Harness.
Root Cause
Reported issue is an expected design behavior.
Resolution
1. On click of Button, launch Harness.

2. In pre-activity, calculate the outcome using input parameter and assign it to a property that can be later used in the launched harness to put condition on layout visibility.




3. Configure your Harness to contain both Success and Failure layouts in a Single harness and then display them, on the basis of outcome from your preactivity, as set in conditions.



Published May 11, 2015 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.