Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
How to add 'ALL','NO SELECT' into the Select
hcy1986
There is a parameter named RP_lpar,its display type is List Box and the Selection list values is dynamic from data set DS_Parm_Lpar.I want to add the 'ALL' and 'NO SELECT' into the selection list,now i do it in query like follows:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>select lpar from t_lpar
union
select 'ALL' from dual
union
select 'NO SELECT' from dual</pre>
But i don't want to do it in the db level,how do it in the birt?<br />
Any help appreciate very much?
Find more posts tagged with
Comments
HeSchag
did i get it right, that "dual" is an extra table and you would like to avoid that one?
why not simply leave out those two "from dual"?
meaning:
select lpar from t_lpar
union
select 'ALL'
union
select 'NO SELECT'
that should give the same result without that dual-table
hcy1986
<blockquote class='ipsBlockquote' data-author="'HeSchag'" data-cid="78879" data-time="1308723523" data-date="21 June 2011 - 11:18 PM"><p>
did i get it right, that "dual" is an extra table and you would like to avoid that one?<br />
<br />
why not simply leave out those two "from dual"?<br />
meaning:<br />
<br />
select lpar from t_lpar<br />
union<br />
select 'ALL' <br />
union<br />
select 'NO SELECT'<br />
<br />
that should give the same result without that dual-table<br /></p></blockquote>
Sorry,i don't mean this.<br />
I mean that how to dynamic add the value 'ALL' and 'NO SELECT' into the data set used by parameter.I want to do it with the birt instead of with sql.
hcy1986
please help me,thanks...