VERSIONS: All
SUBJECT: Replace tableframe at runtime
BY: VLADIMIR MENKIN
Date: 30 May 2000
Here is an example how to switch tables linked to a tableframe without changing layout. The trick is not to change tableframe's table name,
but change
individual field's assignment. Note, you have to drop "Size to fit" property for all field objects inside tableframe (it is already
done in example).
method pushButton(var eventInfo Event)
TestFrame.TableName=""
dmremovetable("test2")
dmaddtable("test1")
F1.FieldName="test1.F1"
F2.FieldName="test1.F2"
F3.FieldName="test1.F3"
endMethod
method pushButton(var eventInfo Event)
TestFrame.TableName=""
dmremovetable("test1")
dmaddtable("test2")
F1.FieldName="test2.F1"
F2.FieldName="test2.F2"
F3.FieldName="test2.F3"
endMethod