Posted: 27 May 2017 3:57 EDT Last activity: 1 Jun 2017 5:18 EDT
How to restrict pop-up window to be opened if user trying to open same window
We have a requirement to open a pop-up window and if user click on link it will open a pop-up window and if user tries to open the same pop-up window by clicking on the same link then it should not open, alerting to the user that "already one pop-up window opened" or replace with same pop-up window. Please reply immediately if you have any solution on this.
Can you please elaborate a little bit more. Are there two different pop up windows or the same and are you showing the link on the pop up window again after a pop up window is opened by clicking a link.
Actually we have put one link on the UI, User will go to that and click on that link, then it will launch harness using pop-up window. If user again clicks on the same link then the pop-up window should not open because its already opened by the user.
From the description, I think you are not using modal dialog. If you were, then the user will not be able to click on the link again unless the modal dialog is closed(assuming the link is provided in the parent page).
Is your use case similar to the UI Gallery sample for link? Refer Designer Studio>> User Interface >> UI Gallery >> Link >> click the link 'Pega Developer Network'.
Is this related to what we have declared in the launch harness? I dont think so because its just behavior of pop-up window, even if we declare or not it will open right? I was thinking that we need to use java script. If u have any solution through java script, please send it. Can we capture events count using java script?
As observed the same scenario for RD, when configured RD to link, pop-up windows getting repainted instead of opening the new window.
You can raise an SR, to know it can be addressed as an enhancement in future releases from the product management team.
I have verified the behavior in hotfix environment and here, since the issue is not reported, request you to provide hotfix inventory. Can you try using OOTB harness say Review or NewSample or PrintView and let us know the outcome.