Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 14 Oracle Analytics Lounge
- 211 Oracle Analytics News
- 41 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 77 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
OBIEE Column Formula as href

Hello,
I have a report in which when I click on a column's data (here data is URL), it opens up an image. But, it opens up in the same window. How can I use a column formula as href and open the URL in the column data (when clicked) in a new tab?
I am using this formula with column's data format set to HTML:
'<a href='||"Table Name"."Column Name"||'target="_blank"></a>'
This doesn't work. Can someone please advise?
Thanks in advance.
Answers
-
Hi,
This as already been answered at least once (this exact same need) on here ...
First: why don't you use a column format instead of writing HTML in the formula?
When you say "This doesn't work" what do you mean? What happen? The link doesn't work or it just doesn't open in a new window?
Why don't you have anything between <a...> and </a> ? Without your link is just not visible... Don't you miss a space between ' and target ?
0 -
Gianni,
Yes, it has been addressed couple of times but couldn't find the right solution. Hence, a request,
1. Do you want me to check "Contains HTML Markup" in Column Format?
2. If I don't have any HTML in my formula and go back to actual column formula, it works after setting HyperText as column's data format. But, when I click the data in the column, it opens in the same window. I want it to open it in a new window hence I had to use HTML code. This code doesn't work.
3. I did not understand by what you meant 'not having anything'?
Thanks.
0 -
3188216 wrote: This doesn't work.
Yes it does.
Prodney / Admin123 for both
0 -
ad 3.) he means <a href...></a> renders as NOTHING. <a href...>BlaBla</a> renders as BlaBla
0 -
Thanks Christian. But here's the problem, if I replace your URL with my column name, it doesn't work. Because my column contains data that are URL's. Please see below:
'<a href="http://www.google.com" target="_blank">This is a URL</a>'
with
'<a href="Table Name"."Column Name" target="_blank">This is a URL</a>'
0 -
You had the missing bit before - why don't you do it as you've initially written?!
'<a href="' || "Table Name"."Column Name" || '" target="_blank">This is a URL</a>'
It's not rocket science, just logic.
0 -
Try at least to respect the syntax a bit ....
'<a href="' || "Table name"."Column name" || '" target="_blank">this is is a URL</a>'
EDIT: Christian, same reaction in the same time
0 -
Man you're too slow :-P
0 -
I guess I learnt it the hard way. Appreciate it.
0 -
It's all about concatenation and proper usage of ' vs " in the right places. If this solves your issue can you please mark the appropriate responses as helpful and/or correct. Right now the thread is still open and marked as
This question is Not Answered.
0