Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Event Objects
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Divers
Thread ID:
00887464
Message ID:
00887519
Vues:
28
>Hi,
>Thank you.
>Sorry for my innocent question.
>
>As I see, desktop application is mostly more interactive. Meant that, record/data will be stored in view and "appear" to user immediately. For example place order, cashier start new order, add lineitems, end order and make payment. All of these happen seperately, and save button will auto call form.saverecord() to save corresponding view. All relevant Business object will be triggered at that time.
>
>So, how can placeorder event object could work more "useful"? I still can't get the "real benefit" of event object in form.

It has been awhile since I have worked with VFP and Mere Mortals (I am working with Mere Mortals.NET mostly now), but I think you may be able to instantiate the Event object on your form, something like:
myForm.oSaleEvent = CREATEOBEJCT("mySaleEvent")
Then in your mySaleEvent code, you could create local references to the business objects on your form. That way, your Event object (myForm.oSaleEvent) is using the business objects already used by the form (Order, OrderDetail). Sorry if that does not make any sense. It has been awhile since I worked with VFP :-).
Chris McCandless
Red Sky Software
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform