Skip to main content



      Home
Home » Archived » BIRT » If condition in a hyperlink
If condition in a hyperlink [message #158284] Thu, 04 May 2006 11:37 Go to next message
Eclipse UserFriend
Hi

Can I use an if condition in the hyperlink expression builder?
I have tried something like this:
if( params["ReportNames"] =
'AddressDetails'){"/web"+groupName+" /AddressDetails?__report=AddressDetails.rptdesign&__navi gation=hide&EmpName= "+row["EMPLOYEE_NAME"]+"&GEN="+row["GEN"]}else
if( params["ReportNames"] =
'RaneEmployeeProfile'){"/web"+groupName+" /RaneEmployeeProfile?__report=RaneEmployeeProfile.rptdesign& amp;__navigation=hide&EmpName= "+row["EMPLOYEE_NAME"]+"&GEN="+row["GEN"]}

The report does not throw any error, but simply displays the first hyperlink
in the if condition.

Any help is appreciated

Regards
Dwarakanath
Re: If condition in a hyperlink [message #158323 is a reply to message #158284] Thu, 04 May 2006 12:45 Go to previous message
Eclipse UserFriend
Try == in your if statement.
I also dont see the { for the else statement.
Jason

"Dwarakanath" <dcheyyur@orangescape.com> wrote in message
news:e3d733$anh$1@utils.eclipse.org...
> Hi
>
> Can I use an if condition in the hyperlink expression builder?
> I have tried something like this:
> if( params["ReportNames"] =
> 'AddressDetails'){"/web"+groupName+" /AddressDetails?__report=AddressDetails.rptdesign&__navi gation=hide&EmpName= "+row["EMPLOYEE_NAME"]+"&GEN="+row["GEN"]}else
> if( params["ReportNames"] =
> 'RaneEmployeeProfile'){"/web"+groupName+" /RaneEmployeeProfile?__report=RaneEmployeeProfile.rptdesign& amp;__navigation=hide&EmpName= "+row["EMPLOYEE_NAME"]+"&GEN="+row["GEN"]}
>
> The report does not throw any error, but simply displays the first
> hyperlink in the if condition.
>
> Any help is appreciated
>
> Regards
> Dwarakanath
>
Previous Topic:labels at specific points
Next Topic:removing date at bottom of tables
Goto Forum:
  


Current Time: Thu May 08 14:58:54 EDT 2025

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

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

Back to the top