03-08-2011 01:11 AM
Hello,
we are wondering why the icons on the history list, doesn't work very well...
I have seen a post here to changew some values in the history.cs .
But which values are to be changed? Is there a fix accounced by the development?
Kind Regards
Tobias
03-08-2011 01:29 AM
Please be more specific: when you say that they don't 'work very well', what do you mean?
03-08-2011 01:41 AM
Hello,
thanks for the quick reply.
in the HistoryList are several entries, DBChanges, Meeting, Phonecalls etc, but only the icon for Meeting is displayed on every entry! This icon is spezified in the Coda es default-icon....
The Select-Case Statement is not working, and I have no chance to debug right now...
Kind Regards
Tobias
03-08-2011 01:58 AM
I do not think that this is an out-of-the-box bug, as I cannot reproduce it. I just tried the Cloud Demo site too and that looks fine.
03-08-2011 02:39 AM
Hi,
could you please send me the code of the historylist.ascx.cs of the cloud machine?
I only need the code of the "protected static string GetImage(object activityType)"
It still does not work on my machine...
Thanks in Advance
Tobias
03-08-2011 02:44 AM
protected static string GetImage(object activityType) { const string meetingURL = "images/icons/Meeting_16x16.gif"; switch (activityType.ToString()) { case "Meeting": case "atMeeting": return meetingURL; case "atAppointment": return meetingURL; case "Phone Call": case "atPhoneCall": return "images/icons/Call_16x16.gif"; case "To-Do": case "atToDo": return "images/icons/To_Do_16x16.gif"; case "Personal": case "atPersonal": return "images/icons/Personal_16x16.gif"; case "atDoc": return meetingURL; default: return meetingURL; } }
03-08-2011 03:09 AM
03-08-2011 03:34 AM
I'm sorry - I don't know what could cause that behaviour. If you check the same database with the LAN client, do the icons appear correctly?
03-11-2011 01:24 AM
Hi,
I suppose it's an error in the localized version of SalesLogix.
@Tobias: are you using the German Version of SalesLogix?
If you have a look at the source code you will see, that it's only checking activityType.ToString() for the English version, but in the German Version a phone Call is passed as "Anruf" (you are able to see that an debug that scripts within Visual Studio):
protected static string GetImage(object activityType)
{
const string meetingURL = "images/icons/Meeting_16x16.gif";
switch (activityType.ToString())
{
case "Meeting":
case "atMeeting":
return meetingURL;
case "atAppointment":
return meetingURL;
case "Phone Call":
case "atPhoneCall":
return "images/icons/Call_16x16.gif";
case "To-Do":
case "atToDo":
return "images/icons/To_Do_16x16.gif";
case "Personal":
case "atPersonal":
return "images/icons/Personal_16x16.gif";
case "atDoc":
return meetingURL;
default:
return meetingURL;
}
}
If you change:
case "Phone Call":
case "atPhoneCall":
return "images/icons/Call_16x16.gif";
to
case "Phone Call":
case "atPhoneCall":
case "Anruf":
return "images/icons/Call_16x16.gif";
It wil work for phone call after these changes, but you have to review the complete source code (Activities, History etc.) for all other case, e.g Personal Activity, To-Do, which are all passed as German.
Cheers,
Thomas
03-11-2011 01:42 AM
Hi Thomas,
this exsacly the way I did it..
I think this is a localization error.
In the "What's new" screen all is displayed right, but the code is the same....
Regards
Tobias