problem with dataset calling stored procedure
Hello,
I have a report in which I have 2 datasets d1, d2.
Report execution is like this:-
d1 query selects a column from table and retuns a1, a2, a3,a4 as value.
d2 calls a stored procedure which inserts data in table "temp." using parameter value as a1, a2, a3, a4.
So I created a table assciated with d1 dataset. Added a detail row having table associated with d2 dataset. In table parameter binding changed parameter value to a1,a2,a3,a4. Like we do in sub report.
When I see data in temp table it's coming like this:-
I see 4 records inserted with a1.
3 records inserted with a2.
2 records inserted with a3.
1 record inserted with a4.
why is birt executing stored procedure 4 times for first record? Is there anything wrong with sub report design.
I was guessing that stored procedure will be called only once using a1, a2, a3, a4 seperately.
Any pointers will be greatly appreciated.
Thanks in advance.
Preeti
I have a report in which I have 2 datasets d1, d2.
Report execution is like this:-
d1 query selects a column from table and retuns a1, a2, a3,a4 as value.
d2 calls a stored procedure which inserts data in table "temp." using parameter value as a1, a2, a3, a4.
So I created a table assciated with d1 dataset. Added a detail row having table associated with d2 dataset. In table parameter binding changed parameter value to a1,a2,a3,a4. Like we do in sub report.
When I see data in temp table it's coming like this:-
I see 4 records inserted with a1.
3 records inserted with a2.
2 records inserted with a3.
1 record inserted with a4.
why is birt executing stored procedure 4 times for first record? Is there anything wrong with sub report design.
I was guessing that stored procedure will be called only once using a1, a2, a3, a4 seperately.
Any pointers will be greatly appreciated.
Thanks in advance.
Preeti
0
Comments
-
Without looking at your code, it's difficult to say, but how do you trigger your stored procedure. If this is scripted on render of each row in your table, each time you render, it will generate a new entry your table, so:
after rendering a1, it inserts a1 in temp
after rendering a2, it also renders a1, so it inserts a1 and a2,
...
Which would make sense considering the values you get your table.
But without the code, it's difficult to figure out what your problem is,
Regards,
Cedric0
Categories
- All Categories
- 108 Developer Announcements
- 53 Articles
- 106 General Questions
- 144 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 899 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management