General information
Title:
Problem with SFReport Update
I am using the free data engine and the code that was working in the previous version is no longer working. Here is the code:
* Fill the field collection with fields from all tables in our cursor
* collection.
Lparameters tcMetaDataTable
Local laCursors[1], ;
lnCursors, ;
loField
With This
* Clear the collection.
.oFieldsCollection.Clear()
* Fill the collection's aTables array with the tables in our cursor collection.
lnCursors = .oCursorCollection.GetTableArray(@laCursors)
Dimension .oFieldsCollection.aTables[lnCursors, alen(laCursors, 2)]
Acopy(laCursors, .oFieldsCollection.aTables)
* Call the collection's FillCollection method to fill itself with all fields in
* the specified tables.
.oFieldsCollection.FillCollection(tcMetaDataTable)
* Now remove those fields we don't want.
.oFieldsCollection.RemoveItem('NAMES.CUST_ID')
.oFieldsCollection.RemoveItem('RECEIPTS.CUST_ID')
* Set some other properties.
loField = .oFieldsCollection.Item('RECEIPTS.AMOUNT')
loField.cInputMask = '99,999.99'
loField.cFormat = '$'
Any ideas what I need to change.
Jack
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only