cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic url link using WEOpenInNewWindowLink

Former Member
0 Kudos

Hi all,

i am trying to built a report where on click of each metric id it will pass a dynamic url link ,since i have to open that url in a new window with no tool bar and no menu bar. i have implemented the function WEOpenInNewWindowLink .

code :

(@path)="http://72.30.53.105:8090/DashBoard/helpFrameset.jsp?METRIC_ID="+{table.metric_id}

Metrc_id =WEOpenInNewWindowLink ({(table.metric_id) }, "w3", {@path}, {@font}, 300, 500, True, 0, 0, False, False, False, False, False)

Then I put the object <Metrc_id >in detail field, so that it can generate different url for their respective metric id, But its not happening,

Event

So on click (table.metric_id)

1 --> "http://72.30.53.105:8090/DashBoard/helpFrameset.jsp?METRIC_ID="+{table.metric_id}

2--> http://72.30.53.105:8090/DashBoard/helpFrameset.jsp?METRIC_ID=2

Any suggestion .....

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi all,

Finally itâu20AC(tm)s solved, instead web elements function, I used the java script of open window function,

The problem is with the open window function is working fine in report header but not working in the detail field .What I studied this is happening because the function âu20ACu0153open windowâu20AC is creating pop window by a single named function,

if you change the name of open window function then the pop window works fine .

''+

'function openwindow'{@sl no}'()

{''window.open("http://www.google.com?'{@METRIC_ID}'","mywindow","menubar=1,resizable=1,width=350,height=250")}'

'</script>'+

'<A href="#" onClick="javascript: openwindow'{@METRIC_ID }'()">commentry</A>'

thanks

itesh

JWiseman
Active Contributor
0 Kudos

hey Itesh,

in the 2.2 function suite, there's a new function called WESubmitLinkToTargets which allows one to open

a) reports in new named windows...so on a details section you could dynamically change the name

b) to the same named window

c) to a named iframe, etc.

d) update multiple windows or multiple iframes (with different reports) using the same link or button.

check out the webElementsSubmitLinkToTargets sample in the webelements22.zip download on the main webelements page at http://diamond.businessobjects.com/node/255

cheers,

jw

Former Member
0 Kudos

Thanks Wiseman,

Itâu20AC(tm)s a good suggestion, I already tried that option too, but the problem I faced is passing the dynamic link value from the main report to the sub report while clicking the objects from the detail field,

I made it possible only by modifying the open new window function, the problem is with new open window function while accessing from detail field every time itâu20AC(tm)s hitting to the same window. So just concatenate slno with the open window name.

thanks

Itesh

JWiseman
Active Contributor
0 Kudos

hey Itesh,

sorry about that...i didn't quite understand due to not properly reading your question.

glad that you got it to work!

i tested the issue out with the original WEOpenInNewWindowLink (for the sake of ensuring there wasn't a bug there) and was able to get that function to pass info to google as an example like the following...

WEOpenInNewWindowLink ({Customer.Customer Name}, {Customer.Customer Name}, "http://www.google.com/search?hl=en&q=" + {Customer.Customer Name}, "", 350, 250, true, 250, 250, true, true, true, true, true)

this will call a named window each time passing the desired context...hopefully this was what you were looking for

Former Member
0 Kudos

Thanks Wiseman.

What u explained is 100% true, no doubt about that .

thanks for Ur response. Next time onwards I will try to give U a clear View.

Again thanks for Ur Cooperation

Itesh

Answers (0)