Mark
2008-10-18 15:48:25 UTC
I have an app that updates the contents of fields in other folders from the main app folder. If the structure of the table in the main folder changes, I would like to programmatically add a new field to the other folders before updating field values.
Is there a way to programatically add a field to a rowset that is active using oodml, then update the value of the new field?
I seem to have trouble using the following, since type and length are read only property:
c = new Field()
c.fieldName := cFieldName
c.type := form.rowset.fields[cFieldName].type
c.length := form.rowset.fields[cFieldName].length
oObject.qCODE.rowset.fields.add(c)
Many thanks for any ideas on this,
Mark
Is there a way to programatically add a field to a rowset that is active using oodml, then update the value of the new field?
I seem to have trouble using the following, since type and length are read only property:
c = new Field()
c.fieldName := cFieldName
c.type := form.rowset.fields[cFieldName].type
c.length := form.rowset.fields[cFieldName].length
oObject.qCODE.rowset.fields.add(c)
Many thanks for any ideas on this,
Mark