Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot Access Selected Table Error
Message
 
To
28/03/2000 12:04:40
Ed Gay
Computer Software Consultants
Bangor, Maine, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00351373
Message ID:
00351448
Views:
17
>Sorry I was not more accurate, the form that based upon the cBizObjForm, on page two I put a cListObjectEdit container. The add button was modified to first call the pre-selection form then based upon the return from the form to then do the ceditform. First I set the ceditform value to the name of the pre-selection form then dodefault() I save the returned value change the ceditform based upon the value returned and then dodefault() again. Everything is ok until I do the second dodefault() that is when I get the error. If I cancel the add, then click on add again I do not receive the error.

Ok now I can follow what your trying to do, and yes your should be able to pull this off with a CBizObjForm. We need figure out what's different when you cancel the first try at add and then try again.

Questions -
Do you see data from the underlying view when you first hit page two before hitting add button?

Have you tried to suspend things before hitting add and seeing if you can still add a record manually from command window?

What form class are you using for that pre-selection form? Does it use a private data session?

Suggestions -
I personally wouldnt fudge with ceditform property like that. I'd use the cBizObjRetVal form for the pre-selection deal. Then you got conveniece of a bizobj to handle the SQL statement. I would call that form from the add button
with a lRetVal = DoForm('preselectformclass'), then issue my DoDefault to get the frameworks usual add code to run. See DevGuide for more info on the CBizObjRetVal form.
Roxanne M. Seibert
Independent Consultant, VFP MCP

Code Monkey Like Fritos
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform