Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form, DEClass, CursorAdapter ~ Object not found
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01266834
Message ID:
01266836
Views:
13
>Note: SP2 not SP1 as above shown.
>
>Have a form comprised of a pageframe with 3 pages.
>
>Each of these 3 pages has a different data grid.
>
>Each data grid is respectively populated (when it works) by data from one specific cursoradapter of 3 cursoradapters respectively. I.E. Each grid has its own specific cursoradapter as its data source.
>
>The cursoradapters are independent of each other though they all get their respective data content - using ADO - from the same SQL database.
>
>The 3 cursoradapters have been added to a Dataenvironment saved as a Class and the resultant DE has been added to the FORM using the DEClass reference to the DE class itself.
>
>Hence you have a page showing Sales Opportunity data showing data derived via the related Sales_Opportunity cursoradapter; a second page showing Account data dervied from a related Accounts cursoradapter; a third page showing contacts info, etc.. So whichever page you are viewing at any given moment shows just the related data for that page as pulled from the SQL data source by the relevant cursoradapter as its data source.
>
>The form has been built using the FORM designer in the Project Manager. After appropriately defining the DEClass in the FORM and opening the DE in the FORM designer, each of the pages data grid was created by Drag-And-Drop of the relevant cursoradapter from the DE onto the respective page. Then, using the _wizbtns class, the 'pictbtns' data navigation button set was also added to each page.
>
>When you run this concoction, the first page grid and navigation works perfectly. You can even see the relevant cursoradapter pop up in the DataSession window in the VFP desktop and the data can be scrolled, filterd, printed, etc.. However, none of the other 2 cursoradapters show up. They used to at one point during development but no longer do so for reasons not yet understood.
>
>So the problem is that neither of the other 2 cursoradapters open when the FORM is run. Only teh first cursoradapter opens so while the first page works just fine, when you select the Accounts view page the error is given as "ALIAS 'CursorAdapter_Accounts' (the alias name of this ca in the de)is not found". Likewise for the Contacts page.
>
>Question:
>a) Why is the respective alias "not being found"? and
>b) What must I do so that is is found?
>
>Your help in resolving this conundrum would be gratefully appreciated.
>
>TIA. /psb

Are you calling CursorFill() method of the appropriate CA in the Init of the form(or when you acivate the page the first time)? Do you check what this method returns?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform