Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Status
colourBlue
titlelycia


Problem

Is it possible to show or hide a table column with 4GL?
I tried to use the UI associated methods but it doesn't work.

Solution

Yes, you need to read all columns from the table into DYNAMIC ARRAY OF ui.TableColumn:

Code Block
DEFINE t_columns DYNAMIC ARRAY OF ui.TableColumn
--get all columns 
LET t_columns = ui.Table.ForName("tb_dynamic").GetTableColumns()
-- change column visibility
CALL t_columns[1].SetVisible(FALSE)
-- apply changes
CALL ui.Table.ForName("tb_dynamic").SetTableColumns(t_columns)



Filter by label (Content by label)
showLabelsfalse
max10
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@13968
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "development_lycia" and type = "page" and space = "QKB" and ancestor = "66289698"
labelstable 4gl