Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Hide Status on TablePage inside PageField
Hide Status on TablePage inside PageField [message #1854985] Wed, 21 September 2022 22:40 Go to next message
Seydou Zakou is currently offline Seydou ZakouFriend
Messages: 44
Registered: May 2020
Member
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 09:54 Go to previous messageGo to next message
Claudio Guglielmo is currently offline Claudio GuglielmoFriend
Messages: 259
Registered: March 2010
Senior Member
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 10:55 Go to previous messageGo to next message
Seydou Zakou is currently offline Seydou ZakouFriend
Messages: 44
Registered: May 2020
Member
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 09:26 Go to previous messageGo to next message
Claudio Guglielmo is currently offline Claudio GuglielmoFriend
Messages: 259
Registered: March 2010
Senior Member
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 18:01 Go to previous message
Seydou Zakou is currently offline Seydou ZakouFriend
Messages: 44
Registered: May 2020
Member
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: Tue Oct 15 15:01:36 GMT 2024

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

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

Back to the top