Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Event Objects
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Miscellaneous
Thread ID:
00887464
Message ID:
00887519
Views:
27
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform