Skip to Content
avatar image
Former Member

SAPUI5 Popup placing in screen

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

Add comment
10|10000 characters needed 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();
    	}
    });
    
  • Get RSS Feed

1 Answer

  • Best Answer
    Jan 27, 2017 at 08:01 AM

    Hi Tim ,

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

    thanks

    Viplove

    Add comment
    10|10000 characters needed 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