-
Assign dynamic column width
In Omnis 10.22 JS forms, we assign the width of columns for datagrid objects with this command:
Do $cinst.$objs.DataGrid.$::columnwidths.$assign(‘100,300,200′)
Is there a way to assign this dynamically? I have tried the method below but it fails:
Declare variables:
lCols1 Type Integer 32bit
lCols2 Type Integer 32bit
lCols3 Type Integer 32bit
CalcCols:
Calculate lCols1 as 100
Calculate lCols2 as 300
Calculate lCols3 as 200
Do $cinst.$objs.DataGrid.$::columnwidths.$assign(‘lCols1,lCols2,lCols3’)
Log in to reply.