Login / Register  search  syndication  about

          Ryan Farley's Blog

Ryan Farley on .NET Development with a focus on CRM Development for SalesLogix

Creating Phone Links in SalesLogix 7.2 Web Client

If you're working with the new SalesLogix 7.2 Web Client & the Application Architect then the place to be is the slxdeveloper.com forum for the SalesLogix 7.2 Web. It has some really great discussions going on. One of these great discussions is where an slxdeveloper.com member needs to make the phone numbers hyperlinks. A user can click the phone number to launch a browser window, passing the phone number, to initiate a phone call. Let's take a look.

The following steps will convert the phone fields on the ContactDetails quickform to hyperlinks. When clicked, a new browser window will be launched and the phone number passed in the URL.

  1. Open the ContactDetails quick form under the Contact entity
  2. Locate the phone control named phnWorkPhone and remove it.
  3. Add a Button to the form where the phone control was before. Set the ButtonType to Link. Open the DataBindings and map the WorkPhone property to the control's Caption property.
  4. Create a LoadAction for the form and select C# Snippet for the action. Make sure you set the action's OnRepaintEvent to True (this is important).
  5. In the C# code for the action, we will get a reference to the current Contact entity and create the URL for the phone link button using the contact's WorkPhone value. We'll use the button control's OnClientClick property to set the javascript code to open the URL in a new window. The code will look like the following:

Sage.Entity.Interfaces.IContact contact = this.BindingSource.Current as Sage.Entity.Interfaces.IContact;
if (contact != null)
{
    buttonDial.OnClientClick = string.Format("window.open('http://mydeskphone/dial?number={0}');", contact.WorkPhone);
}

Easy and elegant. I completely love the new SalesLogix Web.

What's This?
  
Bookmark and Share

About Ryan Farley

   Ryan Farley is the Director of Development for Customer FX and creator of slxdeveloper.com. He's been blogging regularly about SalesLogix since 2001 and believes in sharing with the community. He loves C#, Javascript, Python, web development, open source, and Linux. He also loves his hobby as an amateur filmmaker.

View the SalesLogix Mobile Seveloper Series
View the SalesLogix SData Developer Series
View the Git for the SalesLogix Developer series



Related Content
   How to Disable the ComboBox Control in the Infor CRM (Saleslogix) Web Client
There's a problem with the ComboBox control in the Infor CRM (Saleslogix) Web Client. It won't di
Posted on Jan 22, 2015 by Ryan Farley to Ryan Farley's Blog
 
   Infor CRM (formerly Saleslogix) Web Client - How Time Zones Work
The Infor CRM web client utilizes  a couple of methods to determine and then present what timezones
Posted on Jan 09, 2015 by Kris Halsrud to Kris Halsrud's Blog
 
   Index of Posts for Starting with Infor CRM (Saleslogix) Development
The blogs on customerfx.com go all the way back to 2003. There's years and years worth of information
Posted on Dec 30, 2014 by Ryan Farley to Ryan Farley's Blog
 
   Bug with Binding a Picklist Control in the Infor CRM (formerly Saleslogix) Web Client v8.1 Core Update 3b
I just recently discovered a bug when using a picklist control with the  StorageMode set to "ID
Posted on Dec 29, 2014 by Kris Halsrud to Kris Halsrud's Blog
 
   Adding Filters to the Lookup Control at Runtime in the Infor CRM (formerly Saleslogix) Web Client
To add a new Lookup Pre-filter you can add code such as this on a quick form:LookupPreFilter preFilter =
Posted on Dec 22, 2014 by Kris Halsrud to Kris Halsrud's Blog
 
Comments

No Comments

Leave a Comment

(required)  
(optional)
(required)  
Add
All contents Copyright © 2015 Customer FX Corporation
Customer FX Corporation
2324 University Avenue West, Suite 115
Saint Paul, Minnesota 55114
Tel: 800.728.5783

  Follow @CustomerFX on twitter
Follow the best news, tips, and articles
  Subscribe to Customer FX on youtube
Watch SalesLogix tutorial videos from Customer FX
Login / Register