Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Reply
Copper Super Contributor
Posts: 67
Registered: ‎11-16-2009

7.5.3 WebClient: Icons in History List

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

 

Nickel Contributor
Posts: 93
Registered: ‎01-02-2010

Re: 7.5.3 WebClient: Icons in History List

Please be more specific: when you say that they don't 'work very well', what do you mean?

Copper Super Contributor
Posts: 67
Registered: ‎11-16-2009

Re: 7.5.3 WebClient: Icons in History List

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

Highlighted
Nickel Contributor
Posts: 93
Registered: ‎01-02-2010

Re: 7.5.3 WebClient: Icons in History List

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.

Copper Super Contributor
Posts: 67
Registered: ‎11-16-2009

Re: 7.5.3 WebClient: Icons in History List

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

Nickel Contributor
Posts: 93
Registered: ‎01-02-2010

Re: 7.5.3 WebClient: Icons in History List

 

    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;
        }
    }

 

 

Copper Super Contributor
Posts: 67
Registered: ‎11-16-2009

Re: 7.5.3 WebClient: Icons in History List

Hello,

I have pasted the code in the history.ascx.cs and the entries are still on the type meeting.

Perhaps I have to install the new Patches available?

Regards
Tobias
Nickel Contributor
Posts: 93
Registered: ‎01-02-2010

Re: 7.5.3 WebClient: Icons in History List

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?

New Member
Posts: 1
Registered: ‎06-20-2010

Re: 7.5.3 WebClient: Icons in History List

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

Copper Super Contributor
Posts: 67
Registered: ‎11-16-2009

Re: 7.5.3 WebClient: Icons in History List

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