Interacting with the application |
App.Context.DiaryDate = date()
App.Context.DiaryDate = date()+1
App.Context.DiaryAssociateId = app.Database.UserAssociateId
App.Context.DiaryAssociateId = app.CurrentContact.Associate.Identity
Notice that when you change CurrentSale, the Current Contact, Person and Project are automatically set for you
This mechanism is at the heart of SuperOffice and it helps the system anticipate the user.
Setting the Current Sale, Appointment or Document all work in the same way. They all implicitly set the current Contact, Person and Project to their own contact, person and project values.
This can be unexpected at first, but you can use it to your advantage.
Up: Controlling the Application Prev: Error Handling Next: Using current Edit