General information
Category:
The Mere Mortals Framework
Title:
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
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