Posted: 10 Feb 2017 10:52 EST Last activity: 12 Feb 2017 22:47 EST
How to provide custom message on click of log off
Currently we are opening work objects by using Dynamic Container. How to achieve below requirement ?
if an user try to open a one case in single tab --> Edit the case information -->click on log off-->Then user should prompted with a confirmation message, "Do you want to log out and close all tabs? You will lose any unsaved changes."
if there is no unsaved information case then on click of log off ,system should log off without confirmation message .
Note : We are able to achieve above functionality when we have multiple tabs with unsaved data based on recent lists clipboard pages but we have challenge when we have single tab with unsaved information and then user click on log off
***Updated by moderator: Lochan to add Categories***
I think you can add a local action (in modal dialog) with that confirm message [ Pop up with the message and 'yes' no buttons] and on click of yes, check for unsaved data and then you can write the logoff functionality. On 'No' you can add cancel action.
Hope this helps.
Also, please mention the approach you have followed so that we can check the use case for the single tab scenario.
1. Business don't want additional model window for confirmation to validate when there is no unsaved data in tabs.
the way we have implemented as follows
Configured Left navigation rule will have two log off options
1. One log off will display when "Declare_pxRecents.pxResults.pyIsDirty=true" and then system display will provide you the confirmation message when there is unsaved data in recently open tabs (using flow action to display ).
2. Another log off will display when Declare_pxRecents.pxResults.pyIsDirty=false" then system will use OOTB log off option with out confirmation .
this process we have missed the scenario where single tab with unsaved information .
Posted: 4 years ago
Posted: 10 Feb 2017 20:37 EST
Santanu Bhattacherjee (Santanu)
Senior Manager - Sales Automation