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:
00185530
Vues:
17
Slapping forehead with hand.
Here is the command window dispaly.

cd \ves
do startcb
set proc to setup
do setprocsandlibs
set
otest=create('cust_lookup_form')
SET DATASESSION TO 2

Now that I see the view, it seems to populate the REQUERY().

Ufda.

I have been getting the Design down and starting on the primary building blocks. As a check I just initiate them from the command window. This initial step was getting tough. The Bizobject was doing just fine. In the Data Session I saw the expected result.

The next step was to put it on a form . I didn't see what the Bizobject instianciation did in the data session window. How do I get the form to switch to the proper data session? I have been tweaking in the form/bizobject data environment? No luck.

doform('cust_lookup_form') really bombs without the data session set properly.

__Stephen

>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,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform