Information générale
Catégorie:
The Mere Mortals Framework
Titre:
Appending data into a bizobj
In our environment, we take data from a variety of sources and load it into tables. Normally I take a text file and load it into a cursor that matches the structure of my bizobj, scan the cursor and use scatter and gather memvar to bring the data in.
EXAMPLE
lcAlias = This.GetAlias()
=AFIELDS('aTemp', lcAlias)
CREATE CURSOR tmpCursor FROM ARRAY aTemp
APPEND FROM myfile TYPE SDF
SCAN
SCATTER MEMVAR
If !SEEK(m.Key, lcAlias, 'cid')
SELECT (lcAlias)
This.new()
GATHER MEMVAR
ENDIF
SELECT tmpCursor
ENDSCAN
USE IN tmpCursor
If anyone has any other approaches they can share using bizobjects, I'd like to hear. Thanks.
Jim
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