/ Forums / Advansys Formativ / Creating Solutions with Formativ / Multiple selected messages

  • Creator
    Topic
  • #4332
    dgerisch
    Participant

    I have an applet that uses Client.ClientState.CommandMessage to work on the one currently selected message. Is there an easy way to expand my applet to process every selected message? That is to say, if someone does a multiple select, and has eight messages selected, how would I capture that list, to then process each message in turn?

    Thanks!

  • Author
    Replies
  • #7847
    dgerisch
    Participant

    Never mind – I found it in the Developer’s Guide, Working with the GroupWise Message Store, Accessing Messages via the Client, Accessing Multiple Selected Messages.

    #7846
    Support 3
    Participant

    Just as a reference for other members, the code below shows the subject for the selected messages.

      
      dim oMsg
      dim oMessages
    
      set oMessages = nothing
      set oMessages = client.clientstate.selectedmessages
    
      if oMessages is nothing then
        exit sub
      end if
    
      for each oMsg in oMessages
        msgbox oMsg.subject
      next
    
      set oMsg = nothing
      set oMessages = nothing
    

    Regards,
    Advansys Support

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.