Page 1 of 1
close two popups and return to main screen
Posted: Thu Jan 02, 2014 10:20 pm
by araskin3i
Here is my scenario.
App loads and main screen is display
User clicks on item and an Item Detail POPUP is displayed
On this Item Detail Popup, the user clicks on the DELETE button
A second POPUP is displayed asking the user to confirm the deletion
User clicks CONFIRM and the 'delete' service is called
On the SUCCESS of the service call, I want to return to the main screen (point 1). I have tried calling the CLOSE POPUP event for both the Confirmation and the Item Detail but the Item Detail does not close.
I have also tried doing an Appery.navigateTo but this 'almost' works. The main screen is indeed displayed but I noticed that the first click I make after that fails (nothing happens). I have to click twice to get something to happen.
What is the best way to do this?
close two popups and return to main screen
Posted: Thu Jan 02, 2014 11:26 pm
by maxkatz
This might be a workaround. In the first popup, instead of opening another popup -- could you navigate to the confirmation page? Yet another solution, is to use the browser confirm(..) dialog to confirm the delete instead of an actual popup.
close two popups and return to main screen
Posted: Fri Jan 03, 2014 11:01 am
by araskin3i
Thanks Max.
Using a Appery.navigateTo works BUT the first click after returning to the main screen fails every time. It seems to be ignored by the browser.
I am sure that using confirm() will work fine but I am trying to not use any of the alert/confirm functions as I dont like the look and feel.
close two popups and return to main screen
Posted: Fri Jan 03, 2014 11:05 am
by araskin3i
OK I think I misunderstood you.
Your suggestion was to navigate back to the main page and not explicitly close the PopUps. I just tried it and unfortunately it seems to suffers from the same issue. Once I am returned to the main screen, the first two clicks fail.
Do you think I should log this as a bug?
close two popups and return to main screen
Posted: Fri Jan 03, 2014 12:35 pm
by Oleg Danchenkov
Could you give us public link to your application and steps to reproduce this problem?
close two popups and return to main screen
Posted: Fri Jan 03, 2014 1:00 pm
by araskin3i
Hi Oleg,
I would prefer not to provide a public link as this will be a commercial product. Perhaps I can provide the link privately in some way? Or, if you prefer, I can simply log this issue under a Priority Support. Please advise.
close two popups and return to main screen
Posted: Fri Jan 03, 2014 1:11 pm
by Oleg Danchenkov
Sure, log this issue under a Priority Support.
close two popups and return to main screen
Posted: Fri Jan 03, 2014 1:37 pm
by araskin3i
Thanks Oleg. I have logged the priority request.