Hello,
I'm trying to pass an alias.column_name off through a view-time parameter used in my query, however whenever I do I get empty results. I imagine this is because the Birt Spreadsheet Designer is encapsulating my parameters with single or double quotes and since i'm referring direcetly to a column name and not a value mysql isn't returning anything.. I had the same problem with birt/eclipse but I got around it by just creating a javascript before the dataset was queried and replaced the values in the query w/out quotes.
EX:
RP_property ,is my parameter.
SELECT *
FROM property_info AS pi
WHERE pi.propertyid = :RP_property
....
Now if I set RP_property to a valid entry say 001 it works no problem; but if I set it to pi.propertyid ,it returns nothing. It should return the entire table. I don't know if there's a way to show the generated query somehow after all parameters and what not get filled in at run time, so i'm just guessing it's because of some quotes being added.
I'm sure there's an easy work around with the spreadsheet designer/java api i don't know about yet. I'm still rather new in the realm.
Please let me know if you have any suggestions or thoughts!
Page 1 of 1
Parameters without quotes
Page 1 of 1






MultiQuote