Skip to Content
0

SAPUI5 Popup placing in screen

Jan 26, 2017 at 07:00 AM

75

avatar image
Former Member

Hi,

I am using a split app, on my master screen I have an input field and I want to display a popup with search help when the user presses the value help.

I have this code for the popup

var oValueHelpDialog = new sap.ui.ux3.ToolPopup({
modal : true,
inverted : false, // disable color inversion
title : "Select Sold-to Number",
opener : "SoldToInput", // locate dialog next to this field
closed : function(oEvent) {
}
});

When I press the value help, the popup appears but not directly next to the input field but at the other end of the detail screen. How can I set the position because it seems the opener does not work here?

Thanks,

Tim

10 |10000 characters needed characters left characters exceeded
Former Member

Can anyone help with this? So the problem is the split app, that the positioning does not work correctly. I need to specify the position of the popup directly I guess, not using the OPENER but how can I do that? Tried also this:

But no luck.

Thanks,

Tim

onValueHelpSoldTo : function(oEvent) {	
        var oValueHelpDialog = new sap.ui.ux3.ToolPopup({
			modal : true,
			inverted : false, // disable color inversion
			title : "Select Sold-to Number",
			opener : "SoldToInput", // locate dialog next to this field
//			position: absolute,
//			visibility: visible, 
//			zindex : 20, 
//		    display : block, 
//			top : 0px,
//			left : 0px,
			closed : function(oEvent) {
			}
		});


            oValueHelpDialog.open();
	}
});

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
VIPLOVE KHUSHALANI Jan 27, 2017 at 08:01 AM
1

Hi Tim ,

Why are you using a depreciated version, instead of that use sap.m.Popover ...

thanks

Viplove

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

As Viplove said use sap.m.Popover or even better sap.m.ResponsivePopover and in the code you can specify the position: this._oPopover.openBy(oButton); So the popover will open by oButton

1