How can a table hyperlink parameter refer to another row? [message #499963] |
Tue, 24 November 2009 10:31  |
Eclipse User |
|
|
|
I have searched and searched, but cannot solve the following problem, so I am posting here.
Question:
How can I make a hyperlink input parameter in a table refer to data that is not in the current row of the dataset, but in the same column where row number = X or meets a certain condition?
Example:
DATASET:
ID, col_01, col_02
-1, 09-11-14, 09-11-15
1, Red, Green
2, Amber, Grey
When I click on [ Red | Green | Amber | Grey ] in the table, I want to launch a sub-report which requires the input parameter (date) contained in the first row for that column (or, the row where ID = -1).
Is there an expression I can put into the hyperlink parameter Expression Builder which will refer to the date in the same column where ID = -1 ?
My data looks this way because I had to make a complicated DataSet SQL query which pivoted data from rows to columns; this is why my dates are contained in the first row returned by my dataset (the "-1" is hard-coded into the SQL).
The dates are not contained in the current Detail row, so I don't know how to refer to them in a hyperlink parameter / expression.
Thanks!
|
|
|
|
|
|
|
|
|
Re: How can a table hyperlink parameter refer to another row? [message #501205 is a reply to message #501169] |
Tue, 01 December 2009 09:30  |
Eclipse User |
|
|
|
Not needed as long as the value is set before used, which is the case
with the sample.
Jason
Lawrence Gaalswyk wrote:
> Jason, your method works great!
>
> The only question I have is why (or if) the following is needed; it is
> not present in your example and I did not do it, yet all works fine:
>
>> I define myhyp in the table onPrepare to be blank;
>> ie myhyp="";
>
> Thanks again, Jason.
|
|
|
Powered by
FUDForum. Page generated in 0.05439 seconds