Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » Hide Status on TablePage inside PageField
Hide Status on TablePage inside PageField [message #1854985] Wed, 21 September 2022 18:40 Go to next message
Eclipse UserFriend
Hi,

Does anyone has an idea how the status of a Table (in TablePage) can be hidden when the TablePage is used in PageField OR if it is not possible ?
Below is my code:

public class GroupUsersTablePage extends AbstractPageField<UserTablePage> {
          @Override
          protected boolean getConfiguredLabelVisible() {
            return false;
          }

          @Override
          protected void execInitField() {
            var userTablePage = new UserTablePage();
            userTablePage.setGroupId(getId());
            setPage(userTablePage);
            // Hide table status -- NOT WORKING !!!
            getTableField().setTableStatusVisible(false);
            getTableField().getTable().setTableStatusVisible(false);
          }
        }
}


I can use a TableField inside my Form, but since it will have the same columns and menus as the TablePage, I don't want to repeat the same code at 2 places.

Thanks.
Re: Hide Status on TablePage inside PageField [message #1855263 is a reply to message #1854985] Wed, 05 October 2022 05:54 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

are there any table controls (e.g. AggregateTableControl) in your table? If yes, you need to remove them or make them invisible as well if you want to hide the table footer:

getTableField().getTable().getTableControls().forEach(control -> control.setVisibleGranted(false));


Best regards
Claudio
Re: Hide Status on TablePage inside PageField [message #1856886 is a reply to message #1855263] Sat, 07 January 2023 05:55 Go to previous messageGo to next message
Eclipse UserFriend
Hi Claudio,

Thank you for your response.
The only control returned by getTableControls on the Table is the AggregateTableControl. The Filter field, Rows loaded label and Rows selected label are not returned by getTableControls().

Regards,
Re: Hide Status on TablePage inside PageField [message #1856916 is a reply to message #1856886] Mon, 09 January 2023 04:26 Go to previous messageGo to next message
Eclipse UserFriend
If you want to make the whole footer invisible, you need to set tableStatusVisible to false and make all table controls invisible (which is AggregateTableControl in your case). If you only want to make the right part or some elements of the right part invisible, you need to use CSS, e.g.:

.your-table > .table-footer > .table-info {
  display: none;
}
Re: Hide Status on TablePage inside PageField [message #1856926 is a reply to message #1856916] Mon, 09 January 2023 13:01 Go to previous message
Eclipse UserFriend
Hi,

It is working now.

Thank you very much Claudio.

Previous Topic:Hiding in status of TablePage when including in form Using PageField
Next Topic:180 degree (or half) dougnhut chart
Goto Forum:
  


Current Time: Sun Jun 22 01:07:31 EDT 2025

Powered by FUDForum. Page generated in 0.04119 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top