main logo
Subject: Code based view and BO???
Author: Bhavbhuti Nathwani
Posted: 2002/07/22 01:00:07
 
View Entire Thread
New Search


Hi All

I have complicated SQL Statements generating a data set into a cursor. Essentially this cursor calculates the current balances of all the accounts for a given date. Then going further (I have a dream) will generate a tree structure type of record sets using the iID and iParentID of the accounts and print the trial balance.

I doubt that the view designer will be able to manage this.

So I created a BO bo_lkTrialBalance. In the Init of the BO I put in a SQL Statement (very simple right now for trial purpose) named the cursor lv_LKTrialBalance and did not forget to DODEFAULT(). Fired the builder for this BO and set up the DE using the regular conventions.

When I run the form containing this BO I get the error:

Error instantiating cursor object. Cannot find
lv_LKTrialBalance in
c:vso3projectsc00datavso2views.dbc

Locate, Ignore, Cancel

Locate is useless as this is code based
Ignore won't really igore except for iFreeTableCursor
Cancel is the only way out.


I have tried the DE options iDynamicViewCursor, iCursor, iFreeTableCursor as lv_lktrialbalance, v_lktrialbalance. None worked for me.

What have I done wrong?
Is a BO possible with a code based View?
Is it possible to create a code based view?

All the help and knowledge insights I can get will be appreciated.
Regards
Bhavbhuti
 
©2002 Bhavbhuti Nathwani
<-- Prior Message New Search Next Message -->