Question

2
Replies
563
Views
DVUDDANDAM Member since 2012 2 posts
Infosys Limited
Posted: October 28, 2015
Last activity: October 29, 2015
Closed
Solved

Conditional exit on UI Element Event based (clickable) actions

Have a scenario where I had to include a Cancel button in a screen flow when clicked on will withdraw the case. This Screen flow is part of a mashup on Customer portals through IAC.

1. When user clicks on cancel button, he needs to be warned of what he is doing (like "Are you sure you really want to cancel the application?") --> Have used a local action to popup, warning the user. When user clicks on "Ok", the logic to withdraw the case is implemented as part of the post action activity of the flow action.

2. As the second action for the click, used harness Action to replace with current screen with a harness advising user that his application is cancelled

Now, the issue is, despite user selecting "ok" or "cancel" in flowaction part of clickable first action, the second action is always executed. All I am looking for is if there is a way to conditionally exit from performing the rest of the actions.

Or if there is any other way of achieving this requirement by not getting into hand coded java scripts is very appreciable.

Few other things I tried,

1. In the second action, call an activity which conditionally calls Show-Harness method but it is not replacing the current screen with new harness

2. Get rid of second action and in the first action, call Show-Harness method which still does not work.

Thanks and regards,

Dinesh.

User Interface
Moderation Team has archived post
Share this page LinkedIn