Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Computed column: email(search computed column function)
Computed column: email [message #662881] Fri, 01 April 2011 11:14 Go to next message
gin1975  is currently offline gin1975 Friend
Messages: 30
Registered: April 2011
Member
Hello,

Do you know any features that could be applied in a "Computed column" that is able to convert a row whose content is a string (a email. Example: email1@domain.com) and return another string that shows only the following string: domain (or domain.com) of this email.


Thanks!
Re: Computed column: email [message #662961 is a reply to message #662881] Fri, 01 April 2011 15:24 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

I did it like this once in a computed column:

var cls = new Packages.java.lang.String(row["emailaddress"]);
os = cls.substring( cls.indexOf("@")+1);


Jason

On 4/1/2011 7:14 AM, gin1975 wrote:
> Hello,
>
> Do you know any features that could be applied in a "Computed column"
> that is able to convert a row whose content is a string (a email.
> Example: mailto:email1@domain.com) and return another string that shows
> only the following string: domain (or domain.com) of this email.
>
>
> Thanks!
Previous Topic:Adding Column to Table
Next Topic:Cryptic Error Message when Running Report on Oracle
Goto Forum:
  


Current Time: Sat Dec 20 23:51:32 GMT 2014

Powered by FUDForum. Page generated in 0.05171 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software