Question
Last activity: 15 Sep 2017 5:36 EDT
How to open a popup using an activity
Hello,
I have a delete button in my UI, the button is linked to an activity where it checks if this object can be deleted or no. If it can be deleted, I deletes it instantly, else I want it to open a popup that this object cannot be deleted.
Any help would be much appreciated!
Thank you!
Message was edited by: Lochan to add Category
Updated: 24 Jun 2016 5:02 EDT


PEG
IN
Updated: 24 Jun 2016 5:23 EDT
Yes but I need to run an activity first, the actvity checks if I can delete the row or not.
If I can delete I want to delete object only
If I cannot I want to display my section
I also have another question: can I pass a parameter to the popup?


PEG
IN
You can call the activity in "Pre-Processing" method of flow action in action tab. Would this work for you?
no beacuse I have a grid, and there is a button for each row in the grid.


PEG
IN
On click of that button you can use these actions sequentially -> Run Activity -> Local Action(you can use activity in local action itself) -> Delete action
perfect! but the activity decides whether I will perform the delete action or not. If I put them as u are suggesting, can I make my activity skip the 3rd action (Delete action)?
Place 2 sections - one containing the message that it cannot be deleted and the other containing the autosubmit script. Place conditions on these 2 sections by making use of preactivity of flowaction and on post activity of flowaction run delete item logic.
Thanks! But I am not in a flow action, I am in a normal harrness.
Accepted Solution
On Click of the button Launch a Flow Action..
Hi Mohammad.
Did you found the solution for i too have the same requirement
You can use below approach,
Step 1: In activity where you are having delete logic, set a flag whether you want to display Pop-up.
Step 2: Call Activity on Click of button
Step 3: Add Local Action with message after activity and in When condition check for Flag(which we initialized in Delete activity)
I hope that will help. Please let me know anything requires clarification.
Thanks,
Pardeep
You can call local actionaction on click on event and select the modal dialog to show the pop-up window.
Hope this helps!