cancel
Showing results for 
Search instead for 
Did you mean: 

Movable Internal Window

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

former_member197348
Active Contributor
0 Kudos

Hi Nagaraju,

I got information from this [thread |https://www.sdn.sap.com/irj/sdn/thread?forumID=52&threadID=1037758] that new API is available for handling popup windows in version 7.1.

If you are using 7.0 only, then try like this:

Create window as I said in the above thread.

Create a button 'Move' and two InputFileds (X,Y) in the popup Window.

In onActionMove() implementation do like this.

{
IWDWindow window=wdContext.currentContextElement().getWindow();
IWDWindow.setPosition(wdContext.currentContextElement().getX(),wdContext.currentContextElement().getY()); 
}

Let me know if there is any issue in implementation

Regards,

Siva

Former Member
0 Kudos

Hi Nagaraju,

You cannot the move the pop window, it is fixed. You just need to set the position according to your requirement.

Thanks & Regards,

Jhansi Miryala