Forum Replies Created
-
AuthorReplies
-
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 = nothingRegards,
Advansys SupportThanks “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 NextNote: You may need to restart the GroupWise to refresh AddressBooks collection after you delete an address book.
Hope this helps.
Regards,
Advansys SupportUse 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 SupportThanks 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=enRegards,
Advansys SupportYou 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.displaynameHope this helps.
Regards,
Advansys SupportYou 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 nextRegards,
Advansys Supportquote:
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 ifHope this helps.
Regards,
Advansys Support
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 SupportWe 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 Supportquote:
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 SupportObject 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 SupportYou 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 ifIf we have misunderstood your question, please let us know.
Regards,
Advansys SupportAugust 17, 2006 at 7:38 pm in reply to: “Message Saver Pack 2.0.3” and “Advansys Formativ Framework for .NET 1.0” #8897We 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/262841Hope this helps. Please do not hesitate to contact us if you have any further questions.
Regards,
Advansys SupportThanks for the update.
Regards,
Advansys SupportYou 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.]
-
AuthorReplies