#6812
Support 1
Participant

    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