How to define column width in an instance list

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
csturtev
Posts: 12
Joined: Thu Feb 02, 2017 6:54 am

How to define column width in an instance list

Post by csturtev »

How do you define the column width in an instance list? V15 VLFOne It appears you can set in the width be dragging column widths in the framework workbench when working in the Instance List tab. But this does not appear to make any difference when user pulls up the list.
csturtev
Posts: 12
Joined: Thu Feb 02, 2017 6:54 am

Re: How to define column width in an instance list

Post by csturtev »

If (#AVLISTMANAGER.avVisualList *IsNot *NULL)
For Each(#column) In(#AVLISTMANAGER.avVisualList.Columns)
If (#Column.ColumnCaption = 'Description')
#Column.CellWidth := 750
Else
#Column.CellWidth := 100
Endif
Endfor
Endif
Endroutine

Trying something along these lines, but result does not change.
csturtev
Posts: 12
Joined: Thu Feb 02, 2017 6:54 am

Re: How to define column width in an instance list

Post by csturtev »

#Column.ColumnWidth := 750 not #Column.CellWidth := 750
Post Reply