/ Forums / Advansys Formativ / Creating Solutions with Formativ / Filtering Task List / Reply To: Filtering Task List
December 15, 2003 at 3:22 pm
#6812
To access the subjects of messages via the GroupWise Object API, use something like the following code sample:
Sub Main(Client, GWEvent) dim iFilter dim oMessage dim oMessages iFilter = "(TASK AND NOT COMPLETED)" set oMessages = Groupwise.Account.Calendar.Messages.Find(iFilter) msgbox oMessages.Count ' The two following FOR statements are equivalent. for i = 1 to oMessages.Count msgbox oMessages.Item(i).Subject next 'for each oMessage in oMessages ' msgbox oMessage.Subject 'next set oMessage = nothing set oMessages = nothing End Sub
On choosing an appropriate user interface, note the significant difference between the HTML dialog and HTML portal. The dialog is modal while the portal is modeless. Be sure to read through the Formativ Programmer’s Guide, on the Portal Manager and/or HTML Dialogs. I suggest you study some example applets that use the Formativ Portal, and that generate HTML to be loaded into a Portal. A good one to start with is the Formativ Applet: Print Message. I hope this helps.
Advansys Support