Click or drag to resize

Interacting with the application

Display the diary for today
VB
App.Context.DiaryDate =  date()
Display the diary for tomorrow
VB
App.Context.DiaryDate =  date()+1
Display the diary for the current user
VB
App.Context.DiaryAssociateId =  app.Database.UserAssociateId
Display the diary for the owner of the current contact
VB
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