on 05-15-2005 9:30 AM
Hello,
I have created a table UI with a certain column that contains email addresses. I would like to turn this column into a link that by pressing it will open new mail message with the default mail editor (In my case it is Outlook).
How do I do that?
Hi,
you can use LinkToURL UI element with "reference" property starting with "mailto:" for example - "mailto:me@my.com"
Regards, Maxim R.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Maksim,
I'm sorry I am not quite following you.
1. After adding new column editor to an existing table, I don't see an option to set it as LinkToURL. I only see it when creating the wholw table in the wizard but not after creating the table and adding a column and a column editor inside it.
2. I don't understand step 2. If I already have "mail" attribute, why creating mailTo attribute under the same node and how exactly do I set it's value? Do you mean to put inside the attribute the string: return "mailto:" + element.getMail(); ?
1. To set a LinkToURL as table cell editor: In the <b>outline view</b>, select the table column, right-click to open the context menu and choose "Insert table cell editor" (or similar). This should open a dialog where you can select the type of table cell editor. Among these you will find LinkToURL.
2. If you already have a context attribute that stores the mail address, you need an additional (calculated) attribute that returns mailto:<address>. In the get-method generated for this calculated attribute you simply return "mailto:" + <address> as described.
Armin
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.