Skip to main content



      Home
Home » Archived » BIRT » Query question
Query question [message #84701] Thu, 27 October 2005 05:56 Go to next message
Eclipse UserFriend
Hello,

I tried to use following query in a dataset:

SELECT * FROM MyTable WHERE ?

And the I added a parameter called dsParam1 with default value:

"Amount > 1000"

So the query should be combined by BIRT to:

SELECT * FROM MyTable WHERE Amount > 1000

If I test the result preview there is no result. Only the column headers are
shown, now result even if there are records with Amount > 1000.
So my quetions are those parameters allowed?

Thanks a lot for help!
Re: Query question [message #84973 is a reply to message #84701] Thu, 27 October 2005 16:34 Go to previous messageGo to next message
Eclipse UserFriend
Mr. Burns,

I am new to Birt but I believe you have to specify the "Amount > ?" in your
where clause of your query and just specify the actual parameter within the
parameter window.


"Mr. Burns" <Mr._Burns@web.de> wrote in message
news:djq87l$8tq$1@news.eclipse.org...
> Hello,
>
> I tried to use following query in a dataset:
>
> SELECT * FROM MyTable WHERE ?
>
> And the I added a parameter called dsParam1 with default value:
>
> "Amount > 1000"
>
> So the query should be combined by BIRT to:
>
> SELECT * FROM MyTable WHERE Amount > 1000
>
> If I test the result preview there is no result. Only the column headers
> are shown, now result even if there are records with Amount > 1000.
> So my quetions are those parameters allowed?
>
> Thanks a lot for help!
>
>
>
>
Re: Query question [message #85048 is a reply to message #84973] Thu, 27 October 2005 17:50 Go to previous message
Eclipse UserFriend
Mr. Burns,

Marty is correct. You can modify the whole query in the BeforeOpen method
if you need to do something like append to the SQL.

Jason Weathersby
BIRT PMC

"Marty Jones" <marty_jones@dailyaccess.com> wrote in message
news:djrdl2$ur8$1@news.eclipse.org...
> Mr. Burns,
>
> I am new to Birt but I believe you have to specify the "Amount > ?" in
> your where clause of your query and just specify the actual parameter
> within the parameter window.
>
>
> "Mr. Burns" <Mr._Burns@web.de> wrote in message
> news:djq87l$8tq$1@news.eclipse.org...
>> Hello,
>>
>> I tried to use following query in a dataset:
>>
>> SELECT * FROM MyTable WHERE ?
>>
>> And the I added a parameter called dsParam1 with default value:
>>
>> "Amount > 1000"
>>
>> So the query should be combined by BIRT to:
>>
>> SELECT * FROM MyTable WHERE Amount > 1000
>>
>> If I test the result preview there is no result. Only the column headers
>> are shown, now result even if there are records with Amount > 1000.
>> So my quetions are those parameters allowed?
>>
>> Thanks a lot for help!
>>
>>
>>
>>
>
>
Previous Topic:How to change properties in OnRow, OnCreate etc.?
Next Topic:New ODA Datasource
Goto Forum:
  


Current Time: Wed May 07 15:46:04 EDT 2025

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

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

Back to the top