Forum Replies Created

Viewing 15 replies - 811 through 825 (of 929 total)
  • Author
    Replies
  • in reply to: Difference between 6.5.4 & 6.5.6 ? #7726
    Support 3
    Participant

      The following sample code works fine in GroupWise 6.5.6 (build: 1/02/2006). Can you reproduce the same behaviour in another account?

        
      set oBook = GroupWise.Account.AddressBooks.item("Test")
      iFilterSyntax = "(<E-Mail Address> CONTAINS """ & GroupWise.account.owner.emailaddress & """)"
      set oResults = oBook.addressbookentries.find(iFilterSyntax)
      
      for each oEntry in oResults
        msgbox oEntry.displayname
      next
      
      set oEntry = nothing
      set oBook = nothing
      set oResults = nothing
      

      Regards,
      Advansys Support

      in reply to: Delete an addressbook #7720
      Support 3
      Participant

        Thanks “lp_irovetz” for your suggestions.

        GroupWise.AddressBooks object represents the Formativ wrapping of the GroupWise address books. It is provided in order to make it simpler to access fields, especially in multi-lingual GroupWise clients. If you require access to the native GroupWise address books object model, access the GroupWise.Account.AddressBooks property.

          
        Set adrBooks = GroupWise.Account.AddressBooks
        
        For each oBook in adrBooks
          If ((oBook.Name = "MyBook") and (oBook.ObjType = fgwNovellPersonal)) Then
            oBook.Delete()
          End if
        Next
        

        Note: You may need to restart the GroupWise to refresh AddressBooks collection after you delete an address book.

        Hope this helps.

        Regards,
        Advansys Support

        in reply to: Returning selected value from TrzListView #7719
        Support 3
        Participant

          Use ListItem.SubItems to read the value relate to the column. SubItems is a TStrings (Delphi) which is the base class for objects that represent a list of strings. Some common properties and methods of the SubItems are: count, commatext, text, indexof.

          See the sample code below to read the selected item SubItems value. Index gives the position of the string, where 0 is the position of the first string, 1 is the position of the second string, and so on.

            
          if (CDIP_FRM.ListView.itemindex < 0) then
            msgbox("Select an item from the list to proceed.")
            CDIP_FRM.ListView.setfocus
            exit sub
          end if
          
          set oListItem = CDIP_FRM.ListView.selected
          
          msgbox oListItem.Caption & vbcrlf &_
          oListItem.SubItems.Strings(0) & vbcrlf &_
          oListItem.SubItems.Strings(1)
          

          Hope this helps.

          Regards,
          Advansys Support

          in reply to: programmatically activate an account #7705
          Support 3
          Participant

            Thanks for your feedback. If you have any further questions, please do not hesitate to contact us. Alternatively, you can post GroupWise Object API related questions into the following forum:
            http://groups.google.com.au/group/novell.devsup.gwobjapi?hl=en

            Regards,
            Advansys Support

            in reply to: programmatically activate an account #7701
            Support 3
            Participant

              You can use the Proxy, MultiLogin or Login method in the Application object. These methods will access the account object when that account is not active in the GroupWise window. Login and MultiLogin method requires a user ID and password of the account. The MultiLogin method requires only a UserID with a Trusted Application (GroupWise 5.5 and later versions). Assuming the account has the proxy rights then you can use the Proxy() method to access the account object.

                
              set oAccount = GroupWise.account.parent.proxy("test")
              msgbox oAccount.owner.displayname
              

              Hope this helps.

              Regards,
              Advansys Support

              in reply to: Search after Email-Address in addressbook #7718
              Support 3
              Participant

                You need to search AddressBook.AddressBookEntries collection to find items in the address book. See the “Filter Expressions” to modify the search criteria.

                  
                  set oBook = groupwise.account.addressbooks.item("Formativ")
                  set oABEntries = oBook.AddressBookEntries.Find("(<E-Mail Address> CONTAINS ""*@advansyscorp.com*"")")
                
                  for each oEntry in oABEntries
                    msgbox oEntry.DisplayName & vbcrlf & oEntry.EmailAddress
                  next
                

                Regards,
                Advansys Support

                in reply to: programmatically activate an account #7707
                Support 3
                Participant

                  quote:


                  Originally posted by Support 3:
                  Unfortunately you can not use the quick messages collection on a proxied account. See the Object API note about the GetQuickMessagesCollection method:

                  quote:


                  http://developer.novell.com/documentation/gwobjapi/index.html?gwobjenu/data/h7ikbsqg.html
                  QuickMessages GetQuickMessagesCollection(Date StartDate, QuickMessagesCreationConstants eHowBuildList)

                  The QuickMessages collection should return message items quicker than other ways (such as the AllMessages collection or querying objects with their message lists). It is very fast when returning new messages, but retrieving modified messages is somewhat slower. The slowest is to retrieve all messages from an account.

                  GetQuickMessagesCollection should be called only on a main account. Calling this method from a Proxy account results in an error.

                  Messages in a folder that have been shared do not appear in the resulting QuickMessages collection. These folders are not part of the user’s database and are outside of the account.

                  Folder contains a similar method. However, the Account object method uses every message in the account, while the Folder object method looks through message items that are in the specified folder.

                  NOTE:This method does not return hidden messages. For GroupWise 6.5, SP3 and later versions, call the GetQuickMessagesCollectionExt method to return hidden messages.

                  This method is available only in GroupWise 6.5, SP 2 and later versions.


                  Seems like you have to use the Allmessages method on a proxied account and GetQuickMessagesCollection method on the main login account. See the sample code below. You can modify the filter expression to specify date, message type, etc.

                    
                    if Client.clientstate.currentaccount.proxied then
                      set oMessages = Client.clientstate.currentaccount.Allmessages.Find("(NOTE)")
                      msgbox oMessages.count
                    else
                      set oMessages = groupwise.account.GetQuickMessagesCollection(date, 1)
                      msgbox oMessages.count
                    end if
                  

                  Hope this helps.

                  Regards,
                  Advansys Support


                  in reply to: Equivalent to Selectbox #7717
                  Support 3
                  Participant

                    You can use the ListBox or ListView. From the Formativ Form Designer, select Enhanced tab then choose RzListBox or RzListView. See the link below to see the documention about the Raize Component:
                    http://www.advansyscorp.com/forums/topic/3971028821/

                    Hope this helps.

                    Regards,
                    Advansys Support

                    in reply to: DocumentReference #7715
                    Support 3
                    Participant

                      We are unable to reproduce the same behaviour you described above. If we select a message with attached document reference, the code above return the subject of the document. Here are the steps we followed:

                      • Select a document reference and forward as an attachment
                      • Select the message with document reference attached
                      • Run the sample code from message toolbar.

                      If the document is corrupt then you may get the error to access the subject, can you try the sample code with different document reference. Please let us know if we missed any steps.

                      Regards,
                      Advansys Support

                      in reply to: programmatically activate an account #7704
                      Support 3
                      Participant

                        quote:


                        When I use the code you suggest then switching to the proxied account (test) works fine. But when switching to the mainaccount I got a message that I have no rights to proxy to that account.


                        Make sure the “Test” account has appropriate access rights to proxy back to “Main” account. In “Main” account, select “Tools – Options – Security – Proxy Access” to see the access rights.

                        Regards,
                        Advansys Support

                        in reply to: Find calendar items in Groupwise 7 #7709
                        Support 3
                        Participant

                          Object API does not provide any access to the sub calendar in GroupWise 7. We have reported this issue to Novell since GroupWise 7 released and waiting for the response.

                          Regards,
                          Advansys Support

                          in reply to: programmatically activate an account #7698
                          Support 3
                          Participant

                            You can use the GroupWise.Proxy() method to proxy to an account and back to the main account. The sample code below will proxy to an account and proxy back to the main account:

                              
                              if Client.clientstate.currentaccount.proxied then
                                call GroupWise.Proxy("MainAccountUserID", prwCurrentWindow)
                              else
                                call GroupWise.Proxy("ProxyAccountUserID", prwCurrentWindow)
                              end if
                            

                            If we have misunderstood your question, please let us know.

                            Regards,
                            Advansys Support

                            Support 3
                            Participant

                              We can reproduce the behaviour you described above although not sure why the GroupWise Add On Directory facility only install “Message Saver” solution not the “Advansys Formativ Framework for .NET 1.0”. If you run the “Message Saver” pack in silent mode using Command Line switches then both “Message Saver” solution and “Advansys Formativ Framework for .NET 1.0” get installed. We need to investigate further for this issue.

                              In the meantime, you can install Advansys Framework for .NET separately using GroupWise Add On Directory facility. Please note, “Advansys Formativ Framework for .NET 1.0” is a Microsoft Installer (MSI) file. Use “/quiet” command-line switch to run this MSI file on silent mode. See the web page below for more command line switches:
                              http://support.microsoft.com/kb/262841

                              Hope this helps. Please do not hesitate to contact us if you have any further questions.

                              Regards,
                              Advansys Support

                              in reply to: Are messages marked with an account identifier #7696
                              Support 3
                              Participant

                                Thanks for the update.

                                Regards,
                                Advansys Support

                                in reply to: programmatically activate an account #7702
                                Support 3
                                Participant

                                  You can use GroupWise.Proxy(UserID, aWindow) method to proxy to an account. See the Formativ Language Guide for more information.

                                    
                                  call GroupWise.Proxy("Test", prwCurrentWindow)
                                  

                                  Once you proxy to an account, you can check “Client.clientstate.currentaccount.proxied ” property prior to proxying back to the main account.

                                  Hope this helps.

                                  Regards,
                                  Advansys Support

                                  [This message was edited by Support 2 on August 17, 2006 at 11:41 PM.]

                                Viewing 15 replies - 811 through 825 (of 929 total)