I'm having troubles trying to define and use a DynamicViewCursor. I've defined the following class in ADATAENV.PRG after created a local view, named 'lv_Installation' in my database as indicated in the comments atop of ADATAENV.PRG.
DEFINE CLASS v_Installation AS iDynamicViewCursor cCursorSource = 'v_Installation' NoDataOnLoad = .F. BufferModeOverride = DB_BUFOPTRECORD ENDDEFINE
Finally I've included this cursor to be loaded by the following data environment which is loaded by a business object called SystemSettingsBO:
DEFINE CLASS SystemSettingsDE AS SHHostEnvironment FUNCTION LoadCursors() DIMENSION This.aCursors[2] This.aCursors[1] = 'v_Installation' This.aCursors[2] = 'ASIntegration' ENDFUNC ENDDEFINE
When I execute the form that contains the BO I get the following message:
"Error instantiating cursor object. Cannot find lInstallation in SHHOST.DBC" (Locate/Ignore/Cancel/Help).
What am I doing wrong?
Thanks.
Gustavo A. Schweitzer Strategic Business Technology, Inc. Miami FL, USA ©2001 Gustavo Alfredo Schweitzer |