Hi Bill,
Thank you for the awesome software. I'm using Ascendis 2.1.0.10, with a Whozz Calling 2.
The question: Can I make the display panel show Raw Name if the Contact has no name assigned?
That probably sounds funny--why would I have a Contact with no name assigned? Well, it occurs when I call out to a new phone number, then take the outgoing call entry in the Call List and put it into Contacts but I don't add name info yet--which suits my work style sometimes. Understandably, if that caller calls back before I've gotten around to adding name info, then of course no name is displayed in the display panel, just a number.
Instead of no name it would be helpful to see the Raw Name that the incoming call has. It would be scripted something like this, in effect:
If CallInfo.Display Name = '' [i.e. blank] Send CallInfo.RawName
which is probably wrong as I'm not too up on the scripting yet, but would like to learn. Looking at "Display.dwshtml" for the display panel I got confused right off the bat! There is no scripting for Callinfo.DisplayName or Callinfo.RawName--is that because those two objects are assumed and are already written into the underlying code? I'm guessing this must be the case...
Any help you can give to write this, would be very instructive! Thanks.
Display Raw Name if no name in Contacts
Re: Display Raw Name if no name in Contacts
Hi deb7890,
I changed the standard Display.dwshtml as you requested. The change will be included in the next beta release. You can replace your Display.dwshtml immediately with the following:
(For those following along, Display.dwshtml is in the Ascendis Caller ID program folder. You can open it with a text editor (like Notepad) and replace its contents with the above code. Once saved, Ascendis Caller ID will use it the next time a call is displayed.)
You were certainly on the right track. "CallInfo.RawName" did not occur in the standard Display.dwshtml because it was not used before now. "CallInfo.DisplayName" did not occur because in scripts, "CallInfo.Name" is used instead for historical reasons. (The Ascendis Caller ID help lists all available components of the CallInfo objects; the online version is at http://www.ascendis.com/callerid/help/c ... object.php.)
I should mention that the above change only affects the display panel in the main window of Ascendis Caller ID (the part with a blue background in new installations). None of the notification windows can take advantage of dwshtml files yet.
Finest regards,
Bill Root
Ascendis Software
Thank you for using it, and for your kind words!Thank you for the awesome software. I'm using Ascendis 2.1.0.10, with a Whozz Calling 2.
Yes, you can. And although there might not be many people using Ascendis Caller ID in the same way, I think the change is a good idea in general.The question: Can I make the display panel show Raw Name if the Contact has no name assigned?
I changed the standard Display.dwshtml as you requested. The change will be included in the next beta release. You can replace your Display.dwshtml immediately with the following:
Code: Select all
<html>
<head>
<title>Ascendis Caller ID Display Template</title>
<style>
body {###FONT_STYLE###}
</style>
</head>
<body style="margin: 0px;">
<table width = "100%" Xborder="1">
<tr>
<td valign="top">
<table xborder="1" xwidth="30%" style="font-size: 75%">
<tr>
<td>
<%
if (CallCount > 0) then
Send(CallInfo.CallBeganDateStr)
Else
Send(' ');
%>
</td>
</tr>
<tr>
<td>
<%
if (CallCount > 0) then
Send(StringReplace(CallInfo.CallBeganTimeStr, ' ', ' ', True, False))
Else
Send(' ');
%>
</td>
</tr>
<tr>
<td style="font-size: 60%"> </td>
</tr>
<tr>
<td VALIGN="BOTTOM"><% Send(IntToStr(NewCallCount) + ' New Calls'); %></td>
</tr>
</table>
</td>
<td width="100%" valign="top">
<table xborder="1" width="100%" valign="top" style="font-size: 100%; text-align: center">
<tr>
<td><%
if CallInfo.Name = '' then
begin
if CallInfo.Company <> '' then
Send(CallInfo.Company)
else
Send(CallInfo.RawName)
end
else if CallInfo.Company = '' then
Send(CallInfo.Name)
else
Send(CallInfo.Name + ' from ' + CallInfo.Company);
%></td>
</tr>
<tr>
<td><% Send(CallInfo.Number); %></td>
</tr>
<tr style="font-size: 75%">
<td><%
var s: String;
s := CallInfo.City;
if CallInfo.State <> '' then
begin
if s <> '' then
s := s + ', ';
s := s + CallInfo.State;
end;
if CallInfo.PostalCode <> '' then
begin
if s <> '' then
s := s + ' ';
s := s + CallInfo.PostalCode;
end;
Send(s);
%></td>
</tr>
</table>
</td>
<%
if CallInfo.PicturePathname <> '' then
begin
Send('<td style="align: center">' + #13#10);
Send('<img ALIGN="RIGHT" src="' + CallInfo.PicturePathname + '">' + #13#10);
Send('</td>' + #13#10);
end;
%>
</tr>
</table>
</body>
</html>
You were certainly on the right track. "CallInfo.RawName" did not occur in the standard Display.dwshtml because it was not used before now. "CallInfo.DisplayName" did not occur because in scripts, "CallInfo.Name" is used instead for historical reasons. (The Ascendis Caller ID help lists all available components of the CallInfo objects; the online version is at http://www.ascendis.com/callerid/help/c ... object.php.)
I should mention that the above change only affects the display panel in the main window of Ascendis Caller ID (the part with a blue background in new installations). None of the notification windows can take advantage of dwshtml files yet.
Finest regards,
Bill Root
Ascendis Software