Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

LYCIA


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:

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)



  • No labels