Let's follow up this discussion at the Neptune Community

(this forum will be kept in read-only mode)

Position on Page


I'm trying to position a Table so it's always in the centre of a page, so the position would change depending on the number of items in the table. Can someone give me a clue as to how to do this?

Also, is it possible to display (or hide) elements depending on if they are being viewed on a phone, tablet or desktop?



I would like to answer your second question - display or hide depend on device.

This can be done by writing the below script


if (sap.ui.Device.system.desktop === true) {

        <objectName>.setVisible(true);  // Visible on Desktop        

    } else {

        <objectName>.setVisible(false); // Invisible on Mobile devices




Hello Gareth,

In complement of the answer of Naga, if you want within a table to hide elements depending of the device screen size, you can use the "demandPopin" property as per the below links :

- http://support.neptune-software.com/support/articles/184676-table

- http://help.sap.com/saphelp_hanaplatform/helpdata/en/38/855e06486f4910bfa6f4485f7c2bac/content.htm

When this property is set to false, the column is completely hidden for the minimum screen width selected, otherwise it will be displayed on a second line in the same table row.

Best regards.


Thank you both for your input!

Kind regards


Login or Signup to post a comment