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:
00887497
Views:
20
>Hi,
>Are you using Event object in web or desktop application? How do you integrate event object to form since form/business object already does alot of actions for us like auto new record, ....

I am using my Event object in a desktop application. The Event object is not used within a form, it is instantiated from an item on my application menu.

Rather than calling Form methods, I instantiate my business objects in the DefineParticipatingEntities() method of my Event object:
* Create references to the 2 business objects I need
THIS.ADD("oCompany",   "CompanyObj")
THIS.ADD("oFinancial", "FinancialObj")
Then, in the ExecuteEvent() method of the Event object, I create local references to those objects:
LOCAL loCompany, loFinancial

loCompany   = THIS.GET( "oCompany" )
loFinancial = THIS.GET( "oFinancial" )
Now that I have my 2 business objects created, I can execute code like this to add records:


loCompany.New()
loFinancial.New()
.Signature { margin-top: 12px; color: #666666; } .Signature a { color: #666666; }
Chris McCandless
Red Sky Software
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform