main logo
Subject: Re: How to use a DynamicViewCursor
Author: Bill Young
Posted: 2001/09/15 20:12:52
 
View Entire Thread
New Search


Where are you instantiating your data environment on the 'Form' you created. You have to add SystemSettingsDE to the cDataEnvironment property of the subclassed container which includes ebizobj.ODELoader which should be a part of the form you created.


<i><font color="#663300">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.

</font></i>

Bill Young
CySolutions
wjy (at) cysolutions .D.O.T com
 
©2001 Bill Young
<-- Prior Message New Search Next Message -->