on 04-05-2016 2:01 PM
I have a a table rendered from an xml view.
Is there a way I can hide an entire column in the controller?
HI,
Try this link, table.getColumns()[column no].setProperty("visible",false); to hide and and
table.getColumns()[column no].setProperty("visible",true); to show
Ref:
sapui5bin/dynamicTableColumns.html at master · qmacro/sapui5bin · GitHub
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In xml creation of table create with id
<Table
id="tt"
rows="{
path: '/Employees',
parameters: {
select: 'FirstName, LastName, BirthDate'
}
}"
title="Table Example"
visibleRowCount="7"
firstVisibleRow="3">
<columns>...
</columns>
</Table>
and in controller we can access using id oView.byId("tt").getColumns()[2]. ....
Thank you very much, problem solved!
User | Count |
---|---|
80 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.