Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Business object unable to find its view
Message
From
18/03/2010 14:58:57
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
01453329
Message ID:
01455522
Views:
29
>There is one particular business object (MonthlyChecksList_bo), however, that just refuses to work. Whenever the object is created, I get vfp's open dialog and I'm asked for a dbf. This happens in the business object's dataenvironment's OpenTables (MonthlyChecksList_bo.MonthlyChecksList_de.OpenTables()) method. In the line that reads "This.oDataEnvironment.OpenTables()".
>
>I've tried the business object in stand-alone mode (running setx and then instantiating the bizobj) and it's fine there.
>
>I have already re-created the view, the business object AND the view. Several times!! Still no luck.

I'm gonna presume you meant DataEnvironment in there too?

>Does anyone have any idea of where and what I should be looking for? I'm very close to just hard-coding my "use" statements and foregoing the framework entirely to get to the data in this case.

Since it works standalone, I have to presume the problem is somewhere in the form. What other BOs are open, does one of them have the same view, or a child table that Checks_BO needs, that it may be closing? Are you sure of the tablename it's looking for - if you select an appropriate view/table from the prompt, (where) does it break later?

I really wish OpenTables() would let us identify the tables as it works... I put ALIAS() in the watch window, and having the data session window open might tell you (by process of elimination) what's open and what isn't.
Previous
Reply
Map
View

Click here to load this message in the networking platform