This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Sep 24, 2013, 9:03 PM
12 Posts

Xpages - Mobile - Touch to Call

  • Category: Extension Library
  • Platform: Windows
  • Release: 9.0
  • Role: Developer
  • Tags: Mobile
  • Replies: 2

Hello,

I have developed an xpage site to be used as a Phone book. It is a static, read only page. I want to display the Phone Number as link, so when a user click on the number the phones dialer is invoked and a call is placed. I am not sure how to do this.

I am sure, there are several others who would have done this. Can some one help me with this.

Thanks,

Venkatesh

Sep 26, 2013, 7:52 PM
13 Posts
I have some ideas..

I have been working on the same thing.

First, I would use the Mobile Controls. Round List and Rounded List Item will give you a nice iPhone like look.

I put a computed field in the Rounded List Item. In it, I have this JS:

 

if(document1.getValue("CellPhone") == null)

{

"Not Availabe"

}

else

{

"<a href=tel:\""+ document1.getValue("CellPhone")+"\">"+document1.getValue("CellPhone") + "</a>"

}

 

I have similar for things like addresses (actually they are a little trickier. 

 

I hope this helps. Let me know if you have any other questions!

 

Bryan


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal