Dear JM07,
I have meet similar issue aswell as you did and since no reply in this forum to any of my questions i have investigate more deeper the code of CuteSoft. Here is an example of what you could give instead of that ContactsArray thingy from ChatUI_IMMain.xml
Create a property similary to this:
public string ContactsArray
{
get
{
EntityCollection collection = GetUsersOfSameTherapy(Guid.Empty);
string usrList = "";
foreach (UserEntity user in collection)
{
CuteChatUser chatUsr = GetChatUser(user.ID);
bool isOperator = false;
CuteSupportOperator supportOperator = ChatApi.FindOperator(chatUsr.UniqueName);
if (supportOperator != null)
isOperator = true;
bool isOnline = ChatApi.IsUserInstantOnline(chatUsr.UniqueName);
string status = "OFFLINE";
if (isOnline)
status = "ONLINE";
usrList += @"{'IsOperator': " + isOperator.ToString().ToLower() + @", 'RelationType': 'FRIEND', 'UserId': " + chatUsr.UserId + @", 'OnlineStatus': '" + status + @"', 'DisplayName': '" + chatUsr.DisplayName + @"'},";
}
usrList = usrList.Remove(usrList.Length - 1);
return usrList;
}
}
Then in javascript on the embed messenger or wherever set a variable that will get this string for ex:
var myTest = new Array( <%# ContactsArray %>);
And then all you have to do is give this variable further into the xml file.
Good luck. And i really hope this forum can sometime give answers to more complex questions aswell.