Solved

Composite Datawindow Problem

Posted on 2003-12-08
4
952 Views
Last Modified: 2013-12-26
Hi guys,

        I got a problem and I wish someone could help me out.

        *   I'm creating a Composite Datareport.
        *   It has 3 nested reports
        *   all 3 of the nested reports each  has its own retrieval arguments
         
        Question:
              1.  How can I populate the retrieval arguments of each of the
                   3 nested reports.

Hoping for someones response. Thanks a lot

Jason Sta Catalina
   
             
0
Comment
Question by:crawler486
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
gajender_99 earned 100 total points
ID: 9895905
lets say you have three reports
report1 report2 and report3 and you have three different values
a,b,c
pass these three values to the first sql and then the next two the second sql and the third to the the last

sql for the first report1

select   col1,
           col2,
           :a,
           :b,
           :c,
from table

in  the properties you can select the passed col as the arguments
and your problem is solved
0
 
LVL 15

Expert Comment

by:namasi_navaretnam
ID: 9900530
Yes. You can do it the way Gajender suggests by passing parameters for all three reports to the main report and then hook up needed parameters with each child report.

If you need to do this programatically, do the following: You need to do this only if a nested report(s) returned no row, but you need to show the headers by adding a dummy row.

Name nested reports in your composite report as "report1", "report2" and "report3".

In the click event of the retrieve button,

datawindowchild ldwchild
long ll_rowcount

//dw_report is the name of the control that holds composite report.
dw_report.GetChild("report1", ldwchild)
ll_rowcount = ldwchild.Retrieve(ll_arg1,  ll_argetc)
if ll_rowcount = 0 then ldwchild.insertrow(0)

dw_report.GetChild("report2", ldwchild)
ll_rowcount = ldwchild.Retrieve(ll_arg2, ll_argetc)
if ll_rowcount = 0 then ldwchild.insertrow(0)

dw_report.GetChild("report3", ldwchild)
ldwchild.Retrieve(ll_arg3, ll_argetc)
if ll_rowcount = 0 then ldwchild.insertrow(0)

HTH

Namasi Navaretnam
0
 

Author Comment

by:crawler486
ID: 9909750

   Thanks guys for the replies.
 
   This is a follow up question.

    Is it possible to edit or put input fields in a composite report?

    Many Thanks!


0
 
LVL 15

Expert Comment

by:namasi_navaretnam
ID: 9916345
Would you be more specific? Do you mean retrieval arguments? If so, you get a prompt to enter values for retrieval arguments when you retrieve? There is no other way of placing Input fields on a composite dw. Generally, people design their own window to take retrieval arguments and pass the data values to composite dw to retrieve.

HTH
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now