[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Handling chained popups not using Workpage  XML
Forum Index -> Development
Author Message
vadingding

Power User
[Avatar]

Joined: 14/07/2017 13:26:37
Messages: 145
Offline

Hi Captain,

I'm having a challenge on showing my yesnopopup in front of another popup,
I tried to get the modalpopup of the yesnopopup and setstartfromrootwindow to false but it doesnt work.

I saw this code on demo :
Code:
 ynp.getModalPopup().setOwner(getWorkpage().getModelessPopupOfWorkpage());


How do I achieve this without using this Workpage ?

Regards, Vincent
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

Hi,
could you please call

ModalPopup.setStartfromrootwindow(false)

?

Thanks! - Björn

Björn Müller, CaptainCasa GmbH
vadingding

Power User
[Avatar]

Joined: 14/07/2017 13:26:37
Messages: 145
Offline

Hi Captain,

Thanks for the response, already tried that code but doesnt work.

Here's my code :
Code:
 ModalPopup modalPopup = YESNOPopup.createInstance("Confirmation",
                     "The corrections cannot be saved as excess quantity has been defined. Close the form anyway ?", new YESNOPopup.IYesNoListener() {
                         @Override
                         public void reactOnYes() {
                             m_listener.reactOnClose();
                         }
 
                         @Override
                         public void reactOnNo() {
 
                         }
                     }).getModalPopup();
             
             modalPopup.setStartfromrootwindow(false);
             modalPopup.setLeftTopReferenceCentered();
vadingding

Power User
[Avatar]

Joined: 14/07/2017 13:26:37
Messages: 145
Offline

What am I missing ?
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team