Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Movable Internal Window

Hi All,

I used a internal PopUp window in the application, But the problem is that internal window is not movable????

while creating the window i had set the size and position.

Is there any setting to move the window.

Please help me

Thanks

-


Nagaraju

Former Member
Former Member replied

Hi,

you cannot move popup. but you can achieve this feature by creating some actions and set the positions dynamically.

in popup wondow view(popup view)

create buttons like moveleft and moveright . create left and right actions and assign to those buttons.

create two attributes left and right in controller, map to both views.


left(){
	IWDWindow window=wdContext.currentContextElement().getWindow();
	wdContext.currentContextElement().setLeft(wdContext.currentContextElement().getLeft()-10);
	
	window.setWindowPosition(wdContext.currentContextElement().getLeft(),wdContext.currentContextElement().getRight());
    }

right(){

IWDWindow window=wdContext.currentContextElement().getWindow();
	wdContext.currentContextElement().setLeft(wdContext.currentContextElement().getLeft()+10);
	window.setWindowPosition(wdContext.currentContextElement().getLeft(),wdContext.currentContextElement().getRight());
    
}

Regards,

Naga

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question