Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Biz Object not firing on a new form.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00185238
Message ID:
00185490
Vues:
20
Steve,

>Wtih the data session window open the only item that is listed is appincl. Not my view, nor the tables that the view fetches from.>

As Mat (again!) correctly replied, this indicates that you are looking at the default data session rather than the data session of your form. Here's how to get to your form's data session:

1. Run your application and launch the form
2. From the Utilities menu, select "Suspend"
3. Press Ctrl+F2 to bring the Command Window forward
4. Type the command "SET" in the Commmand Window and press Enter. This will launch the Data Session window.
5. By default, the "Current Data session" combobox will be set to "Default(1)". Click on the combobox and select your form's data session.

You can now select your business object's view in the "Aliases" listbox and browse the view. Rather than manually issuing a REQUERY() against the view, I recommend sending your business object a "Requery()" message and let it do the work for you.

You can also let the Framework do the work for you by setting your business object's "Auto-Requery" property as specified in the Developer's Guide (you can do this on the "InitialSelectedAlias" tab of the business object builder.

>So a requery() gives the error:
>No table is open the the current work area.

You are getting this error because your business object's view was not the currently selected Alias.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform