BIRT Exchange Forum: How to create a dynamic dataSet - BIRT Exchange Forum

Jump to content


 

BIRT Poll: To best make a table fill a pdf page before breaking (PL=page layout, PBI=page break interval) set:

PL: auto, PBI: 0PL: fixed, PBI: 0PL: auto, PBI: 1000000PL: fixed, PBI: 1000000
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to create a dynamic dataSet How to create a dynamic dataSet Rate Topic: -----

#1 User is offline   EmaAlina Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 23-May 12


Posted 06 June 2012 - 07:30 AM

Hy guys,

It is possible to create a dynamic dataSet into a method as : <method name="beforeOpen"><![CDATA[ MyQuery ]]></method> based on the outcome of "MyQuery"?
This dynamic dataSet I want to use it then in a JoinDataSet with other dataSet.

Thanks,
0

#2 User is offline   LeinadJan Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 41
  • Joined: 14-July 10


Posted 14 June 2012 - 06:02 AM

Hello,

why do you want to call a dynamic dataset ? Can't you filter all your necessary information from the start. It should be the database who do all the work for you. No scripting needed.

Maybe your datasets will be more complex, but it will be faster and easier to maintain.

select * from (select case when :param1 = '1' then
(select stragg(x) from (select 1 x from dual union select 2 from dual))
when :param1 = '2' then
(select stragg(x) from (select 2 x from dual union select 3 from dual))
else
(select stragg(x) from (select 3 x from dual union select 4 from dual))
end dyn_select
from dual);

Leinad
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users