Hi,
I need to allow my users to use their own address book.
Any userA visiting a userB profile should be able to click on a "Put in my address book" button and so get this userB (loginname and photo) to appear in his UserA address book.
What I keep getting instead is varied error messages and failure notices in the log viewer that I do not know how to correct. The best I could achieve was having UserB getting displayed in User B AddressBook...
For sure I'm missing something quite obvious, and I may well have elaborated something far too complicated but I cannot see how to achieve that.
Here is where I'm presently stucked:
BO AddressBook
Name
Member attribute of type SystemUser (peer, multiple allowed, matching attribute in SystemUser: Addressbook)
Owner attribute of type SystemUser (owned by, matching attribute in SystemUser: MyAddressBook)
BOs [Member and RegularUser] of type SystemUser
LoginName
AddressBook attribute of type AddressBook (Peer, Matching attribute in AddressBook, Existing: Member)
MyAddressBook attribute of type AddressBook (Peer, Matching attribute in AddressBook, Existing: Owner)
Plus, some error message required me to create an Owner attribute in my systemUser BOs (?), which I did just to test if there were any good.
There is also 1 process with SystemUser BO Group as input and with the following 3 process rules:
FIND 'All Address Books'
IF NOT(EXISTS AddressBook WHERE (AddressBook.Owner=LoggedInSystemUser))
THEN
CREATE AddressBook WITH LoggedInSystemUser.MyAddressBook.Owner=LoggedInSystemUser, LoggedInSystemUser.MyAddressBook.Member=ThisSystemUser
ELSE
LoggedInSystemUser.MyAddressBook.Owner=LoggedInSystemUser, LoggedInSystemUser.MyAddressBook.Member=ThisSystemUser
If AddressBook.Member WAS CHANGED AND NOT(EXISTS SystemUser WHERE (LoggedInSystemUser.AddressBook.Member.ID=ThisSystemUser.ID)) Then INSERT ThisSystemUser IN LoggedInSystemUser.AddressBook
Else REPORT ERROR 'This member is already in your address book.'
Thanks for any help.