By: Bart Cassady - bartong
hyperlinkReferenceExpression
2002-10-10 14:42
Your HTML export mechanism works great, except that we need dynamic URLs in the hyperlinkReferenceExpression. Judging by it's name, it was intended to be an expression that would evaluate $F() and $V().
Were you intending on implementing this functionality? We really need it.
Thanks.
Bart
By: Teodor Danciu - teodord
RE: hyperlinkReferenceExpression
2002-10-11 13:40
Hi,
I don't know what you mean ...
Of course, the hyperlink reference is an expression
and it is always dynamic. You can use report fields
and variables like in any other report expression.
What exactly is the problem?
Thank you,
Teodor
By: Bart Cassady - bartong
RE: hyperlinkReferenceExpression
2002-10-15 11:07
An example:
I've declared a field called "name", and I want to display a link in the detail band with the URL including the current data row value for "name". Note that I have substituted [ and ] for the less-than and greater-than symbols in this posting so it doesn't muck up the HTML.
[detail]
[band]
[textField hyperlinkType="Reference"]
[reportElement .../]
[textFieldExpression class="java.lang.String"]
"Link:" + $F{name}
[/textFieldExpression]
[hyperlinkReferenceExpression]
"/this?that=" + $F{name}
[/hyperlinkReferenceExpression]
[/textField]
[/band]
[/detail]
The textFieldExpression works fine, but the hyperlinkReferenceExpression produces the following compile error:
Error in compilation!
dori.jasper.engine.JRException: Errors were encountered when compiling report design:
P:\intranet\PAS_Dev\JasperReports\Template.java:165: Undefined variable: name
value = (java.lang.String)($F(name));
^
P:\intranet\PAS_Dev\JasperReports\Template.java:458: Undefined variable: name
value = (java.lang.String)($F(name));
^
P:\intranet\PAS_Dev\JasperReports\Template.java:751: Undefined variable: name
value = (java.lang.String)($F(name));
The ^ symbol is pointing directly at the "n" in "name".
It appears like you have not done the substitution of the $F(), and the Java compiler is rejecting it.
Thanks.
Bart
By: Teodor Danciu - teodord
RE: hyperlinkReferenceExpression
2002-10-15 14:43
Hi,
Judging from the error message, the problem
does not come from the hyperlink reference
expression, but some other expression on your
report.
It would be helpful if you send me the entire XML.
teodord@hotmail.com
Thank you,
Teodor
By: Bart Cassady - bartong
RE: hyperlinkReferenceExpression
2002-10-15 16:06
Argh!!!
Sorry for wasting your time Teodor. It turns out that I was using "$F()" instead of "$F{}".
I'm going to bang my head against the wall now...
Bart
hyperlinkReferenceExpression
2002-10-10 14:42
Your HTML export mechanism works great, except that we need dynamic URLs in the hyperlinkReferenceExpression. Judging by it's name, it was intended to be an expression that would evaluate $F() and $V().
Were you intending on implementing this functionality? We really need it.
Thanks.
Bart
By: Teodor Danciu - teodord
RE: hyperlinkReferenceExpression
2002-10-11 13:40
Hi,
I don't know what you mean ...
Of course, the hyperlink reference is an expression
and it is always dynamic. You can use report fields
and variables like in any other report expression.
What exactly is the problem?
Thank you,
Teodor
By: Bart Cassady - bartong
RE: hyperlinkReferenceExpression
2002-10-15 11:07
An example:
I've declared a field called "name", and I want to display a link in the detail band with the URL including the current data row value for "name". Note that I have substituted [ and ] for the less-than and greater-than symbols in this posting so it doesn't muck up the HTML.
[detail]
[band]
[textField hyperlinkType="Reference"]
[reportElement .../]
[textFieldExpression class="java.lang.String"]
"Link:" + $F{name}
[/textFieldExpression]
[hyperlinkReferenceExpression]
"/this?that=" + $F{name}
[/hyperlinkReferenceExpression]
[/textField]
[/band]
[/detail]
The textFieldExpression works fine, but the hyperlinkReferenceExpression produces the following compile error:
Error in compilation!
dori.jasper.engine.JRException: Errors were encountered when compiling report design:
P:\intranet\PAS_Dev\JasperReports\Template.java:165: Undefined variable: name
value = (java.lang.String)($F(name));
^
P:\intranet\PAS_Dev\JasperReports\Template.java:458: Undefined variable: name
value = (java.lang.String)($F(name));
^
P:\intranet\PAS_Dev\JasperReports\Template.java:751: Undefined variable: name
value = (java.lang.String)($F(name));
The ^ symbol is pointing directly at the "n" in "name".
It appears like you have not done the substitution of the $F(), and the Java compiler is rejecting it.
Thanks.
Bart
By: Teodor Danciu - teodord
RE: hyperlinkReferenceExpression
2002-10-15 14:43
Hi,
Judging from the error message, the problem
does not come from the hyperlink reference
expression, but some other expression on your
report.
It would be helpful if you send me the entire XML.
teodord@hotmail.com
Thank you,
Teodor
By: Bart Cassady - bartong
RE: hyperlinkReferenceExpression
2002-10-15 16:06
Argh!!!
Sorry for wasting your time Teodor. It turns out that I was using "$F()" instead of "$F{}".
I'm going to bang my head against the wall now...
Bart
0 Answers:
No answers yet