Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello!
It seems to be simple issue, but I was not able to find the answer myself, so I would need an expert advice from the forum members:
1. I have a US phone numbers field in the Table Box where the data is stored in simple numeric format: 2223334444
2. I would need it to be presented in the standard way: (222) 333-4444 or +1 (222) 333-4444, but I was not able to find the proper format in the "Number" tab of the TB Properties.
I would appreciate an advice.
Regards,
VK
You cannot do that kind of formatting in a TableBox. You have to do the formatting in either the script or a Straight Table chart using an expression like:
'(' & left(RawPhone,3) & ')' & mid(RawPhone,4,3) & '-' & mid(RawPhone, 7)
See the attached for an example of both methods.
-Rob
You cannot do that kind of formatting in a TableBox. You have to do the formatting in either the script or a Straight Table chart using an expression like:
'(' & left(RawPhone,3) & ')' & mid(RawPhone,4,3) & '-' & mid(RawPhone, 7)
See the attached for an example of both methods.
-Rob
Unless someone provides new and more useful information about this, I'm afraid you should create your own format with string functions like
in your load script or something similar anywhere in your graphs, as a phone number is not really a number (you don't add or substract one from another)'+1 (' & Left(PhoneField, 3) & ') ' & Mid(PhoneField, 4, 3) & '-' & Right(PhoneField, 4) AS PhoneField
Thank you, Rob and Miguel, it works perfectly!
Regards,
VK