Information générale
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement